Conditions | 4 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
44 | 6 | protected function transformRecursive($value) |
|
45 | { |
||
46 | 6 | if (is_array($value) || $value instanceof \Traversable) { |
|
47 | 2 | foreach ($value as &$subvalue) { |
|
48 | 2 | $subvalue = $this->transformRecursive($subvalue); |
|
49 | 2 | } |
|
50 | 2 | } else { |
|
51 | 6 | $value = $this->transformer->transform($value); |
|
52 | } |
||
53 | |||
54 | 6 | return $value; |
|
55 | } |
||
56 | } |
||
57 |