Completed
Pull Request — develop (#5)
by Oyebanji Jacob
02:13
created
src/DatabaseConnection.php 1 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.