| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProvider |
||
| 11 | { |
||
| 12 | 4 | public function register(): void |
|
| 13 | { |
||
| 14 | /** @var \Illuminate\Contracts\Config\Repository $config */ |
||
| 15 | 4 | $config = $this->app->get('config'); |
|
| 16 | |||
| 17 | 4 | $config->set( |
|
| 18 | 4 | 'ide-helper.model_hooks', |
|
| 19 | 4 | array_merge( |
|
| 20 | 4 | [MergedRelationsHook::class], |
|
| 21 | 4 | $config->get('ide-helper.model_hooks', []) |
|
| 22 | 4 | ) |
|
| 23 | 4 | ); |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function provides(): array |
|
| 30 | 4 | ]; |
|
| 31 | } |
||
| 33 |