Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
DariusIII
2018-01-22 21:41:42 +00:00
committed by StyleCI Bot
parent 2f8f7ca72d
commit 3d7b8f16c0
+3 -3
View File
@@ -19,15 +19,15 @@ if (file_exists(NN_ROOT.'_install/install.lock')) {
}
if (! $error) {
// Check if user selected right DB type.
// Check if user selected right DB type.
if (env('DB_SYSTEM') !== 'mysql') {
ColorCLI::doEcho(ColorCLI::error('Invalid database system. Must be: mysql ; Not: '.env('DB_SYSTEM')));
$error = true;
}
}
if (!(new Settings())->isDbVersionAtLeast(NN_MINIMUM_MARIA_VERSION) || !(new Settings())->isDbVersionAtLeast(NN_MINIMUM_MYSQL_VERSION)) {
ColorCLI::doEcho(ColorCLI::error('Version of MariaDB used is lower than required version: ' . NN_MINIMUM_MARIA_VERSION));
if (! (new Settings())->isDbVersionAtLeast(NN_MINIMUM_MARIA_VERSION) || ! (new Settings())->isDbVersionAtLeast(NN_MINIMUM_MYSQL_VERSION)) {
ColorCLI::doEcho(ColorCLI::error('Version of MariaDB used is lower than required version: '.NN_MINIMUM_MARIA_VERSION));
$error = true;
}
// Start inserting data into the DB.