Passed
Push — master ( 1ebd3c...3f0509 )
by Gabor
04:18
created
src/WebHemi/Middleware/Security/AccessLogMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * @param ResponseInterface      $response
60 60
      * @return void
61 61
      */
62
-    public function __invoke(ServerRequestInterface &$request, ResponseInterface&$response) : void
62
+    public function __invoke(ServerRequestInterface&$request, ResponseInterface&$response) : void
63 63
     {
64 64
         $identity = 'Unauthenticated user';
65 65
         $requestAttributes = $request->getAttributes();
Please login to merge, or discard this patch.
src/WebHemi/Auth/Storage/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      *
69 69
      * @return null|DataEntityInterface
70 70
      */
71
-    public function getIdentity() : ?DataEntityInterface
71
+    public function getIdentity() : ? DataEntityInterface
72 72
     {
73 73
         return $this->sessionManager->get($this->sessionKey);
74 74
     }
Please login to merge, or discard this patch.
src/WebHemi/Library/StringLib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $parts = explode('#', $input);
43 43
         array_walk(
44 44
             $parts,
45
-            function (&$value) {
45
+            function(&$value) {
46 46
                 $value = ucfirst(strtolower($value));
47 47
             }
48 48
         );
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Auth/AuthStorageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return DataEntityInterface|null
42 42
      */
43
-    public function getIdentity() : ?DataEntityInterface;
43
+    public function getIdentity() : ? DataEntityInterface;
44 44
 
45 45
     /**
46 46
      * Clears the storage.
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Router/FastRoute/FastRouteAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->result = $routeResult;
51 51
         $this->applicationPath = $environmentManager->getSelectedApplicationUri();
52 52
         $this->adapter = \FastRoute\simpleDispatcher(
53
-            function (RouteCollector $routeCollector) use ($routes) {
53
+            function(RouteCollector $routeCollector) use ($routes) {
54 54
                 foreach ($routes as $route) {
55 55
                     $method   = $route['allowed_methods'];
56 56
                     $uri      = $route['path'];
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.
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 = false;
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
      */
121 121
     private function checkPolicy(
122 122
         PolicyEntity $policyEntity,
123
-        ?ApplicationEntity $applicationEntity = null,
124
-        ?ResourceEntity $resourceEntity = null
123
+        ? ApplicationEntity $applicationEntity = null,
124
+        ? ResourceEntity $resourceEntity = null
125 125
     ) : bool {
126 126
         $policyApplicationId = $policyEntity->getApplicationId();
127 127
         $policyResourceId = $policyEntity->getResourceId();
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Renderer/Twig/TwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $config = [];
100 100
 
101 101
         if ($this->configuration->has('renderer/Global/'.$type)) {
102
-            $config = $this->configuration->getData('renderer/Global/' . $type);
102
+            $config = $this->configuration->getData('renderer/Global/'.$type);
103 103
         }
104 104
 
105 105
         if ($this->configuration->has('renderer/'.$module.'/'.$type)) {
Please login to merge, or discard this patch.