Conditions | 4 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
35 | 16 | private function parseRecursive($unparsedValue) |
|
36 | { |
||
37 | 16 | $unparsedValue = $this->variableParser->getVariable($unparsedValue); |
|
38 | |||
39 | 16 | if ($unparsedValue instanceof DefaultVariable) { |
|
40 | 16 | $parsedValue = $unparsedValue->parsed(); |
|
41 | |||
42 | 16 | if (is_array($parsedValue)) { |
|
43 | 16 | foreach ($parsedValue as $key => &$property) { |
|
44 | 16 | $property = $this->parseRecursive($property); |
|
45 | } |
||
46 | } |
||
47 | } else { |
||
48 | 9 | $parsedValue = $unparsedValue->parsed(); |
|
49 | } |
||
50 | |||
51 | 16 | return $parsedValue; |
|
52 | } |
||
53 | } |
||
54 |