Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | 22 | public function __construct(string $templateDirectory) |
|
13 | { |
||
14 | 22 | $fs = new Filesystem(); |
|
15 | |||
16 | 22 | if (! $fs->exists($templateDirectory)) { |
|
17 | 1 | $fs->mkdir($templateDirectory); |
|
18 | } |
||
19 | |||
20 | 22 | $loader = new \Twig_Loader_Filesystem($templateDirectory); |
|
21 | |||
22 | 22 | parent::__construct($loader); |
|
23 | 22 | } |
|
24 | |||
44 |