Passed
Branch master (41990d)
by Gabor
03:31
created
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/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.
src/WebHemi/Middleware/RoutingMiddleware.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/Adapter/Router/FastRoute/FastRouteAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $routes = $this->config->toArray();
49 49
 
50 50
         $this->adapter = \FastRoute\simpleDispatcher(
51
-            function (RouteCollector $routeCollector) use ($routes) {
51
+            function(RouteCollector $routeCollector) use ($routes) {
52 52
                 foreach ($routes as $route) {
53 53
                     $method   = $route['allowed_methods'];
54 54
                     $uri      = $route['path'];
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.
src/WebHemi/Adapter/Data/InMemory/InMemoryAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
      */
239 239
     private function checkInArrayMatch($data, $subject)
240 240
     {
241
-        return in_array($data, (array)$subject);
241
+        return in_array($data, (array) $subject);
242 242
     }
243 243
 
244 244
     /**
Please login to merge, or discard this patch.
src/WebHemi/Adapter/DependencyInjection/Symfony/SymfonyAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,8 +255,8 @@
 block discarded – undo
255 255
         $normalizedName = $this->getNormalizedName($serviceClass, $parameterName);
256 256
 
257 257
         // If the parameter marked as to be used as a scalar
258
-        if (is_scalar($parameter) && strpos((string)$parameter, '!:') === 0) {
259
-            $parameter = substr((string)$parameter, 2);
258
+        if (is_scalar($parameter) && strpos((string) $parameter, '!:') === 0) {
259
+            $parameter = substr((string) $parameter, 2);
260 260
         } else {
261 261
             // Otherwise check if the parameter is a service.
262 262
             $parameter = $this->getReferenceServiceIfAvailable($parameter);
Please login to merge, or discard this patch.
src/WebHemi/Middleware/AbstractMiddlewareAction.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
      *
51 51
      * @return ResponseInterface
52 52
      */
53
-    final public function __invoke(ServerRequestInterface &$request, ResponseInterface $response)
53
+    final public function __invoke(ServerRequestInterface&$request, ResponseInterface $response)
54 54
     {
55 55
         $this->request = $request;
56 56
         $this->response = $response;
Please login to merge, or discard this patch.