Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected function writeHeader(HttpResponse $response) |
||
22 | { |
||
23 | echo "HTTP/1.1 " . $response->getResponseCode() . "\r\n"; |
||
24 | echo "Content-Type: " . $this->getContentType() . "\r\n"; |
||
25 | |||
26 | foreach ($response->getHeaders() as $header => $value) { |
||
27 | if (is_array($value)) { |
||
28 | foreach ($value as $headerValue) { |
||
29 | echo "$header: $headerValue\r\n"; |
||
30 | } |
||
31 | } else { |
||
32 | echo "$header: $value\r\n"; |
||
33 | } |
||
34 | } |
||
35 | echo "\r\n"; |
||
36 | } |
||
78 |