From 05e26e2995cfe4cb999df1c29cd1450a1acd78bd Mon Sep 17 00:00:00 2001 From: Sergii Pavlenko Date: Fri, 28 Sep 2018 09:32:28 +0200 Subject: [PATCH] OPENEUROPA-1149: Fix code sniffer issues. --- src/Commands/DrupalCommands.php | 2 +- tests/CommandsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/DrupalCommands.php b/src/Commands/DrupalCommands.php index ebda253b..e4c54696 100755 --- a/src/Commands/DrupalCommands.php +++ b/src/Commands/DrupalCommands.php @@ -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 . '\';', diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index e29af8ca..f05e9bd9 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -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());