| Conditions | 3 |
| Paths | 4 |
| Total Lines | 31 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | config([ |
||
| 20 | 'app.locale' => 'nl', |
||
| 21 | 'app.fallback_locale' => 'en', |
||
| 22 | |||
| 23 | // UniSharp/laravel-filemanager |
||
| 24 | 'lfm_config.url_prefix' => 'dashboard/mediacenter', |
||
| 25 | |||
| 26 | // laravel/laravel |
||
| 27 | 'auth.providers.users.model' => \Chuckbe\Chuckcms\Models\User::class, |
||
| 28 | ]); |
||
| 29 | |||
| 30 | if (Schema::hasTable('sites')) { |
||
| 31 | $site = Site::first(); |
||
| 32 | } else { |
||
| 33 | $site = null; |
||
| 34 | } |
||
| 35 | |||
| 36 | if ($site !== null) { |
||
| 37 | config([ |
||
| 38 | // mcamara/laravel-localization |
||
| 39 | 'laravellocalization.supportedLocales' => ChuckSite::getSupportedLocales(), |
||
| 40 | 'laravellocalization.useAcceptLanguageHeader' => config('lang.useAcceptLanguageHeader'), |
||
| 41 | 'laravellocalization.hideDefaultLocaleInURL' => config('lang.hideDefaultLocaleInURL'), |
||
| 42 | ]); |
||
| 43 | } else { |
||
| 44 | config([ |
||
| 45 | 'laravellocalization.supportedLocales' => config('lang.supportedLocales'), |
||
| 46 | 'laravellocalization.useAcceptLanguageHeader' => true, |
||
| 47 | 'laravellocalization.hideDefaultLocaleInURL' => false, |
||
| 48 | ]); |
||
| 61 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths