| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 44 | { |
||
| 45 | if (!$this->fs->exists($this->getBuilder()->getConfig()->getCachePath())) { |
||
| 46 | $output->writeln('<info>No cache.</info>'); |
||
| 47 | |||
| 48 | return 0; |
||
| 49 | } |
||
| 50 | $output->writeln('Removing cache directory...'); |
||
| 51 | $output->writeln( |
||
| 52 | sprintf('<comment>Path %s</comment>', $this->getBuilder()->getConfig()->getCachePath()), |
||
| 53 | OutputInterface::VERBOSITY_VERBOSE |
||
| 54 | ); |
||
| 55 | $this->fs->remove($this->getBuilder()->getConfig()->getCachePath()); |
||
| 56 | $output->writeln('<info>Cache is clear.</info>'); |
||
| 57 | |||
| 58 | return 0; |
||
| 59 | } |
||
| 61 |