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