Passed
Pull Request — 1.0.0-dev (#1)
by
unknown
02:46
created
core/classes/database/Database.php 1 patch
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -603,17 +603,17 @@
 block discarded – undo
603 603
         return null;
604 604
         }
605 605
         switch ($driver) {
606
-        case 'mysql':
607
-        case 'pgsql':
608
-          $port = '';
609
-            if (! empty($config['port'])) {
610
-            $port = 'port=' . $config['port'] . ';';
611
-            }
612
-            $dsn = $driver . ':host=' . $config['hostname'] . ';' . $port . 'dbname=' . $config['database'];
613
-            break;
614
-        case 'sqlite':
615
-          $dsn = 'sqlite:' . $config['database'];
616
-            break;
606
+            case 'mysql':
607
+            case 'pgsql':
608
+              $port = '';
609
+                if (! empty($config['port'])) {
610
+                $port = 'port=' . $config['port'] . ';';
611
+                }
612
+                $dsn = $driver . ':host=' . $config['hostname'] . ';' . $port . 'dbname=' . $config['database'];
613
+                break;
614
+            case 'sqlite':
615
+              $dsn = 'sqlite:' . $config['database'];
616
+                break;
617 617
             case 'oracle':
618 618
           $port = '';
619 619
             if (! empty($config['port'])) {
Please login to merge, or discard this patch.