| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public static function findDefaultPath(): string |
||
| 37 | { |
||
| 38 | if (!isset(self::$candidates)) { |
||
| 39 | self::$candidates = [ |
||
| 40 | self::FILE_NAME, |
||
| 41 | self::FILE_NAME.'.dist', |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | foreach (self::$candidates as $candidate) { |
||
| 46 | if (file_exists($candidate)) { |
||
| 47 | return realpath($candidate); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | throw new NoConfigurationFound(); |
||
| 52 | } |
||
| 54 |
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