Passed
Pull Request — master (#11)
by
unknown
05:31 queued 02:12
created
docker/application/configure-db.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $config['DB_TYPE'] = 'pgsql';
34 34
             break;
35 35
         default:
36
-            error('Database on non-standard port ' . $config['DB_PORT'] . ' and env DB_TYPE not present');
36
+            error('Database on non-standard port '.$config['DB_PORT'].' and env DB_TYPE not present');
37 37
         }
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
 try {
73 73
     $pdo->query('SELECT 1 FROM ttrss_feeds');
74 74
     // reached this point => table found, assume db is complete
75
-}
76
-catch (PDOException $e) {
75
+} catch (PDOException $e) {
77 76
     echo 'Database table not found, applying schema... '.PHP_EOL;
78 77
     $schema = file_get_contents('schema/ttrss_schema_'.$config['DB_TYPE'].'.sql');
79 78
     $schema = preg_replace('/--(.*?);/', '', $schema);
Please login to merge, or discard this patch.