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