Skip to content

Commit 6ecfbf5

Browse files
committed
Clean-up
1 parent 034c6bd commit 6ecfbf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Command/Entity/EntityBundleClass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ protected function generate(array &$vars): void {
7171
$bundle_choices_all = \array_merge(['all' => 'All'], $bundle_choices);
7272
$vars['bundle_ids'] = $this->choice('Bundles, comma separated', $bundle_choices_all, NULL, TRUE);
7373

74-
if (\in_array('all', $vars['bundle_ids']) && \count($vars['bundle_ids']) >= 2) {
75-
throw new \UnexpectedValueException("'All' may not be combined with other choices.");
76-
}
7774
if (\in_array('all', $vars['bundle_ids'])) {
75+
if (\count($vars['bundle_ids']) >= 2) {
76+
throw new \UnexpectedValueException("'All' may not be combined with other choices.");
77+
}
7878
// Replace 'all' with all bundle IDs.
7979
$vars['bundle_ids'] = \array_keys($bundle_choices);
8080
}

0 commit comments

Comments
 (0)