| Conditions | 4 |
| Paths | 6 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function handle() |
||
| 39 | { |
||
| 40 | if ( ! is_dir(config_path())) { |
||
| 41 | $this->error('Config path does not exist.'); |
||
| 42 | } |
||
| 43 | |||
| 44 | if (projects_config_published()) { |
||
| 45 | if ( ! $this->confirm('Config already exists, do you wish to replace it?')) { |
||
| 46 | return; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->line('Copying projects config file.'); |
||
| 51 | |||
| 52 | // Copy from file to file and replacing if exists |
||
| 53 | copy(projects_base_path('/config/projects.php'), config_path('projects.php')); |
||
| 54 | |||
| 55 | $this->info('Pasted projects config file.'); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.