| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function processCommand() |
||
| 19 | { |
||
| 20 | //delete output dir |
||
| 21 | $outputDir = $this->getPHPoole()->getConfig()->get('output.dir'); |
||
| 22 | if ($this->fs->exists($this->getPath().'/'.$outputDir)) { |
||
| 23 | $this->fs->remove($this->getPath().'/'.$outputDir); |
||
| 24 | $this->wlDone(sprintf("Output directory '%s' removed.", $outputDir)); |
||
| 25 | } |
||
| 26 | // delete server temp files |
||
| 27 | if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir)) { |
||
| 28 | $this->fs->remove($this->getPath().'/'.Serve::$tmpDir); |
||
| 29 | $this->wlDone('Temporary server files deleted.'); |
||
| 30 | } |
||
| 31 | exit(0); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |