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

As proposed in https://github.com/cakephp/cakephp/pull/1525/files#r5779374
This commit is contained in:
Renan Gonçalves 2013-08-20 17:48:56 +02:00
parent 67855896ef
commit 8ca92a1af0

View file

@ -91,12 +91,22 @@ class Permission extends AppModel {
$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;
}