Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function execute(Arguments $args, ConsoleIo $io): ?int |
||
32 | { |
||
33 | $path = CACHE . 'twig_view'; |
||
34 | if (!file_exists($path)) { |
||
35 | $io->out("<warning>Twig cache path not found: {$path}</warning>"); |
||
36 | |||
37 | return parent::execute($args, $io); |
||
38 | } |
||
39 | unlink($path); |
||
40 | $io->out('<success>Cleared twig cache</success>'); |
||
41 | |||
42 | return parent::execute($args, $io); |
||
43 | } |
||
45 |