Test Failed
Branch master (00585a)
by Daniel
06:33 queued 03:40
created
app/core/Database.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             return false;
25 25
         }
26 26
 
27
-        try{
27
+        try {
28 28
             $instance = new PDO($this->loadConfig($config), $config['mysql']['username'], $config['mysql']['password']);
29 29
             $instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
30 30
             $instance->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         switch ($config['connection']) {
46 46
             case 'mysql':
47
-                return 'mysql:host=' . $config['mysql']['host'] . ';dbname=' . $config['mysql']['database'];
47
+                return 'mysql:host='.$config['mysql']['host'].';dbname='.$config['mysql']['database'];
48 48
             case 'sqlite':
49
-                return 'sqlite:' . __DIR__ . '/database/' . $config['sqlite']['database'] . '.sqlite';
49
+                return 'sqlite:'.__DIR__.'/database/'.$config['sqlite']['database'].'.sqlite';
50 50
             default:
51 51
                 throw new Exception('Connection type not supported');
52 52
         }
Please login to merge, or discard this patch.