Skip to content

Commit 40b755d

Browse files
committed
Fix PHPCS errors.
1 parent 1167a41 commit 40b755d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Command/Composer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ protected function generate(array &$vars): void {
3737
]);
3838
$vars['type'] = $this->io->askQuestion($type_question);
3939

40-
if (!in_array($vars['type'], ['drupal-custom-module', 'drupal-custom-theme', 'drupal-custom-profile'])) {
40+
$custom_types = [
41+
'drupal-custom-module',
42+
'drupal-custom-theme',
43+
'drupal-custom-profile',
44+
];
45+
if (!\in_array($vars['type'], $custom_types)) {
4146
// If project type is custom, there is no reason to ask this.
4247
$vars['drupal_org'] = $this->confirm('Is this project hosted on drupal.org?', FALSE);
4348
}

0 commit comments

Comments
 (0)