| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 55 | public function render($templateName, array $parameters = array())  | 
            ||
| 56 |     { | 
            ||
| 57 |         foreach ($this->paths as $path) { | 
            ||
| 58 | $fullPath = $path . DIRECTORY_SEPARATOR . $templateName;  | 
            ||
| 59 |             if (file_exists($fullPath)) { | 
            ||
| 60 | extract($parameters, EXTR_SKIP);  | 
            ||
| 61 | ob_start();  | 
            ||
| 62 | require $fullPath;  | 
            ||
| 63 | return ob_get_clean();  | 
            ||
| 64 | }  | 
            ||
| 65 | }  | 
            ||
| 66 | |||
| 67 |         throw new \RuntimeException(sprintf('The template %s cannot be found.', $templateName)); | 
            ||
| 68 | }  | 
            ||
| 69 | }  | 
            ||
| 70 |