diff --git a/BackendCommands.php b/BackendCommands.php index eac6d19..6ed3230 100644 --- a/BackendCommands.php +++ b/BackendCommands.php @@ -356,7 +356,7 @@ public function createTestingDump() // Prepare settings file. $defaultSettingsFile = $this->drupalRootDirectory().'/sites/default/settings.php'; if (file_exists($defaultSettingsFile)) { - $tmpName = tempnam( $this->drupalRootDirectory().'/sites/default/', 'settings.tmp'); + $tmpName = tempnam($this->drupalRootDirectory().'/sites/default/', 'settings.tmp'); rename($defaultSettingsFile, $tmpName); } $this->prepareSettingsFile($defaultSettingsFile, $dbSpec); @@ -493,9 +493,11 @@ private function filesAreEqual($firstFile, $secondFile): bool * * @param $defaultSettingsFile * @param $dbSpec + * * @return void */ - private function prepareSettingsFile($defaultSettingsFile, $dbSpec) { + private function prepareSettingsFile($defaultSettingsFile, $dbSpec) + { $fileString = <<