| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 28 | public function handle() |
||
| 29 | { |
||
| 30 | $this->line('=== Rename public directory to "public_html" ==='); |
||
| 31 | |||
| 32 | if (! \File::exists(base_path('public_html/index.php'))) { |
||
| 33 | \File::copyDirectory(base_path('public'), base_path('public_html')); |
||
| 34 | \File::deleteDirectory(base_path('public')); |
||
| 35 | $dir = str_replace('/Commands', '', __DIR__); |
||
| 36 | \File::copy($dir.'/../configVendor/larrock-index-public_html_php', base_path('public_html/index.php')); |
||
| 37 | $this->info('Directory and index.php successfully updated'); |
||
| 38 | } else { |
||
| 39 | $this->info('The command is not required, the directory has already changed.'); |
||
| 40 | } |
||
| 43 |