@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function isModified(ResourceObject $ro, array $server) : bool |
| 27 | 27 | { |
| 28 | - return ! (isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']); |
|
| 28 | + return !(isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | $headers = []; |
| 37 | 37 | foreach ($originalHeaders as $label => $value) { |
| 38 | - if (! in_array($label, self::HEADER_IN_304, true)) { |
|
| 38 | + if (!in_array($label, self::HEADER_IN_304, true)) { |
|
| 39 | 39 | continue; |
| 40 | 40 | } |
| 41 | 41 | $headers[$label] = $value; |
@@ -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 | |