Passed
Push — master ( 2ca8fd...553b41 )
by Raffael
02:22
created
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.