| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 21 | final class SourceCodeFinder implements CodeFinder |
||
| 22 | { |
||
| 23 | protected Finder $finder; |
||
| 24 | |||
| 25 | private CodebaseDirectory $directory; |
||
| 26 | |||
| 27 | public static function recursive(CodebaseDirectory $directory): SourceCodeFinder |
||
| 28 | { |
||
| 29 | return new self(new Finder(), $directory); |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function nonRecursive(CodebaseDirectory $directory): SourceCodeFinder |
||
| 33 | { |
||
| 34 | $finder = new Finder(); |
||
| 35 | $finder->depth(0); |
||
| 36 | return new self($finder, $directory); |
||
| 37 | } |
||
| 38 | |||
| 39 | private function __construct(Finder $finder, CodebaseDirectory $directory) |
||
| 40 | { |
||
| 41 | $this->finder = $finder; |
||
| 42 | $this->directory = $directory; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** @return string[] */ |
||
| 46 | public function files(): array |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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