Passed
Push — master ( 410e72...965759 )
by Kirill
04:34 queued 10s
created
src/Bridge/Dotenv/src/Bootloader/DotenvBootloader.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,16 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Bridge/Dotenv/tests/LoadTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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__]);
Please login to merge, or discard this patch.