Conditions | 4 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
66 | private function arrayWalkRecursively(array $schemaData) |
||
67 | { |
||
68 | foreach ($schemaData as $key => $value) { |
||
69 | $newValue = null; |
||
70 | if ($value instanceof SimpleXMLElement) { |
||
71 | $newValue = (array) $value; |
||
72 | $newValue = $this->arrayWalkRecursively($newValue); |
||
73 | } |
||
74 | $schemaData[$key] = $newValue===null ? $value: $newValue; |
||
75 | } |
||
76 | return $schemaData; |
||
77 | } |
||
78 | } |
||
79 |