diff --git a/src/Command/Database/RestoreCommand.php b/src/Command/Database/RestoreCommand.php index 659f158d6..b4ce3dd2a 100644 --- a/src/Command/Database/RestoreCommand.php +++ b/src/Command/Database/RestoreCommand.php @@ -77,9 +77,9 @@ protected function execute(InputInterface $input, OutputInterface $output) return 1; } if (strpos($file, '.sql.gz') !== false) { - $catCommand = "gunzip -c %s | "; + $catCommand = 'gunzip -c %s | '; } else { - $catCommand = "cat %s | "; + $catCommand = 'cat %s | '; } if ($databaseConnection['driver'] == 'mysql') { $command = sprintf( @@ -93,7 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } elseif ($databaseConnection['driver'] == 'pgsql') { $command = sprintf( - 'PGPASSWORD="%s" ' . $catCommand . 'psql -w -U %s -h %s -p %s -d %s', + $catCommand . 'PGPASSWORD="%s" psql -w -U %s -h %s -p %s -d %s', $file, $databaseConnection['password'], $databaseConnection['username'],