| Conditions | 4 |
| Paths | 8 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 32 | { |
||
| 33 | $outputDir = $this->getBuilder($output)->getConfig()->get('output.dir'); |
||
| 34 | if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir.'/output')) { |
||
| 35 | $outputDir = file_get_contents($this->getPath().'/'.Serve::$tmpDir.'/output'); |
||
| 36 | } |
||
| 37 | // delete output dir |
||
| 38 | if ($this->fs->exists($this->getPath().'/'.$outputDir)) { |
||
| 39 | $this->fs->remove($this->getPath().'/'.$outputDir); |
||
| 40 | $output->writeln(sprintf("Output directory '%s' removed.", $outputDir)); |
||
| 41 | } |
||
| 42 | // delete local server temp files |
||
| 43 | if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir)) { |
||
| 44 | $this->fs->remove($this->getPath().'/'.Serve::$tmpDir); |
||
| 45 | $output->writeln('Temporary files deleted.'); |
||
| 46 | } |
||
| 47 | |||
| 48 | return 0; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |