| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 19 | public function register(): void |
|
| 28 | { |
||
| 29 | 19 | parent::register(); |
|
| 30 | |||
| 31 | 19 | $this->app->alias('filesystem.disk', Filesystem::class); |
|
| 32 | |||
| 33 | 19 | $config = $this->app->make('config'); |
|
| 34 | |||
| 35 | 19 | if ($config->get('filesystems.default') === null) { |
|
| 36 | 19 | $config->set('filesystems', $this->getDefaultConfig()); |
|
| 37 | } |
||
| 38 | 19 | } |
|
| 39 | |||
| 60 |