Total Complexity | 5 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | final class SourceCodeFinder implements CodeFinder |
||
20 | { |
||
21 | 30 | public static function fromConfiguration(CodeFinderConfiguration $configuration): SourceCodeFinder |
|
22 | { |
||
23 | 30 | $finder = new Finder(); |
|
24 | 30 | if (! $configuration->recursive()) { |
|
25 | 18 | $finder->depth(0); |
|
26 | } |
||
27 | 30 | return new self($finder); |
|
28 | } |
||
29 | |||
30 | 30 | private function __construct(private readonly Finder $finder) |
|
32 | } |
||
33 | |||
34 | 26 | public function find(CodebaseDirectory $directory): SourceCode |
|
44 |
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