diff --git a/module/CLI/src/Install/Plugin/ApplicationConfigCustomizerPlugin.php b/module/CLI/src/Install/Plugin/ApplicationConfigCustomizerPlugin.php
index 78fda68a..b1bf6436 100644
--- a/module/CLI/src/Install/Plugin/ApplicationConfigCustomizerPlugin.php
+++ b/module/CLI/src/Install/Plugin/ApplicationConfigCustomizerPlugin.php
@@ -24,13 +24,10 @@ class ApplicationConfigCustomizerPlugin extends AbstractConfigCustomizerPlugin
{
$this->printTitle($output, 'APPLICATION');
- if ($appConfig->hasApp()) {
- $keepConfig = $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
- 'Do you want to keep imported application config? (Y/n): '
- ));
- if ($keepConfig) {
- return;
- }
+ if ($appConfig->hasApp() && $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
+ 'Do you want to keep imported application config? (Y/n): '
+ ))) {
+ return;
}
$appConfig->setApp([
diff --git a/module/CLI/src/Install/Plugin/LanguageConfigCustomizerPlugin.php b/module/CLI/src/Install/Plugin/LanguageConfigCustomizerPlugin.php
index 3259883a..83fbe7ad 100644
--- a/module/CLI/src/Install/Plugin/LanguageConfigCustomizerPlugin.php
+++ b/module/CLI/src/Install/Plugin/LanguageConfigCustomizerPlugin.php
@@ -25,13 +25,10 @@ class LanguageConfigCustomizerPlugin extends AbstractConfigCustomizerPlugin
{
$this->printTitle($output, 'LANGUAGE');
- if ($appConfig->hasLanguage()) {
- $keepConfig = $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
- 'Do you want to keep imported language? (Y/n): '
- ));
- if ($keepConfig) {
- return;
- }
+ if ($appConfig->hasLanguage() && $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
+ 'Do you want to keep imported language? (Y/n): '
+ ))) {
+ return;
}
$appConfig->setLanguage([
diff --git a/module/CLI/src/Install/Plugin/UrlShortenerConfigCustomizerPlugin.php b/module/CLI/src/Install/Plugin/UrlShortenerConfigCustomizerPlugin.php
index 7c0dec48..30186bfb 100644
--- a/module/CLI/src/Install/Plugin/UrlShortenerConfigCustomizerPlugin.php
+++ b/module/CLI/src/Install/Plugin/UrlShortenerConfigCustomizerPlugin.php
@@ -24,13 +24,10 @@ class UrlShortenerConfigCustomizerPlugin extends AbstractConfigCustomizerPlugin
{
$this->printTitle($output, 'URL SHORTENER');
- if ($appConfig->hasUrlShortener()) {
- $keepConfig = $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
- 'Do you want to keep imported URL shortener config? (Y/n): '
- ));
- if ($keepConfig) {
- return;
- }
+ if ($appConfig->hasUrlShortener() && $this->questionHelper->ask($input, $output, new ConfirmationQuestion(
+ 'Do you want to keep imported URL shortener config? (Y/n): '
+ ))) {
+ return;
}
// Ask for URL shortener params