Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
32 | private function loadDotEnvParameters(\SplFileInfo $dotEnvFile): void |
||
33 | { |
||
34 | $dotenv = new Dotenv($dotEnvFile->getPath()); |
||
35 | |||
36 | $dotenv->required(self::SIMPLEX_ENV)->notEmpty(); |
||
37 | $dotenv->required(self::ENABLE_CACHE)->isInteger(); |
||
38 | $dotenv->required(self::DEBUG_MODE)->isInteger(); |
||
39 | $dotenv->required(self::COMPILE_CONTAINER)->isInteger(); |
||
40 | |||
41 | $dotenv->load(); |
||
42 | } |
||
44 |