| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 27 | 96 | private function setDirectory(string $path): void |
|
| 28 | { |
||
| 29 | 96 | Assert::stringNotEmpty( |
|
| 30 | 87 | $path, |
|
| 31 | 'The directory with the code to be scanned cannot be empty' |
||
| 32 | 96 | ); |
|
| 33 | $directory = new SplFileInfo($path); |
||
| 34 | 96 | if (! $directory->isDir()) { |
|
| 35 | 9 | throw InvalidDirectory::notFoundAt($directory); |
|
| 36 | } |
||
| 37 | 87 | $this->directory = $directory; |
|
| 38 | 87 | } |
|
| 40 |
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