| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
| 52 | { |
||
| 53 | $config = $this->config; |
||
| 54 | $cacheDir = $config->get('dotfiles.cache_dir'); |
||
| 55 | |||
| 56 | $finder = Finder::create() |
||
| 57 | ->in($cacheDir) |
||
| 58 | ->files() |
||
| 59 | ; |
||
| 60 | |||
| 61 | $fs = new Filesystem(); |
||
| 62 | |||
| 63 | /* @var \Symfony\Component\Finder\SplFileInfo $file */ |
||
| 64 | foreach ($finder->files() as $file) { |
||
| 65 | $fs->remove($file); |
||
| 66 | $relPath = $file->getRelativePathname(); |
||
| 67 | $this->logger->debug("-removed <comment>$relPath</comment>"); |
||
| 68 | } |
||
| 71 |