Skip to content

Commit

Permalink
OPENEUROPA-1149: Fix code sniffer issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergepavle committed Sep 28, 2018
1 parent c56b0e4 commit 05e26e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/DrupalCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function settingsSetup(array $options = [
$settings_override_filename = $options['settings-override-file'];
$settings_override_path = $options['root'] . '/sites/' . $options['sites-subdir'] . '/' . $settings_override_filename;
return $this->collectionBuilder()->addTaskList([
$this->taskFilesystemStack()->copy($options['root'] . '/sites/default/default.settings.php', $settings_file, TRUE),
$this->taskFilesystemStack()->copy($options['root'] . '/sites/default/default.settings.php', $settings_file, true),
$this->taskWriteToFile($settings_file)->append()->lines([
'if (file_exists($app_root . \'/\' . $site_path . \'/' . $settings_override_filename . '\')) {',
' include $app_root . \'/\' . $site_path . \'/' . $settings_override_filename . '\';',
Expand Down
2 changes: 1 addition & 1 deletion tests/CommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function testSettingsSetup(array $config, array $expected)
$configFile = $this->getSandboxFilepath('runner.yml');

file_put_contents($configFile, Yaml::dump($config));
mkdir($this->getSandboxRoot() . '/build/sites/default/', 0777, TRUE);
mkdir($this->getSandboxRoot() . '/build/sites/default/', 0777, true);
file_put_contents($this->getSandboxRoot() . '/build/sites/default/default.settings.php', '');

$input = new StringInput("drupal:settings-setup --working-dir=".$this->getSandboxRoot());
Expand Down

0 comments on commit 05e26e2

Please sign in to comment.