Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
51 | 6 | public function apply(RequestBuilder $requestBuilder, $map): void |
|
52 | { |
||
53 | 6 | if ($map === null) { |
|
54 | 1 | return; |
|
55 | } |
||
56 | |||
57 | 5 | foreach ($map as $name => $value) { |
|
58 | 4 | foreach ($this->getListValues($value) as $element) { |
|
59 | 3 | $requestBuilder->addField($name, $this->converter->convert($element), $this->encoded); |
|
60 | } |
||
61 | } |
||
62 | 4 | } |
|
63 | } |
||
64 |