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