| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 4 | private function addHeadersToApmResponse(ResponseInterface $httpResponse, Response $apmResponse): Response |
|
| 39 | { |
||
| 40 | 4 | foreach ($httpResponse->getHeaders() as $name => $valueList) { |
|
| 41 | 3 | if (in_array(strtolower($name), $this->headerBlacklist, true)) { |
|
| 42 | 2 | continue; |
|
| 43 | } |
||
| 44 | |||
| 45 | 3 | $apmResponse = $apmResponse->withHeader($name, implode(',', $valueList)); |
|
|
|
|||
| 46 | } |
||
| 47 | |||
| 48 | 4 | return $apmResponse; |
|
| 49 | } |
||
| 50 | } |
||
| 51 |