We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 70 |