| Conditions | 2 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.0811 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 1 | public function install(): void |
|
| 43 | { |
||
| 44 | 1 | $this->call('app:install', ['component' => 'database']); |
|
| 45 | |||
| 46 | 1 | $this->require('illuminate/bus "^6.0"'); |
|
| 47 | 1 | $this->require('illuminate/queue "^6.0"'); |
|
| 48 | |||
| 49 | 1 | $this->task( |
|
| 50 | 1 | 'Creating default queue configuration', |
|
| 51 | function () { |
||
| 52 | 1 | if (! File::exists(config_path('queue.php'))) { |
|
| 53 | return File::copy( |
||
| 54 | static::CONFIG_FILE, |
||
| 55 | $this->app->configPath('queue.php') |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | |||
| 59 | 1 | return false; |
|
| 60 | 1 | } |
|
| 64 |