Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class QueryBuilderServiceProvider extends ServiceProvider |
||
15 | { |
||
16 | 67 | public function boot(): void |
|
17 | { |
||
18 | 67 | QueryConfiguration::setPerPage((int) config('query-builder.per_page.default')); |
|
19 | 67 | QueryConfiguration::setPageName((string) config('query-builder.per_page.key')); |
|
20 | 67 | if (! $this->app->runningInConsole()) { |
|
21 | return; |
||
22 | } |
||
23 | |||
24 | 67 | if (! $this->app instanceof Laravel) { |
|
25 | return; |
||
26 | } |
||
27 | |||
28 | 67 | $this->publishes([ |
|
29 | 67 | $this->getConfigPath() => config_path('query-builder.php'), |
|
30 | 67 | ], 'config'); |
|
31 | } |
||
32 | |||
33 | 67 | public function register(): void |
|
36 | } |
||
37 | |||
38 | 67 | protected function getConfigPath(): string |
|
39 | { |
||
40 | 67 | return __DIR__ . '/../config/query-builder.php'; |
|
41 | } |
||
42 | |||
43 | 67 | protected function registerConfig(): void |
|
50 | } |
||
51 | } |
||
52 |
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