Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 416d8fe

Browse files
committed
Fix style issue
1 parent 0b2db54 commit 416d8fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/DrupalInitCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,22 @@ protected function execute(InputInterface $input, OutputInterface $output)
143143
];
144144

145145
if ($this->isDrupal7($input)) {
146+
$extra = &$options['extra'];
146147
$options['conflict'] = [
147148
'drupal/core' => '8.*',
148149
];
149-
$options['extra']['drupal-composer-helper']['set-d7-paths'] = true;
150-
$options['extra']['preserve-paths'] = [
150+
151+
$extra['drupal-composer-helper']['set-d7-paths'] = true;
152+
$extra['preserve-paths'] = [
151153
$web_prefix . '/sites/all/libraries',
152154
$web_prefix . '/sites/all/modules/custom',
153155
$web_prefix . '/sites/all/modules/features',
154156
$web_prefix . '/sites/all/themes/custom',
155157
$web_prefix . '/sites/all/translations',
156158
$web_prefix . '/sites/default',
157159
];
158-
$options['extra']['installer-paths'][$web_prefix . '/'] = $options['extra']['installer-paths'][$web_prefix . '/core'];
159-
unset($options['extra']['installer-paths'][$web_prefix . '/core']);
160+
$extra['installer-paths'][$web_prefix . '/'] = $extra['installer-paths'][$web_prefix . '/core'];
161+
unset($extra['installer-paths'][$web_prefix . '/core']);
160162
}
161163

162164
$file->write($options);

0 commit comments

Comments
 (0)