Completed
Push — master ( dc0762...6e4967 )
by Gabor
03:32
created
src/WebHemi/DataStorage/User/UserStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * @param DataEntityInterface $entity
53 53
      * @param array               $data
54 54
      */
55
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
55
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
56 56
     {
57 57
         /* @var UserEntity $entity */
58 58
         $entity->setUserId($data[$this->idKey])
Please login to merge, or discard this patch.
src/WebHemi/DataStorage/AbstractDataStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,5 +89,5 @@
 block discarded – undo
89 89
      * @param DataEntityInterface $entity
90 90
      * @param array               $data
91 91
      */
92
-    abstract protected function populateEntity(DataEntityInterface &$entity, array $data);
92
+    abstract protected function populateEntity(DataEntityInterface&$entity, array $data);
93 93
 }
Please login to merge, or discard this patch.
src/WebHemi/DataStorage/User/UserMetaStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * @param DataEntityInterface $entity
53 53
      * @param array               $data
54 54
      */
55
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
55
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
56 56
     {
57 57
         /* @var UserEntity $entity */
58 58
         $entity->setUserId($data[$this->idKey])
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Data/PDO/PDOAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
      * @param PDOStatement $statement
243 243
      * @param array        $queryBind
244 244
      */
245
-    private function bindValuesToStatement(PDOStatement &$statement, array $queryBind)
245
+    private function bindValuesToStatement(PDOStatement&$statement, array $queryBind)
246 246
     {
247 247
         foreach ($queryBind as $index => $data) {
248 248
             $paramType = PDO::PARAM_STR;
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Data/InMemory/InMemoryAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             }
198 198
         }
199 199
 
200
-        return (bool)$match;
200
+        return (bool) $match;
201 201
     }
202 202
 
203 203
     /**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     private function checkWildcardMatch($data, $subject)
210 210
     {
211 211
         $subject = str_replace('%', '.*', $subject);
212
-        return preg_match('/^' . $subject . '$/', $data);
212
+        return preg_match('/^'.$subject.'$/', $data);
213 213
     }
214 214
 
215 215
     /**
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     private function checkInArrayMatch($data, $subject)
222 222
     {
223
-        return in_array($data, (array)$subject);
223
+        return in_array($data, (array) $subject);
224 224
     }
225 225
 
226 226
     /**
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             if (is_numeric($maxKey)) {
316 316
                 $identifier = (int) $maxKey + 1;
317 317
             } else {
318
-                $identifier = $maxKey . '_1';
318
+                $identifier = $maxKey.'_1';
319 319
             }
320 320
         }
321 321
 
Please login to merge, or discard this patch.
src/WebHemi/Application/Web/WebApplication.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use WebHemi\Application\ApplicationInterface;
20 20
 use WebHemi\Config\ConfigInterface;
21 21
 use WebHemi\Middleware\DispatcherMiddleware;
22
-use WebHemi\Middleware\MiddlewareInvokerInterface;
23 22
 use WebHemi\Middleware\FinalMiddleware;
24 23
 use WebHemi\Middleware\MiddlewareInterface;
25 24
 use WebHemi\Middleware\Pipeline\MiddlewarePipelineInterface;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
             ->setServiceArgument(HttpAdapterInterface::class, $this->environmentData['COOKIE'])
120 120
             ->setServiceArgument(HttpAdapterInterface::class, $this->environmentData['FILES']);
121 121
 
122
-        $moduleConfig = $this->config->get('modules/' . $this->selectedModule, ConfigInterface::CONFIG_AS_OBJECT);
122
+        $moduleConfig = $this->config->get('modules/'.$this->selectedModule, ConfigInterface::CONFIG_AS_OBJECT);
123 123
         $this->container
124 124
             ->setServiceArgument(FinalMiddleware::class, $moduleConfig);
125 125
 
Please login to merge, or discard this patch.
src/WebHemi/Middleware/DispatcherMiddleware.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
      *
43 43
      * @return ResponseInterface
44 44
      */
45
-    public function __invoke(ServerRequestInterface &$request, ResponseInterface $response)
45
+    public function __invoke(ServerRequestInterface&$request, ResponseInterface $response)
46 46
     {
47 47
         $template = $request->getAttribute('template');
48 48
         $data = $request->getAttribute('data');
Please login to merge, or discard this patch.
src/WebHemi/Middleware/FinalMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @return ResponseInterface
49 49
      */
50
-    public function __invoke(ServerRequestInterface &$request, ResponseInterface $response)
50
+    public function __invoke(ServerRequestInterface&$request, ResponseInterface $response)
51 51
     {
52 52
         if (headers_sent()) {
53 53
             throw new RuntimeException('Unable to emit response; headers already sent');
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         // Handle errors here.
59 59
         if ($response->getStatusCode() !== 200) {
60
-            $errorTemplate = $this->templateConfig->get('template_map/error' . $response->getStatusCode());
60
+            $errorTemplate = $this->templateConfig->get('template_map/error'.$response->getStatusCode());
61 61
             $error = $request->getAttribute('exception');
62 62
             $content = $this->templateRenderer->render($errorTemplate, ['exception' => $error]);
63 63
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             'HTTP/%s %d%s',
70 70
             $response->getProtocolVersion(),
71 71
             $response->getStatusCode(),
72
-            ($reasonPhrase ? ' ' . $reasonPhrase : '')
72
+            ($reasonPhrase ? ' '.$reasonPhrase : '')
73 73
         ));
74 74
 
75 75
         foreach ($response->getHeaders() as $headerName => $values) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     private function injectContentLength(ResponseInterface $response)
100 100
     {
101
-        if (!$response->hasHeader('Content-Length')&& !is_null($response->getBody()->getSize())) {
101
+        if (!$response->hasHeader('Content-Length') && !is_null($response->getBody()->getSize())) {
102 102
             $response = $response->withHeader('Content-Length', (string) $response->getBody()->getSize());
103 103
         }
104 104
 
Please login to merge, or discard this patch.
src/WebHemi/Middleware/MiddlewareInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
      *
30 30
      * @return ResponseInterface
31 31
      */
32
-    public function __invoke(ServerRequestInterface &$request, ResponseInterface $response);
32
+    public function __invoke(ServerRequestInterface&$request, ResponseInterface $response);
33 33
 }
Please login to merge, or discard this patch.