Passed
Push — master ( e0f2e1...66a546 )
by Gabor
03:32
created
src/WebHemi/Middleware/Security/AclMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
      */
159 159
     private function checkPolicies(
160 160
         array $policies,
161
-        ?ApplicationEntity $applicationEntity = null,
162
-        ?ResourceEntity $resourceEntity = null
161
+        ? ApplicationEntity $applicationEntity = null,
162
+        ? ResourceEntity $resourceEntity = null
163 163
     ) : bool {
164 164
         // We assume the best case: the user has access
165 165
         $hasAccess = true;
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
      */
183 183
     private function checkPolicy(
184 184
         PolicyEntity $policyEntity,
185
-        ?ApplicationEntity $applicationEntity = null,
186
-        ?ResourceEntity $resourceEntity = null
185
+        ? ApplicationEntity $applicationEntity = null,
186
+        ? ResourceEntity $resourceEntity = null
187 187
     ) : bool {
188 188
         $applicationId = $applicationEntity ? $applicationEntity->getApplicationId() : null;
189 189
         $resourceId = $resourceEntity ? $resourceEntity->getResourceId() : null;
Please login to merge, or discard this patch.
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/Middleware/Action/Website/IndexAction.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Middleware\Action\Website;
15 15
 
16
-use WebHemi\Form\Html\HtmlMultipleFormElement;
17
-use WebHemi\Middleware\AbstractMiddlewareAction;
16
+use WebHemi\Form\Html\Html5FormElement;
18 17
 use WebHemi\Form\Html\HtmlForm;
19 18
 use WebHemi\Form\Html\HtmlFormElement;
20
-use WebHemi\Form\Html\Html5FormElement;
19
+use WebHemi\Form\Html\HtmlMultipleFormElement;
20
+use WebHemi\Middleware\AbstractMiddlewareAction;
21 21
 
22 22
 /**
23 23
  * Class IndexAction
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/Middleware/Action/Auth/LoginAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $form = $this->getLoginForm();
94 94
 
95 95
         if ($this->request->getMethod() == 'POST') {
96
-            $postData = $this->request->getParsedBody() ;
96
+            $postData = $this->request->getParsedBody();
97 97
             $this->authCredential->addCredential('username', $postData['login']['identification'] ?? '')
98 98
                 ->addCredential('password', $postData['login']['password'] ?? '');
99 99
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
                 // save new user if we have the username credentials and add him/her to the Guest group
114 114
                 if (!$userEntity instanceof UserEntity && !empty($userEntity)) {
115
-                    $userEntity = $this->registerGuestUser((string)$userEntity);
115
+                    $userEntity = $this->registerGuestUser((string) $userEntity);
116 116
                 }
117 117
 
118 118
                 if ($userEntity instanceof UserEntity) {
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/Application/Web/WebApplication.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 namespace WebHemi\Application\Web;
15 15
 
16 16
 use Throwable;
17
+use WebHemi\Adapter\Http\HttpAdapterInterface;
17 18
 use WebHemi\Adapter\Http\ResponseInterface;
18 19
 use WebHemi\Adapter\Http\ServerRequestInterface;
19
-use WebHemi\Adapter\Http\HttpAdapterInterface;
20 20
 use WebHemi\Application\AbstractApplication;
21 21
 use WebHemi\Application\EnvironmentManager;
22 22
 use WebHemi\Application\PipelineManager;
Please login to merge, or discard this patch.