| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class ToolServiceProvider extends ServiceProvider |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Bootstrap any application services. |
||
| 16 | * |
||
| 17 | * @return void |
||
| 18 | */ |
||
| 19 | public function boot() |
||
| 20 | { |
||
| 21 | $this->loadViewsFrom(__DIR__ . '/../resources/views/nova-overrides', 'nova'); |
||
| 22 | |||
| 23 | Nova::serving(function (ServingNova $event) { |
||
| 24 | DashboardNova::dashboardsIn(app_path('Nova/Dashboards')); |
||
| 25 | Nova::script('nova-multiple-dashboard', __DIR__ . '/../dist/js/MultipleDashboard.js'); |
||
| 26 | }); |
||
| 27 | |||
| 28 | $this->app->booted(function () { |
||
| 29 | $this->routes(); |
||
| 30 | |||
| 31 | Nova::serving(function (ServingNova $event) { |
||
| 32 | DashboardNova::copyDefaultDashboardCards(); |
||
| 33 | DashboardNova::cardsInDashboards(); |
||
| 34 | }); |
||
| 35 | }); |
||
| 36 | |||
| 37 | if ($this->app->runningInConsole()) { |
||
| 38 | $this->commands([ |
||
| 39 | CreateDashboard::class, |
||
| 40 | ]); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Register the tool's routes. |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | protected function routes() |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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