Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function render() |
||
27 | { |
||
28 | $filePath = $this->getFilePath(); |
||
29 | $variables = $this->getVariables(); |
||
30 | |||
31 | $this->throwRuntimeExceptionIfFilePathIsInvalid($filePath); |
||
32 | |||
33 | //enable support for $foo |
||
34 | extract($variables, EXTR_SKIP); |
||
35 | |||
36 | ob_start(); |
||
37 | include $filePath; |
||
38 | $content = ob_get_clean(); |
||
39 | |||
40 | return $content; |
||
41 | } |
||
42 | } |
||
43 |