@@ -33,6 +33,6 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $querySymbol = $this->query ? '?' : ''; |
| 35 | 35 | |
| 36 | - return "{$this->method} {$this->path}{$querySymbol}" . http_build_query($this->query); |
|
| 36 | + return "{$this->method} {$this->path}{$querySymbol}".http_build_query($this->query); |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $method = strtolower($server['REQUEST_METHOD']); |
| 39 | 39 | $match = new RouterMatch; |
| 40 | 40 | $match->method = $method; |
| 41 | - $match->path = $this->schemeHost . parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
| 41 | + $match->path = $this->schemeHost.parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
| 42 | 42 | $match->query = ($method === 'get') ? $globals['_GET'] : $this->getUnsafeQuery($method, $globals, $server); |
| 43 | 43 | |
| 44 | 44 | return $match; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return $put; |
| 77 | 77 | } |
| 78 | 78 | $isApplicationJson = strpos($contentType, 'application/json') !== false; |
| 79 | - if (! $isApplicationJson) { |
|
| 79 | + if (!$isApplicationJson) { |
|
| 80 | 80 | return []; |
| 81 | 81 | } |
| 82 | 82 | /** @var array<string, mixed> $content */ |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | private function isCodeExists(Exception $e) : bool |
| 86 | 86 | { |
| 87 | - if (! ($e instanceof NotFound) && ! ($e instanceof BadRequest) && ! ($e instanceof ServerError)) { |
|
| 87 | + if (!($e instanceof NotFound) && !($e instanceof BadRequest) && !($e instanceof ServerError)) { |
|
| 88 | 88 | return false; |
| 89 | 89 | } |
| 90 | 90 | |