@@ -22,16 +22,16 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function boot(DirectoriesInterface $dirs, EnvironmentInterface $env) |
| 24 | 24 | { |
| 25 | - $dotenvPath = $env->get('DOTENV_PATH', $dirs->get('root') . '.env'); |
|
| 25 | + $dotenvPath = $env->get('DOTENV_PATH', $dirs->get('root').'.env'); |
|
| 26 | 26 | |
| 27 | - if (!file_exists($dotenvPath)) { |
|
| 27 | + if (!file_exists($dotenvPath)){ |
|
| 28 | 28 | return; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $path = dirname($dotenvPath); |
| 32 | 32 | $file = basename($dotenvPath); |
| 33 | 33 | |
| 34 | - foreach (Dotenv::create($path, $file)->load() as $key => $value) { |
|
| 34 | + foreach (Dotenv::create($path, $file)->load() as $key => $value){ |
|
| 35 | 35 | $env->set($key, $value); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -24,14 +24,16 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $dotenvPath = $env->get('DOTENV_PATH', $dirs->get('root') . '.env'); |
| 26 | 26 | |
| 27 | - if (!file_exists($dotenvPath)) { |
|
| 27 | + if (!file_exists($dotenvPath)) |
|
| 28 | + { |
|
| 28 | 29 | return; |
| 29 | 30 | } |
| 30 | 31 | |
| 31 | 32 | $path = dirname($dotenvPath); |
| 32 | 33 | $file = basename($dotenvPath); |
| 33 | 34 | |
| 34 | - foreach (Dotenv::create($path, $file)->load() as $key => $value) { |
|
| 35 | + foreach (Dotenv::create($path, $file)->load() as $key => $value) |
|
| 36 | + { |
|
| 35 | 37 | $env->set($key, $value); |
| 36 | 38 | } |
| 37 | 39 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function testNotFound() |
| 20 | 20 | { |
| 21 | 21 | $e = new Environment(); |
| 22 | - $d = new Directories(['root' => __DIR__ . '/..']); |
|
| 22 | + $d = new Directories(['root' => __DIR__.'/..']); |
|
| 23 | 23 | |
| 24 | 24 | $b = new DotenvBootloader(); |
| 25 | 25 | $b->boot($d, $e); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | public function testFoundCustom() |
| 42 | 42 | { |
| 43 | 43 | $e = new Environment([ |
| 44 | - 'DOTENV_PATH' => __DIR__ . '/.env.custom' |
|
| 44 | + 'DOTENV_PATH' => __DIR__.'/.env.custom' |
|
| 45 | 45 | ]); |
| 46 | 46 | |
| 47 | 47 | $d = new Directories(['root' => __DIR__]); |