| Conditions | 2 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2.0017 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 2 | public function install(): void |
|
| 43 | { |
||
| 44 | 2 | $this->require('illuminate/log "^6.0"'); |
|
| 45 | |||
| 46 | 2 | $this->task( |
|
| 47 | 2 | 'Creating default logging configuration', |
|
| 48 | function () { |
||
| 49 | 2 | if (! File::exists(config_path('logging.php'))) { |
|
| 50 | 2 | return File::copy( |
|
| 51 | 2 | static::CONFIG_FILE, |
|
| 52 | 2 | $this->app->configPath('logging.php') |
|
| 53 | ); |
||
| 54 | } |
||
| 55 | |||
| 56 | return false; |
||
| 57 | 2 | } |
|
| 58 | ); |
||
| 59 | |||
| 60 | 2 | $this->info('Usage:'); |
|
| 61 | 2 | $this->comment( |
|
| 62 | 2 | ' |
|
| 63 | use Log; |
||
| 77 |