Passed
Push — master ( 2ca8fd...553b41 )
by Raffael
02:22
created
src/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/Router/Route.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function match(): bool
84 84
     {
85
-        $regex = preg_replace_callback('#({([A-Z0-9a-z]+)\:\#(.+?)\#})|\{(.+?)\}#', function ($match) {
85
+        $regex = preg_replace_callback('#({([A-Z0-9a-z]+)\:\#(.+?)\#})|\{(.+?)\}#', function($match) {
86 86
             if (4 === count($match)) {
87 87
                 return '(?<'.$match[2].'>'.$match[3].'+)';
88 88
             }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function setPath(string $path): self
174 174
     {
175
-        $this->path = (string) $path;
175
+        $this->path = (string)$path;
176 176
 
177 177
         return $this;
178 178
     }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      */
290 290
     public function continuePropagation($next = true): self
291 291
     {
292
-        $this->continue_propagation = (bool) $next;
292
+        $this->continue_propagation = (bool)$next;
293 293
 
294 294
         return $this;
295 295
     }
Please login to merge, or discard this patch.
src/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function setPrettyFormat(bool $format): self
242 242
     {
243
-        $this->pretty_format = (bool) $format;
243
+        $this->pretty_format = (bool)$format;
244 244
 
245 245
         return $this;
246 246
     }
Please login to merge, or discard this patch.
src/Exception/InvalidJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/Exception/MissingInputArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/Exception/NoRouteMatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/ExceptionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * Micro
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     public function setPath(string $path): self
203 203
     {
204 204
         $path = rtrim(trim($path), '/');
205
-        $this->path = (string) $path;
205
+        $this->path = (string)$path;
206 206
 
207 207
         return $this;
208 208
     }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             $request_params = $this->decodeRequest($parsed_params);
396 396
 
397 397
             foreach ($params as $param) {
398
-                $type = (string) $param->getType();
398
+                $type = (string)$param->getType();
399 399
                 $optional = $param->isOptional();
400 400
 
401 401
                 if (isset($request_params[$param->name]) && '' !== $request_params[$param->name]) {
@@ -445,16 +445,16 @@  discard block
 block discarded – undo
445 445
                     return false;
446 446
                 }
447 447
 
448
-                    return (bool) $value;
448
+                    return (bool)$value;
449 449
             break;
450 450
             case 'int':
451
-                return (int) $value;
451
+                return (int)$value;
452 452
             break;
453 453
             case 'float':
454
-                return (float) $value;
454
+                return (float)$value;
455 455
             break;
456 456
             case 'array':
457
-                return (array) $value;
457
+                return (array)$value;
458 458
             break;
459 459
             default:
460 460
                 if (class_exists($type) && null !== $value) {
Please login to merge, or discard this patch.