Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
29 | { |
||
30 | $removedFilenames = $this->getFacade()->clearCacheFile(); |
||
31 | |||
32 | if (count($removedFilenames) === 0) { |
||
33 | $output->writeln('<fg=yellow>No gacela cache files found.</>'); |
||
34 | } else { |
||
35 | $output->writeln('<fg=green>Gacela cache files cleared successfully:</>'); |
||
36 | foreach ($removedFilenames as $filename) { |
||
37 | $output->writeln("> {$filename}"); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | return self::SUCCESS; |
||
42 | } |
||
44 |