@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $method = \strtolower($server['REQUEST_METHOD']); |
| 34 | 34 | $match = new RouterMatch; |
| 35 | 35 | $match->method = $method; |
| 36 | - $match->path = $this->schemeHost . \parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
| 36 | + $match->path = $this->schemeHost.\parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
| 37 | 37 | $match->query = ($method === 'get') ? $globals['_GET'] : $this->getUnsafeQuery($method, $globals, $server); |
| 38 | 38 | |
| 39 | 39 | return $match; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return $put; |
| 72 | 72 | } |
| 73 | 73 | $isApplicationJson = strpos($contentType, 'application/json') !== false; |
| 74 | - if (! $isApplicationJson) { |
|
| 74 | + if (!$isApplicationJson) { |
|
| 75 | 75 | return []; |
| 76 | 76 | } |
| 77 | 77 | /** @var array<string, mixed> $content */ |