src/Checks/ExampleEnvironmentVariablesAreSet.php 1 location
|
@@ 39-45 (lines=7) @@
|
| 36 |
|
return $this->checkForDotEnvV4(); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
if (interface_exists(\Dotenv\Environment\FactoryInterface::class)) { |
| 40 |
|
$examples = Dotenv::create(base_path(), '.env.example'); |
| 41 |
|
$actual = Dotenv::create(base_path(), '.env'); |
| 42 |
|
} else { |
| 43 |
|
$examples = new Dotenv(base_path(), '.env.example'); |
| 44 |
|
$actual = new Dotenv(base_path(), '.env'); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
$examples->safeLoad(); |
| 48 |
|
$actual->safeLoad(); |
src/Checks/ExampleEnvironmentVariablesAreUpToDate.php 1 location
|
@@ 36-42 (lines=7) @@
|
| 33 |
|
return $this->checkForDotEnvV4(); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
if (interface_exists(\Dotenv\Environment\FactoryInterface::class)) { |
| 37 |
|
$examples = Dotenv::create(base_path(), '.env.example'); |
| 38 |
|
$actual = Dotenv::create(base_path(), '.env'); |
| 39 |
|
} else { |
| 40 |
|
$examples = new Dotenv(base_path(), '.env.example'); |
| 41 |
|
$actual = new Dotenv(base_path(), '.env'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
$examples->safeLoad(); |
| 45 |
|
$actual->safeLoad(); |