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