@@ -7,12 +7,12 @@ |
||
7 | 7 | |
8 | 8 | class ProcessHandler |
9 | 9 | { |
10 | - /** |
|
11 | - * Run the Symfony fromShellCommandLine |
|
12 | - * |
|
13 | - * @param string $command |
|
14 | - * @return boolean |
|
15 | - */ |
|
10 | + /** |
|
11 | + * Run the Symfony fromShellCommandLine |
|
12 | + * |
|
13 | + * @param string $command |
|
14 | + * @return boolean |
|
15 | + */ |
|
16 | 16 | public function run(string $command): bool |
17 | 17 | { |
18 | 18 | $process = Process::fromShellCommandline($command, null, null, null, 999.00); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | protected function createBackupFilename(): void |
80 | 80 | { |
81 | - $this->backupFilename = $this->storageFolder . $this->getDatabaseIdentifier() . '-' . microtime(true) . '.' . $this->getFileExtension(); |
|
81 | + $this->backupFilename = $this->storageFolder.$this->getDatabaseIdentifier().'-'.microtime(true).'.'.$this->getFileExtension(); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | Log::debug('Starting MySQL import procedure.'); |
118 | 118 | |
119 | 119 | $startTimeImport = microtime(true); |
120 | - $backupFile = '"' . addcslashes($backupFile, '\\"') . '"'; |
|
120 | + $backupFile = '"'.addcslashes($backupFile, '\\"').'"'; |
|
121 | 121 | $command = sprintf('mysql %s %s < %s', $this->getCredentials(), $this->database, $backupFile); |
122 | 122 | |
123 | 123 | $processHandler = new ProcessHandler(); |