| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 8 | public function apply(RequestBuilder $requestBuilder, $map): void |
|
| 46 | { |
||
| 47 | 8 | if ($map === null) { |
|
| 48 | 2 | return; |
|
| 49 | } |
||
| 50 | |||
| 51 | 6 | foreach ($map as $name => $value) { |
|
| 52 | 5 | foreach ($this->getListValues($value) as $element) { |
|
| 53 | 5 | $requestBuilder->addHeader($name, $this->converter->convert($element)); |
|
| 54 | } |
||
| 55 | } |
||
| 56 | 6 | } |
|
| 57 | } |
||
| 58 |