| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | private function translateHeaders(HeadersInterface $headers): array |
||
| 47 | { |
||
| 48 | $raw = []; |
||
| 49 | |||
| 50 | foreach ($headers as $header) { |
||
| 51 | $raw[$header->name()] = $header |
||
| 52 | ->values() |
||
| 53 | ->reduce( |
||
| 54 | [], |
||
| 55 | function(array $carry, HeaderValueInterface $value) { |
||
| 56 | $carry[] = (string) $value; |
||
| 57 | |||
| 58 | return $carry; |
||
| 59 | } |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | |||
| 63 | return $raw; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |