Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 2 | public function __invoke($input) |
|
29 | { |
||
30 | 2 | if (!is_array($input)) { |
|
31 | 1 | throw new \InvalidArgumentException('Input of a ArrayValueConverterMap must be an array'); |
|
32 | } |
||
33 | |||
34 | 1 | foreach ($input as $key => $item) { |
|
35 | 1 | $input[$key] = $this->convertItem($item); |
|
36 | 1 | } |
|
37 | |||
38 | 1 | return $input; |
|
39 | } |
||
40 | |||
63 |