Skip to content

Commit 034c6bd

Browse files
committed
PHPCS
1 parent d169fca commit 034c6bd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Command/Entity/EntityBundleClass.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ protected function generate(array &$vars): void {
6868
$bundle_info->getBundleInfo($vars['entity_type_id']),
6969
);
7070
// Prepend an 'All' choice for user's convenience.
71-
$bundle_choices_all = array_merge(['all' => 'All'], $bundle_choices);
72-
$vars['bundle_ids'] = $this->choice('Bundles, comma separated', $bundle_choices, NULL, TRUE);
71+
$bundle_choices_all = \array_merge(['all' => 'All'], $bundle_choices);
72+
$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.");
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.");
7676
}
77-
if (in_array('all', $vars['bundle_ids'])) {
78-
// Replace 'all' with all bundle IDs.
79-
$vars['bundle_ids'] = array_keys($bundle_choices);
77+
if (\in_array('all', $vars['bundle_ids'])) {
78+
// Replace 'all' with all bundle IDs.
79+
$vars['bundle_ids'] = \array_keys($bundle_choices);
8080
}
8181

8282
$vars['classes'] = [];

0 commit comments

Comments
 (0)