| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | protected function purgeDebuggingFiles($path) |
||
| 55 | { |
||
| 56 | if (!is_dir($path)) { |
||
| 57 | $this->warn("Unable to purge missing directory [{$path}]."); |
||
| 58 | |||
| 59 | return; |
||
| 60 | } |
||
| 61 | |||
| 62 | |||
| 63 | if ($this->option('yes') || $this->confirm("Do you wish to remove directory with all content? {$path}")) { |
||
| 64 | File::deleteDirectory($path); |
||
| 65 | $this->info("Removed directory [{$path}]."); |
||
| 66 | |||
| 67 | return; |
||
| 68 | } |
||
| 69 | |||
| 70 | $this->warn("Skip removing directory [{$path}]."); |
||
| 71 | } |
||
| 73 |