Completed
Push — master ( 2b347f...69d5d0 )
by Raffael
03:25
created
src/Router/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
      */
233 233
     public function setPrettyFormat(bool $format): self
234 234
     {
235
-        $this->pretty_format = (bool) $format;
235
+        $this->pretty_format = (bool)$format;
236 236
 
237 237
         return $this;
238 238
     }
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -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,19 +445,19 @@  discard block
 block discarded – undo
445 445
                     return false;
446 446
                 }
447 447
 
448
-                    return (bool) $value;
448
+                    return (bool)$value;
449 449
 
450 450
             break;
451 451
             case 'int':
452
-                return (int) $value;
452
+                return (int)$value;
453 453
 
454 454
             break;
455 455
             case 'float':
456
-                return (float) $value;
456
+                return (float)$value;
457 457
 
458 458
             break;
459 459
             case 'array':
460
-                return (array) $value;
460
+                return (array)$value;
461 461
 
462 462
             break;
463 463
             default:
Please login to merge, or discard this patch.