We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 7 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class InstanceServiceProvider extends ServiceProvider |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The application instance. |
||
| 24 | * |
||
| 25 | * @var Application |
||
| 26 | */ |
||
| 27 | protected $app; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Bootstrap application. |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function boot() |
||
| 38 | } |
||
| 39 | |||
| 40 | private function makeSettingsInstance() |
||
| 41 | { |
||
| 42 | $this->app->singleton(SettingsManager::class, function () { |
||
| 43 | try { |
||
| 44 | return (new SettingsManager)->collect(app(SettingsRepository::class)->all()); |
||
|
|
|||
| 45 | } catch (Exception $e) { |
||
| 46 | if ($this->app->runningInConsole()) { |
||
| 47 | return new SettingsManager; |
||
| 48 | } |
||
| 49 | |||
| 50 | throw new EngineBootException('Could not perform query on the `settings database`, do we have proper connection settings?'); |
||
| 51 | } |
||
| 52 | }); |
||
| 53 | } |
||
| 54 | |||
| 55 | private function makePluginInstance() |
||
| 66 | } |
||
| 67 | }); |
||
| 70 |