Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
30 | private function interpolateArray(&$data) |
||
31 | { |
||
32 | if (is_array($data)) { |
||
33 | foreach ($data as &$item) { |
||
34 | $this->interpolateArray($item); |
||
35 | } |
||
36 | } elseif (is_string($data)) { |
||
37 | $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function ($matches) { |
||
38 | return $this->get($matches[1], $matches[2]); |
||
39 | }, $data); |
||
40 | } |
||
61 |