@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
204 | 204 | |
205 | 205 | if (!$mysqldump->wasSuccessful()) { |
206 | - throw new Exception('mysqldump failed:' . $mysqldump->getStdErr()); |
|
206 | + throw new Exception('mysqldump failed:'.$mysqldump->getStdErr()); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | return $this->createStatus($target); |
@@ -258,6 +258,6 @@ discard block |
||
258 | 258 | */ |
259 | 259 | private function getDumpTarget(Target $target) |
260 | 260 | { |
261 | - return $target->getPathnamePlain() . ($this->filePerTable ? '.dump' : ''); |
|
261 | + return $target->getPathnamePlain().($this->filePerTable ? '.dump' : ''); |
|
262 | 262 | } |
263 | 263 | } |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
112 | 112 | |
113 | 113 | if (!$elasticdump->wasSuccessful()) { |
114 | - throw new Exception('elasticdump failed: ' . $elasticdump->getStdErr()); |
|
114 | + throw new Exception('elasticdump failed: '.$elasticdump->getStdErr()); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | return $this->createStatus($target); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
142 | 142 | |
143 | 143 | if (!$arangodump->wasSuccessful()) { |
144 | - throw new Exception('arangodump failed: ' . $arangodump->getStdErr()); |
|
144 | + throw new Exception('arangodump failed: '.$arangodump->getStdErr()); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | return $this->createStatus($target); |
@@ -190,6 +190,6 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function getDumpDir(Target $target) |
192 | 192 | { |
193 | - return $target->getPath() . '/dump'; |
|
193 | + return $target->getPath().'/dump'; |
|
194 | 194 | } |
195 | 195 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
161 | 161 | |
162 | 162 | if (!$mongodump->wasSuccessful()) { |
163 | - throw new Exception('mongodump failed: ' . $mongodump->getStdErr()); |
|
163 | + throw new Exception('mongodump failed: '.$mongodump->getStdErr()); |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | return $this->createStatus($target); |
@@ -208,6 +208,6 @@ discard block |
||
208 | 208 | */ |
209 | 209 | public function getDumpDir(Target $target) |
210 | 210 | { |
211 | - return $target->getPath() . '/dump'; |
|
211 | + return $target->getPath().'/dump'; |
|
212 | 212 | } |
213 | 213 | } |
@@ -246,7 +246,7 @@ |
||
246 | 246 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
247 | 247 | |
248 | 248 | if (!$pgDump->wasSuccessful()) { |
249 | - throw new Exception('mysqldump failed:' . $pgDump->getStdErr()); |
|
249 | + throw new Exception('mysqldump failed:'.$pgDump->getStdErr()); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | return $this->createStatus($target); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function simulate(Target $target, Result $result) |
29 | 29 | { |
30 | - $result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandLinePrintable()); |
|
30 | + $result->debug('backup data:'.PHP_EOL.$this->getExecutable($target)->getCommandLinePrintable()); |
|
31 | 31 | |
32 | 32 | return $this->createStatus($target); |
33 | 33 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | public function encryptFile($file) |
178 | 178 | { |
179 | 179 | $this->sourceFile = $file; |
180 | - $this->targetFile = $file . '.enc'; |
|
180 | + $this->targetFile = $file.'.enc'; |
|
181 | 181 | return $this; |
182 | 182 | } |
183 | 183 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | { |
311 | 311 | $cmd->addOption('smime'); |
312 | 312 | $cmd->addOption('-encrypt'); |
313 | - $cmd->addOption('-' . $this->algorithm); |
|
313 | + $cmd->addOption('-'.$this->algorithm); |
|
314 | 314 | $cmd->addOption('-binary'); |
315 | 315 | $cmd->addOption('-in', $this->sourceFile, ' '); |
316 | 316 | $cmd->addOption('-out', $this->targetFile, ' '); |
@@ -325,12 +325,12 @@ discard block |
||
325 | 325 | */ |
326 | 326 | protected function setPasswordOptions(Cmd $cmd) |
327 | 327 | { |
328 | - $password = 'pass:' . $this->password; |
|
328 | + $password = 'pass:'.$this->password; |
|
329 | 329 | |
330 | 330 | $cmd->addOption('enc'); |
331 | 331 | $cmd->addOption('-e'); |
332 | 332 | $cmd->addOptionIfNotEmpty('-a', $this->base64, false); |
333 | - $cmd->addOption('-' . $this->algorithm); |
|
333 | + $cmd->addOption('-'.$this->algorithm); |
|
334 | 334 | $cmd->addOption('-pass', $password, ' '); |
335 | 335 | $cmd->addOption('-in', $this->sourceFile, ' '); |
336 | 336 | $cmd->addOption('-out', $this->targetFile, ' '); |
@@ -180,13 +180,13 @@ discard block |
||
180 | 180 | |
181 | 181 | // make sure there is a scheme |
182 | 182 | if (!isset($parsed['scheme'])) { |
183 | - $parsed = parse_url('http://' . $host); |
|
183 | + $parsed = parse_url('http://'.$host); |
|
184 | 184 | } |
185 | 185 | |
186 | - $url = $parsed['scheme'] . '://' . $this->getAuthUrlSnippet($user, $password) . $parsed['host']; |
|
186 | + $url = $parsed['scheme'].'://'.$this->getAuthUrlSnippet($user, $password).$parsed['host']; |
|
187 | 187 | |
188 | 188 | if (isset($parsed['port'])) { |
189 | - $url .= ':' . $parsed['port']; |
|
189 | + $url .= ':'.$parsed['port']; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | if (!empty($parsed['path'])) { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $url = $user; |
215 | 215 | |
216 | 216 | if (!empty($password)) { |
217 | - $url .= ':' . $password; |
|
217 | + $url .= ':'.$password; |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | if (!empty($url)) { |
@@ -453,8 +453,8 @@ |
||
453 | 453 | protected function createProcess() |
454 | 454 | { |
455 | 455 | $process = new Process(); |
456 | - $password = $this->password ? 'PGPASSWORD=' . escapeshellarg($this->password) . ' ' : ''; |
|
457 | - $cmd = new Cmd($password . $this->binary); |
|
456 | + $password = $this->password ? 'PGPASSWORD='.escapeshellarg($this->password).' ' : ''; |
|
457 | + $cmd = new Cmd($password.$this->binary); |
|
458 | 458 | $process->addCommand($cmd); |
459 | 459 | |
460 | 460 | // always disable password prompt |