Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0625 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 88 | public function __construct(array $profile = []) |
|
22 | { |
||
23 | 88 | $this->profile = $profile; |
|
24 | |||
25 | /** @var \Twig_Loader_Filesystem $loader */ |
||
26 | 88 | $loader = Template::getInstance()->getEngine()->getLoader(); |
|
27 | 88 | $paths = $loader->getPaths(); |
|
28 | 88 | if (!in_array($this->getTemplateFolder(), $paths, true)) { |
|
29 | $loader->addPath($this->getTemplateFolder()); |
||
30 | } |
||
31 | 88 | } |
|
32 | |||
66 |