Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 35 | public function boot(): void |
|
24 | { |
||
25 | 35 | $configPath = __DIR__ . '/../config/repositories.php'; |
|
26 | 35 | if (\function_exists('config_path')) { |
|
27 | 35 | $publishPath = config_path('repositories.php'); |
|
28 | } else { |
||
29 | $publishPath = base_path('config/repositories.php'); |
||
30 | } |
||
31 | 35 | $this->publishes([$configPath => $publishPath], 'config'); |
|
32 | 35 | } |
|
50 |
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