@@ -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 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $method = strtolower($server['REQUEST_METHOD']); |
48 | 48 | $match = new RouterMatch(); |
49 | 49 | $match->method = $method; |
50 | - $match->path = $this->schemeHost . parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
50 | + $match->path = $this->schemeHost.parse_url($server['REQUEST_URI'], PHP_URL_PATH); |
|
51 | 51 | $match->query = $method === 'get' ? $globals['_GET'] : $this->getUnsafeQuery($method, $globals, $server); |
52 | 52 | |
53 | 53 | return $match; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | $isApplicationJson = strpos($contentType, 'application/json') !== false; |
91 | - if (! $isApplicationJson) { |
|
91 | + if (!$isApplicationJson) { |
|
92 | 92 | return []; |
93 | 93 | } |
94 | 94 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | private function isCodeExists(Exception $e): bool |
75 | 75 | { |
76 | - if (! ($e instanceof NotFound) && ! ($e instanceof BadRequest) && ! ($e instanceof ServerError)) { |
|
76 | + if (!($e instanceof NotFound) && !($e instanceof BadRequest) && !($e instanceof ServerError)) { |
|
77 | 77 | return false; |
78 | 78 | } |
79 | 79 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function isModified(ResourceObject $ro, array $server): bool |
29 | 29 | { |
30 | - return ! (isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']); |
|
30 | + return !(isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $headers = []; |
39 | 39 | foreach ($originalHeaders as $label => $value) { |
40 | - if (! in_array($label, self::HEADER_IN_304, true)) { |
|
40 | + if (!in_array($label, self::HEADER_IN_304, true)) { |
|
41 | 41 | continue; |
42 | 42 | } |
43 | 43 |