Skip to content

Commit

Permalink
Merge branch feature/explorers-refactor into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Aug 28, 2024
1 parent 17e010b commit 9e2ef2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/Console/DocumentClearFolderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 0;
}

if (!$this->io->askQuestion(new ConfirmationQuestion(
sprintf('Are you sure to delete permanently %d documents?', $count),
false
))) {
if (
!$this->io->askQuestion(new ConfirmationQuestion(
sprintf('Are you sure to delete permanently %d documents?', $count),
false
))
) {
return 0;
}

Expand Down
10 changes: 6 additions & 4 deletions src/Console/DocumentPruneCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 0;
}

if (!$this->io->askQuestion(new ConfirmationQuestion(
sprintf('Are you sure to delete permanently %d unused documents?', $count),
false
))) {
if (
!$this->io->askQuestion(new ConfirmationQuestion(
sprintf('Are you sure to delete permanently %d unused documents?', $count),
false
))
) {
return 0;
}

Expand Down

0 comments on commit 9e2ef2e

Please sign in to comment.