Passed
Push — main ( 1e821c...d0f83f )
by Roberto
02:00
created
src/Authenticator/RBAC/UserInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
     public function hasPermission(PermissionInterface $permission) : bool;
21 21
 
22 22
 
23
-     /**
24
-     * Retrieve the permissions associated with the user's roles.
25
-     *
26
-     * @return array An array of permissions associated with the user's roles.
27
-     */
23
+        /**
24
+         * Retrieve the permissions associated with the user's roles.
25
+         *
26
+         * @return array An array of permissions associated with the user's roles.
27
+         */
28 28
     public function getPermissions() : array;
29 29
 
30 30
 
Please login to merge, or discard this patch.
src/Middleware/RBACMiddleware.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $user = $authenticator->getLoggedUser();
50 50
             $num_privileges = $user->privileges->and(livello__gte: $level)->count();
51 51
             return ($num_privileges > 0);
52
-        } elseif($modifier == PermissionRequired::class){
52
+        } elseif($modifier == PermissionRequired::class) {
53 53
             $user = (new UserAuthenticator)->getLoggedUser();
54 54
             die(print_r($params));
55 55
         }
Please login to merge, or discard this patch.
src/Http/Response/JSONResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Lepton\Http\Response;
4 4
 
5
- class JSONResponse extends SuccessResponse
5
+    class JSONResponse extends SuccessResponse
6 6
 {
7 7
 
8 8
     public function __construct(
Please login to merge, or discard this patch.