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