Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
41 | public static function foundInFile(string $string, string $file): boolean |
||
|
|||
42 | { |
||
43 | if (!$fileHandle = fopen(self::getFileUrl($file), "r")) { |
||
44 | return false; |
||
45 | } |
||
46 | while (!feof($fileHandle)) { |
||
47 | if (trim($string) === trim(fgets($fileHandle))) { |
||
48 | return true; |
||
49 | } |
||
50 | } |
||
51 | fclose($fileHandle); |
||
52 | return false; |
||
53 | } |
||
55 |
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