Passed
Push — develop ( e15637...8f1c0c )
by nguereza
02:54
created
src/Auth/Authentication/JWTAuthentication.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@  discard block
 block discarded – undo
69 69
  * @package Platine\Framework\Auth\Authentication
70 70
  * @template T
71 71
  */
72
-class JWTAuthentication implements ApiAuthenticationInterface
73
-{
72
+class JWTAuthentication implements ApiAuthenticationInterface {
74 73
 
75 74
     /**
76 75
      * The JWT instance
@@ -237,7 +236,7 @@  discard block
 block discarded – undo
237 236
         foreach ($roles as $role) {
238 237
             $rolePermissions = $role->permissions;
239 238
             foreach ($rolePermissions as $permission) {
240
-                if(!in_array($permission->code, $permissions)){
239
+                if(!in_array($permission->code, $permissions)) {
241 240
                     $permissions[] = $permission->code;
242 241
                 }
243 242
             }
Please login to merge, or discard this patch.