Completed
Push — master ( ef1e9b...ffc375 )
by Gabor
05:15
created
src/WebHemi/Adapter/Data/InMemory/InMemoryAdapter.php 2 patches
Spacing   +2 added lines, -2 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
     /**
@@ -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
     /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
      * @param mixed $data
205 205
      * @param mixed $subject
206 206
      *
207
-     * @return bool
207
+     * @return integer
208 208
      */
209 209
     private function checkWildcardMatch($data, $subject)
210 210
     {
Please login to merge, or discard this patch.
src/WebHemi/Application/EnvironmentManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
         $this->subDomain = $subDomain;
249 249
         $this->mainDomain = $domain;
250
-        $this->applicationDomain = $this->subDomain.'.'. $this->mainDomain;
250
+        $this->applicationDomain = $this->subDomain.'.'.$this->mainDomain;
251 251
 
252 252
         return $this;
253 253
     }
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
                 || $this->checkDomainIsValid($applicationData['type'], $applicationData['path'])
281 281
             ) {
282 282
                 $this->selectedModule = $applicationData['module'];
283
-                $this->selectedApplication = (string)$applicationName;
283
+                $this->selectedApplication = (string) $applicationName;
284 284
                 $this->selectedTheme = $applicationData['theme'];
285 285
 
286 286
                 $this->selectedApplicationUri = '/'.$subDirectory;
Please login to merge, or discard this patch.
src/WebHemi/Middleware/FinalMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 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
         if (headers_sent()) {
48 48
             throw new RuntimeException('Unable to emit response; headers already sent');
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     private function injectContentLength(ResponseInterface $response)
91 91
     {
92
-        if (!$response->hasHeader('Content-Length')&& !is_null($response->getBody()->getSize())) {
92
+        if (!$response->hasHeader('Content-Length') && !is_null($response->getBody()->getSize())) {
93 93
             $response = $response->withHeader('Content-Length', (string) $response->getBody()->getSize());
94 94
         }
95 95
 
Please login to merge, or discard this patch.