Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
33 | private function loadEnvs(string $dir, string $file): void |
||
34 | { |
||
35 | /** @psalm-suppress UndefinedClass */ |
||
36 | if (method_exists(Dotenv::class, 'createMutable')) { |
||
37 | Dotenv::createMutable($dir, $file)->load(); |
||
38 | } elseif (method_exists(Dotenv::class, 'create')) { |
||
39 | Dotenv::create($dir, $file)->overload(); |
||
40 | } else { |
||
41 | (new Dotenv($dir, $file))->overload(); |
||
42 | } |
||
45 |
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