Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
21 | 4 | protected function transformRecursive($value) |
|
22 | { |
||
23 | 4 | if (is_array($value)) { |
|
24 | 4 | if (array_key_exists('#comment', $value)) { |
|
25 | 4 | unset($value['#comment']); |
|
26 | 4 | } |
|
27 | |||
28 | 4 | foreach ($value as &$subvalue) { |
|
29 | 2 | $subvalue = $this->transformRecursive($subvalue); |
|
30 | 4 | } |
|
31 | 4 | } |
|
32 | |||
33 | 4 | return $value; |
|
34 | } |
||
35 | } |
||
36 |