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