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