From dd099dc39cb8a5ea22ca5eae0d54adbb730279c9 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 6 Jul 2017 17:49:05 +0200 Subject: [PATCH] Removed declare strict types added by mistake --- .../src/Factory/InstallApplicationFactory.php | 2 -- .../ApplicationConfigCustomizerPlugin.php | 2 -- .../Plugin/DatabaseConfigCustomizerPlugin.php | 33 +++++++++---------- .../DefaultConfigCustomizerPluginFactory.php | 2 -- .../Plugin/LanguageConfigCustomizerPlugin.php | 2 -- .../UrlShortenerConfigCustomizerPlugin.php | 2 -- .../ApplicationConfigCustomizerPluginTest.php | 2 -- ...faultConfigCustomizerPluginFactoryTest.php | 2 -- .../LanguageConfigCustomizerPluginTest.php | 2 -- ...UrlShortenerConfigCustomizerPluginTest.php | 2 -- ...seImplicitOptionsMiddlewareFactoryTest.php | 2 -- 11 files changed, 15 insertions(+), 38 deletions(-) diff --git a/module/CLI/src/Factory/InstallApplicationFactory.php b/module/CLI/src/Factory/InstallApplicationFactory.php index e4d4beb9..742b5b70 100644 --- a/module/CLI/src/Factory/InstallApplicationFactory.php +++ b/module/CLI/src/Factory/InstallApplicationFactory.php @@ -1,6 +1,4 @@ printTitle($output, 'DATABASE'); - if ($appConfig->hasDatabase()) { - $keepConfig = $this->questionHelper->ask($input, $output, new ConfirmationQuestion( - 'Do you want to keep imported database config? (Y/n): ' - )); - if ($keepConfig) { - // If the user selected to keep DB config and is configured to use sqlite, copy DB file - if ($appConfig->getDatabase()['DRIVER'] === self::DATABASE_DRIVERS['SQLite']) { - try { - $this->filesystem->copy( - $appConfig->getImportedInstallationPath() . '/' . CustomizableAppConfig::SQLITE_DB_PATH, - CustomizableAppConfig::SQLITE_DB_PATH - ); - } catch (IOException $e) { - $output->writeln('It wasn\'t possible to import the SQLite database'); - throw $e; - } + if ($appConfig->hasDatabase() && $this->questionHelper->ask($input, $output, new ConfirmationQuestion( + 'Do you want to keep imported database config? (Y/n): ' + ))) { + // If the user selected to keep DB config and is configured to use sqlite, copy DB file + if ($appConfig->getDatabase()['DRIVER'] === self::DATABASE_DRIVERS['SQLite']) { + try { + $this->filesystem->copy( + $appConfig->getImportedInstallationPath() . '/' . CustomizableAppConfig::SQLITE_DB_PATH, + CustomizableAppConfig::SQLITE_DB_PATH + ); + } catch (IOException $e) { + $output->writeln('It wasn\'t possible to import the SQLite database'); + throw $e; } - - return; } + + return; } // Select database type diff --git a/module/CLI/src/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactory.php b/module/CLI/src/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactory.php index 6e1ea7a0..78e5a87a 100644 --- a/module/CLI/src/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactory.php +++ b/module/CLI/src/Install/Plugin/Factory/DefaultConfigCustomizerPluginFactory.php @@ -1,6 +1,4 @@