@@ -352,11 +352,11 @@ |
||
352 | 352 | if (isset($request_params[$param->name]) && $request_params[$param->name] !== '') { |
353 | 353 | if (is_bool($default)) { |
354 | 354 | if($request_params[$param->name] === 'false') { |
355 | - $return[$param->name] = false; |
|
355 | + $return[$param->name] = false; |
|
356 | 356 | } else { |
357 | 357 | $return[$param->name] = (bool)$request_params[$param->name]; |
358 | 358 | } |
359 | - } elseif (is_int($default)) { |
|
359 | + } elseif (is_int($default)) { |
|
360 | 360 | $return[$param->name] = (int)$request_params[$param->name]; |
361 | 361 | } elseif (is_array($default)) { |
362 | 362 | $return[$param->name] = (array)$request_params[$param->name]; |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | * @param array $request |
69 | 69 | * @return void |
70 | 70 | */ |
71 | - public function __construct(LoggerInterface $logger, ?array $request=null, ?ContainerInterface $container=null) |
|
71 | + public function __construct(LoggerInterface $logger, ? array $request = null, ?ContainerInterface $container = null) |
|
72 | 72 | { |
73 | 73 | $this->logger = $logger; |
74 | 74 | $this->container = $container; |
75 | 75 | |
76 | - if($request === null) { |
|
76 | + if ($request === null) { |
|
77 | 77 | $request = $_SERVER; |
78 | 78 | } |
79 | 79 | |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | 'code' => $exception->getCode() |
287 | 287 | ]; |
288 | 288 | |
289 | - if(defined("$class::HTTP_CODE")) { |
|
289 | + if (defined("$class::HTTP_CODE")) { |
|
290 | 290 | $http_code = $class::HTTP_CODE; |
291 | 291 | } else { |
292 | 292 | $http_code = 500; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | |
352 | 352 | if (isset($request_params[$param->name]) && $request_params[$param->name] !== '') { |
353 | 353 | if (is_bool($default)) { |
354 | - if($request_params[$param->name] === 'false') { |
|
354 | + if ($request_params[$param->name] === 'false') { |
|
355 | 355 | $return[$param->name] = false; |
356 | 356 | } else { |
357 | 357 | $return[$param->name] = (bool)$request_params[$param->name]; |