Completed
Push — master ( 4c4c7f...cc2bdb )
by Cheren
23:16
created
src/Controller/Component/AuthComponent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             'flash' => [
72 72
                 'key'       => 'auth',
73 73
                 'element'   => 'error',
74
-                'params'    => ['class' => 'error']
74
+                'params'    => [ 'class' => 'error' ]
75 75
             ],
76 76
             'loginAction' => [
77 77
                 'controller' => 'Users',
@@ -83,16 +83,16 @@  discard block
 block discarded – undo
83 83
                 'controller' => 'Users',
84 84
                 'plugin'     => 'Community'
85 85
             ],
86
-            'authorize'      => ['Community.Base'],
86
+            'authorize'      => [ 'Community.Base' ],
87 87
             'loginRedirect'  => $this->_getLoginRedirect(),
88
-            'logoutRedirect' => $this->_config['loginAction'],
88
+            'logoutRedirect' => $this->_config[ 'loginAction' ],
89 89
             'authError'      => __d('community', 'You are not authorized to access that location.')
90 90
         ];
91 91
 
92 92
         $config = $this->getConfig();
93 93
         foreach ($config as $key => $value) {
94 94
             if ($value !== null) {
95
-                unset($defaults[$key]);
95
+                unset($defaults[ $key ]);
96 96
             }
97 97
         }
98 98
 
Please login to merge, or discard this patch.