Passed
Push — develop ( a4d967...75d08f )
by Francisco
03:22
created
app/Http/Middleware/AuthorizeStudent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     protected function checkStudent()
31 31
     {
32
-        if (! auth()->check() || ! auth()->user()->isStudent()) {
32
+        if ( ! auth()->check() || ! auth()->user()->isStudent()) {
33 33
             throw new AuthorizationException('Unauthorized.');
34 34
         }
35 35
     }
Please login to merge, or discard this patch.
app/Http/Middleware/AuthorizeAdministrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     protected function checkAdmin()
31 31
     {
32
-        if (! auth()->check() || ! auth()->user()->isAdmin()) {
32
+        if ( ! auth()->check() || ! auth()->user()->isAdmin()) {
33 33
             throw new AuthorizationException('Unauthorized.');
34 34
         }
35 35
     }
Please login to merge, or discard this patch.