Skip to content

Commit

Permalink
Breaking trigger_error() to multiple lines to shorten the line length.
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Aug 20, 2013
1 parent 6785589 commit 8ca92a1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/Cake/Model/Permission.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8ca92a1

Please sign in to comment.