| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 2 | public function build($path) |
|
| 42 | { |
||
| 43 | 2 | foreach ($this->variables as $var_name => $value) { |
|
| 44 | 2 | $$var_name = $value; |
|
| 45 | } |
||
| 46 | |||
| 47 | 2 | ob_start(); |
|
| 48 | /** @noinspection PhpIncludeInspection */ |
||
| 49 | 2 | include $path; |
|
| 50 | 2 | $output = ob_get_contents(); |
|
| 51 | 2 | ob_end_clean(); |
|
| 52 | |||
| 53 | 2 | return $output; |
|
| 54 | } |
||
| 56 |