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