| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 51 | { |
||
| 52 | if (!Util\File::getFS()->exists($this->getBuilder()->getConfig()->getCachePath())) { |
||
| 53 | $output->writeln('<info>No cache.</info>'); |
||
| 54 | |||
| 55 | return 0; |
||
| 56 | } |
||
| 57 | $output->writeln('Removing cache directory...'); |
||
| 58 | $output->writeln( |
||
| 59 | \sprintf('<comment>Path: %s</comment>', $this->getBuilder()->getConfig()->getCachePath()), |
||
| 60 | OutputInterface::VERBOSITY_VERBOSE |
||
| 61 | ); |
||
| 62 | Util\File::getFS()->remove($this->getBuilder()->getConfig()->getCachePath()); |
||
| 63 | $output->writeln('<info>Cache is clear.</info>'); |
||
| 64 | |||
| 65 | return 0; |
||
| 66 | } |
||
| 68 |