@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | private $originalServer = []; |
36 | 36 | |
37 | 37 | /** @var array Valid values for HTTP protocol version */ |
38 | - private static $allowedVersions = ['1.0', '1.1', '2',]; |
|
38 | + private static $allowedVersions = ['1.0', '1.1', '2', ]; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param Worker $worker |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | if (\in_array($key, array('CONTENT_TYPE', 'CONTENT_LENGTH'))) { |
135 | 135 | $server[$key] = implode(', ', $value); |
136 | 136 | } else { |
137 | - $server['HTTP_' . $key] = implode(', ', $value); |
|
137 | + $server['HTTP_'.$key] = implode(', ', $value); |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 |
@@ -63,8 +63,9 @@ |
||
63 | 63 | public function acceptRequest() |
64 | 64 | { |
65 | 65 | $rawRequest = $this->httpClient->acceptRequest(); |
66 | - if ($rawRequest === null) |
|
67 | - return null; |
|
66 | + if ($rawRequest === null) { |
|
67 | + return null; |
|
68 | + } |
|
68 | 69 | |
69 | 70 | list($ctx, $body) = $rawRequest; |
70 | 71 |