| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function getHeaders() |
||
| 11 | { |
||
| 12 | $headers = []; |
||
| 13 | $contentHeaders = ['CONTENT_LENGTH' => true, 'CONTENT_MD5' => true, 'CONTENT_TYPE' => true]; |
||
| 14 | |||
| 15 | foreach ($this->parameters as $key => $value) { |
||
| 16 | if (0 === mb_stripos($key, 'HTTP_')) { |
||
| 17 | $headers[mb_substr($key, 5)] = $value; |
||
| 18 | } elseif (isset($contentHeaders[$key])) { |
||
| 19 | $headers[$key] = $value; |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | return $headers; |
||
| 24 | } |
||
| 28 |