Permalink
Browse files

Breaking trigger_error() to multiple lines to shorten the line length.

  • Loading branch information...
1 parent 6785589 commit 8ca92a1af0b0f28b4c72303c2037b97d1ca1d306 @renan renan committed Aug 20, 2013
Showing with 12 additions and 2 deletions.
  1. +12 −2 lib/Cake/Model/Permission.php
@@ -91,12 +91,22 @@ public function check($aro, $aco, $action = "*") {
$acoPath = $this->Aco->node($aco);
if (!$aroPath || !$acoPath) {
- trigger_error(__d('cake_dev', "DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: %s\nAco: %s", print_r($aro, true), print_r($aco, true)), E_USER_WARNING);
+ trigger_error(__d('cake_dev',
+ "DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: %s\nAco: %s",
+ print_r($aro, true),
+ print_r($aco, true)),
+ E_USER_WARNING
+ );
return false;
}
if (!$acoPath) {
- trigger_error(__d('cake_dev', "DbAcl::check() - Failed ACO node lookup in permissions check. Node references:\nAro: %s\nAco: %s", print_r($aro, true), print_r($aco, true)), E_USER_WARNING);
+ trigger_error(__d('cake_dev',
+ "DbAcl::check() - Failed ACO node lookup in permissions check. Node references:\nAro: %s\nAco: %s",
+ print_r($aro, true),
+ print_r($aco, true)),
+ E_USER_WARNING
+ );
return false;
}

0 comments on commit 8ca92a1

Please sign in to comment.