Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 4 | public function getBody(): StreamInterface |
|
25 | { |
||
26 | 4 | $loader = new FilesystemLoader([App::$App->ApplicationPath.'/views']); |
|
27 | 4 | $env = new Environment($loader, ['strict_variables' => true]); |
|
28 | 4 | $env->addExtension(new StringLoaderExtension()); |
|
29 | 4 | $output = $env->render($this->template, $this->data); |
|
30 | 1 | return Utils::streamFor($output); |
|
31 | } |
||
33 |