Completed
Pull Request — develop (#5)
by Oyebanji Jacob
02:13
created
src/DatabaseConnection.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -161,16 +161,16 @@
 block discarded – undo
161 161
         ]);
162 162
     }
163 163
 
164
-     /**
165
-      * Load needed configuration values from the .env file using Dotenv.
166
-      * 
167
-      * @return void
168
-      */
169
-     public function loadEnv()
170
-     {
164
+        /**
165
+         * Load needed configuration values from the .env file using Dotenv.
166
+         * 
167
+         * @return void
168
+         */
169
+        public function loadEnv()
170
+        {
171 171
         if (!getenv('APP_ENV')) {
172 172
             $dotenv = new \Dotenv\Dotenv(__DIR__.'/../../../');
173 173
             $dotenv->overload();
174
-         }
175
-     }
174
+            }
175
+        }
176 176
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         
51 51
         $this->loadEnv(); // load the environment variables
52
-        $neededValues = array('DRIVER', 'HOSTNAME','USERNAME','PASSWORD','DBNAME','PORT'); 
52
+        $neededValues = array('DRIVER', 'HOSTNAME', 'USERNAME', 'PASSWORD', 'DBNAME', 'PORT'); 
53 53
         //Extract needed environment variables from the $_ENV global array
54 54
         $this->config = array_intersect_key($_ENV, array_flip($neededValues)); 
55 55
         $dsn = $dbConnStringFactory->createDatabaseSourceString($this->config);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      public function loadEnv()
170 170
      {
171 171
         if (!getenv('APP_ENV')) {
172
-            $dotenv = new \Dotenv\Dotenv(__DIR__.'/../../../');
172
+            $dotenv = new \Dotenv\Dotenv(__DIR__ . '/../../../');
173 173
             $dotenv->overload();
174 174
          }
175 175
      }
Please login to merge, or discard this patch.