@@ -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 |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param ContainerInterface $container |
| 63 | 63 | * @param array $request |
| 64 | 64 | */ |
| 65 | - public function __construct(LoggerInterface $logger, ?array $request = null, ?ContainerInterface $container = null) |
|
| 65 | + public function __construct(LoggerInterface $logger, ? array $request = null, ?ContainerInterface $container = null) |
|
| 66 | 66 | { |
| 67 | 67 | $this->logger = $logger; |
| 68 | 68 | $this->container = $container; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | public function setPath(string $path): self |
| 167 | 167 | { |
| 168 | 168 | $path = rtrim(trim($path), '/'); |
| 169 | - $this->path = (string) $path; |
|
| 169 | + $this->path = (string)$path; |
|
| 170 | 170 | |
| 171 | 171 | return $this; |
| 172 | 172 | } |
@@ -347,12 +347,12 @@ discard block |
||
| 347 | 347 | if ('false' === $request_params[$param->name]) { |
| 348 | 348 | $return[$param->name] = false; |
| 349 | 349 | } else { |
| 350 | - $return[$param->name] = (bool) $request_params[$param->name]; |
|
| 350 | + $return[$param->name] = (bool)$request_params[$param->name]; |
|
| 351 | 351 | } |
| 352 | 352 | } elseif (is_int($default)) { |
| 353 | - $return[$param->name] = (int) $request_params[$param->name]; |
|
| 353 | + $return[$param->name] = (int)$request_params[$param->name]; |
|
| 354 | 354 | } elseif (is_array($default)) { |
| 355 | - $return[$param->name] = (array) $request_params[$param->name]; |
|
| 355 | + $return[$param->name] = (array)$request_params[$param->name]; |
|
| 356 | 356 | } else { |
| 357 | 357 | $return[$param->name] = $request_params[$param->name]; |
| 358 | 358 | } |
@@ -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 |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | */ |
| 251 | 251 | public function setPrettyFormat(bool $format): self |
| 252 | 252 | { |
| 253 | - $this->pretty_format = (bool) $format; |
|
| 253 | + $this->pretty_format = (bool)$format; |
|
| 254 | 254 | |
| 255 | 255 | return $this; |
| 256 | 256 | } |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * |
| 361 | 361 | * @return Response |
| 362 | 362 | */ |
| 363 | - public function setOutputFormat(?string $format = null): self |
|
| 363 | + public function setOutputFormat(?string $format = null) : self |
|
| 364 | 364 | { |
| 365 | 365 | if (null === $format) { |
| 366 | 366 | $this->output_format = null; |
@@ -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 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * |
| 111 | 111 | * @return array |
| 112 | 112 | */ |
| 113 | - public function getCallable(?ContainerInterface $container = null): array |
|
| 113 | + public function getCallable(?ContainerInterface $container = null) : array |
|
| 114 | 114 | { |
| 115 | 115 | if (is_object($this->class)) { |
| 116 | 116 | $instance = $this->class; |
@@ -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 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * |
| 240 | 240 | * @return Route |
| 241 | 241 | */ |
| 242 | - public function setMethod(? string $method): self |
|
| 242 | + public function setMethod(? string $method) : self |
|
| 243 | 243 | { |
| 244 | 244 | $this->method = $method; |
| 245 | 245 | |
@@ -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 | } |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @return string |
| 303 | 303 | */ |
| 304 | - protected function buildMethodName(? string $name): string |
|
| 304 | + protected function buildMethodName(? string $name) : string |
|
| 305 | 305 | { |
| 306 | 306 | $result = $this->router->getVerb(); |
| 307 | 307 | |
@@ -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 |