Skip to content

Commit

Permalink
Improve the logic
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Dec 28, 2023
1 parent 67164e1 commit 07a9f96
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/Command/Configure/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@ protected function configure(): void {
}

protected function execute(InputInterface $input, OutputInterface $output): int {
$sign = $input->getOption('sign');
$certificate = $input->getOption('certificate');
$all = (!$sign && !$certificate);
if ($this->pagePreviewAsImage) {
$preview = $input->getOption('preview');
$sign = $input->getOption('sign');
$certificate = $input->getOption('certificate');
$all = (!$preview && !$sign && !$certificate);
} else {
$sign = $input->getOption('sign');
$certificate = $input->getOption('certificate');
$all = (!$sign && !$certificate);
$all = (!$preview && $all);
}

$result = [];
Expand Down

0 comments on commit 07a9f96

Please sign in to comment.