@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Micro |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) { |