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

Commit

Permalink
Fix style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Oct 27, 2017
1 parent 0b2db54 commit 416d8fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/DrupalInitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,22 @@ protected function execute(InputInterface $input, OutputInterface $output)
];

if ($this->isDrupal7($input)) {
$extra = &$options['extra'];
$options['conflict'] = [
'drupal/core' => '8.*',
];
$options['extra']['drupal-composer-helper']['set-d7-paths'] = true;
$options['extra']['preserve-paths'] = [

$extra['drupal-composer-helper']['set-d7-paths'] = true;
$extra['preserve-paths'] = [
$web_prefix . '/sites/all/libraries',
$web_prefix . '/sites/all/modules/custom',
$web_prefix . '/sites/all/modules/features',
$web_prefix . '/sites/all/themes/custom',
$web_prefix . '/sites/all/translations',
$web_prefix . '/sites/default',
];
$options['extra']['installer-paths'][$web_prefix . '/'] = $options['extra']['installer-paths'][$web_prefix . '/core'];
unset($options['extra']['installer-paths'][$web_prefix . '/core']);
$extra['installer-paths'][$web_prefix . '/'] = $extra['installer-paths'][$web_prefix . '/core'];
unset($extra['installer-paths'][$web_prefix . '/core']);
}

$file->write($options);
Expand Down

0 comments on commit 416d8fe

Please sign in to comment.