mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Applying patch from 'davidpersson' fixing code spacing. Closes #5643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6da2040b45
commit
1b456f2cf1
70 changed files with 233 additions and 233 deletions
|
@ -283,7 +283,7 @@ class AuthComponent extends Object {
|
|||
$keys = array('pass', 'named', 'controller', 'action', 'plugin');
|
||||
$url = array();
|
||||
|
||||
foreach($keys as $key) {
|
||||
foreach ($keys as $key) {
|
||||
if (!empty($params[$key])) {
|
||||
if (is_array($params[$key])) {
|
||||
foreach ($params[$key] as $name => $value) {
|
||||
|
@ -491,7 +491,7 @@ class AuthComponent extends Object {
|
|||
case 'model':
|
||||
$this->mapActions();
|
||||
$action = $this->params['action'];
|
||||
if(isset($this->actionMap[$action])) {
|
||||
if (isset($this->actionMap[$action])) {
|
||||
$action = $this->actionMap[$action];
|
||||
}
|
||||
if (is_string($object)) {
|
||||
|
@ -507,7 +507,7 @@ class AuthComponent extends Object {
|
|||
}
|
||||
if (method_exists($object, 'isAuthorized')) {
|
||||
$valid = $object->isAuthorized($user, $this->action(':controller'), $action);
|
||||
} elseif ($object){
|
||||
} elseif ($object) {
|
||||
trigger_error(sprintf(__('%s::isAuthorized() is not defined.', true), get_class($object)), E_USER_WARNING);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue