Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | protected function removePackageFolder($packagePath) |
||
42 | { |
||
43 | $this->info('Remove package folder.'); |
||
44 | |||
45 | if (File::exists($packagePath)) { |
||
46 | if (!File::deleteDirectory($packagePath)) { |
||
47 | throw new RuntimeException('Cannot remove package folder'); |
||
48 | } |
||
49 | |||
50 | $this->info('Package folder was successfully removed.'); |
||
51 | } else { |
||
52 | $this->info('Package folder does not exists. Skipping.'); |
||
53 | } |
||
56 |