Skip to content

Commit

Permalink
Swap code to end in a success
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Aug 1, 2023
1 parent b4b6e80 commit 5f83a95
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
break;
}
}
if (empty($messages)) {
$style->success('All default values have the correct type');
return Command::SUCCESS;
if (!empty($messages)) {
$style->error('Some default values have the wrong type:');
$style->listing($messages);
return Command::FAILURE;
}
$style->error('Some default values have the wrong type:');
$style->listing($messages);
return Command::FAILURE;
$style->success('All default values have the correct type');
return Command::SUCCESS;
}
}

0 comments on commit 5f83a95

Please sign in to comment.