@@ -166,7 +166,7 @@ |
||
| 166 | 166 | |
| 167 | 167 | if ($headers = $this->received_headers) { |
| 168 | 168 | // Filter out HTTP status and empty header lines |
| 169 | - $headers = array_filter(explode("\r\n", $headers), function ($header) { |
|
| 169 | + $headers = array_filter(explode("\r\n", $headers), function($header) { |
|
| 170 | 170 | return empty($header) == false && strpos($header, ':'); |
| 171 | 171 | }); |
| 172 | 172 | |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $response = new Response(200, '', $this->responseTestHeaders, $this->responseTestData); |
| 118 | 118 | $headers = $response->getHeaders(); |
| 119 | 119 | |
| 120 | - $isAssociativeArray = (bool)count(array_filter(array_keys($headers), 'is_string')) > 0; |
|
| 120 | + $isAssociativeArray = (bool) count(array_filter(array_keys($headers), 'is_string')) > 0; |
|
| 121 | 121 | |
| 122 | 122 | $this->assertTrue($isAssociativeArray); |
| 123 | 123 | } |