| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 10 | public function interpolate(&$data) | ||
| 11 |     { | ||
| 12 |         if (is_array($data)) { | ||
| 13 |             foreach ($data as &$item) { | ||
| 14 | $this->interpolate($item); | ||
| 15 | } | ||
| 16 |         } elseif (is_string($data)) { | ||
| 17 |             $data = preg_replace_callback('/\{{ (.*?) }}/', function ($matches) { | ||
| 18 | return $this->get($matches[1]); | ||
| 19 | }, $data); | ||
| 20 | } | ||
| 21 | } | ||
| 22 | |||
| 43 |