Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | protected function createPackageFolder($packagePath) |
||
18 | { |
||
19 | $this->info('Create package folder.'); |
||
|
|||
20 | |||
21 | if (File::exists($packagePath)) { |
||
22 | $this->info('Package folder already exists. Skipping.'); |
||
23 | |||
24 | return; |
||
25 | } |
||
26 | |||
27 | if (!File::makeDirectory($packagePath, 0755, true)) { |
||
28 | throw new RuntimeException('Cannot create package folder'); |
||
29 | } |
||
30 | |||
31 | $this->info('Package folder was successfully created.'); |
||
32 | } |
||
56 |