Passed
Push — master ( 66a546...4ec22f )
by Gabor
03:10
created
src/WebHemi/Acl/Acl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function isAllowed(
63 63
         UserEntity $userEntity,
64
-        ?ResourceEntity $resourceEntity = null,
65
-        ?ApplicationEntity $applicationEntity = null
64
+        ? ResourceEntity $resourceEntity = null,
65
+        ? ApplicationEntity $applicationEntity = null
66 66
     ) : bool {
67 67
         // We assume the best case: the user has access
68 68
         $allowed = true;
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function checkPolicy(
123 123
         PolicyEntity $policyEntity,
124
-        ?ApplicationEntity $applicationEntity = null,
125
-        ?ResourceEntity $resourceEntity = null
124
+        ? ApplicationEntity $applicationEntity = null,
125
+        ? ResourceEntity $resourceEntity = null
126 126
     ) : bool {
127 127
         $policyApplicationId = $policyEntity->getApplicationId();
128 128
         $policyResourceId = $policyEntity->getResourceId();
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Acl/AclAdapterInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function isAllowed(
34 34
         UserEntity $userEntity,
35
-        ?ResourceEntity $resourceEntity = null,
36
-        ?ApplicationEntity $applicationEntity = null
35
+        ? ResourceEntity $resourceEntity = null,
36
+        ? ApplicationEntity $applicationEntity = null
37 37
     ) : bool;
38 38
 }
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/Auth/LoginAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $form = $this->getLoginForm();
75 75
 
76 76
         if ($this->request->getMethod() == 'POST') {
77
-            $postData = $this->request->getParsedBody() ;
77
+            $postData = $this->request->getParsedBody();
78 78
             $this->authCredential->addCredential('username', $postData['login']['identification'] ?? '')
79 79
                 ->addCredential('password', $postData['login']['password'] ?? '');
80 80
 
Please login to merge, or discard this patch.