Conditions | 4 |
Paths | 3 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
53 | private function parseRecursive($unparsedValue) |
||
54 | { |
||
55 | $unparsedValue = $this->variableParser->getVariable($unparsedValue); |
||
56 | |||
57 | if ($unparsedValue instanceof DefaultVariable) { |
||
58 | $parsedValue = $unparsedValue->getParsed(); |
||
59 | |||
60 | if (\is_array($parsedValue)) { |
||
61 | foreach ($parsedValue as $key => &$property) { |
||
62 | $property = $this->parseRecursive($property); |
||
63 | } |
||
64 | } |
||
65 | } else { |
||
66 | $parsedValue = $unparsedValue->getParsed(); |
||
67 | } |
||
68 | |||
69 | return $parsedValue; |
||
70 | } |
||
71 | } |
||
72 |