Passed
Branch master (c0a5de)
by Xavier
03:15 queued 01:29
created
src/Security/Resources/Middleware/AdminMiddleware.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
      */
21 21
     public function __invoke(Request $request, Response $response, callable $next)
22 22
     {
23
-       if (isset($_SESSION['phpCAS']['user']))  {
23
+        if (isset($_SESSION['phpCAS']['user']))  {
24 24
             if (in_array($_SESSION['phpCAS']['user'], $this->container['parameters']['administrators']))
25 25
                 return $next($request, $response);
26
-       }
26
+        }
27 27
 
28
-       $this->flash->addMessage('error', '<i class="minus circle icon"></i> You are not allowed to access to this content.');
29
-       return $response->withRedirect($this->router->pathFor('wrong-entry'));
28
+        $this->flash->addMessage('error', '<i class="minus circle icon"></i> You are not allowed to access to this content.');
29
+        return $response->withRedirect($this->router->pathFor('wrong-entry'));
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/App/Model/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         return User::find($uid)->user['sourcedId'];
16 16
     }
17 17
 
18
-   /** protected $fillable = [
18
+    /** protected $fillable = [
19 19
         'username',
20 20
         'email',
21 21
         'password',
Please login to merge, or discard this patch.