| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | private function loadDotenv($dir, $file) |
||
| 42 | { |
||
| 43 | if (method_exists(Dotenv::class, 'createMutable')) { |
||
| 44 | Dotenv::createMutable($dir, $file)->load(); |
||
| 45 | } elseif (method_exists(Dotenv::class, 'create')) { |
||
| 46 | Dotenv::create($dir, $file)->overload(); |
||
| 47 | } else { |
||
| 48 | (new Dotenv($dir, $file))->overload(); |
||
| 49 | } |
||
| 52 |
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