|
@@ -244,9 +244,9 @@ discard block |
|
|
block discarded – undo |
|
244
|
244
|
*/ |
|
245
|
245
|
protected function createCommandLine() : CommandLine |
|
246
|
246
|
{ |
|
247
|
|
- $password = !empty($this->password) ? 'RSYNC_PASSWORD=' . escapeshellarg($this->password) . ' ' : ''; |
|
|
247
|
+ $password = !empty($this->password) ? 'RSYNC_PASSWORD='.escapeshellarg($this->password).' ' : ''; |
|
248
|
248
|
$process = new CommandLine(); |
|
249
|
|
- $cmd = new Cmd($password . $this->binary); |
|
|
249
|
+ $cmd = new Cmd($password.$this->binary); |
|
250
|
250
|
$process->addCommand($cmd); |
|
251
|
251
|
|
|
252
|
252
|
if (!empty($this->args)) { |
|
@@ -256,7 +256,7 @@ discard block |
|
|
block discarded – undo |
|
256
|
256
|
$this->validateLocations(); |
|
257
|
257
|
|
|
258
|
258
|
// use archive mode, verbose and compress if not already done |
|
259
|
|
- $options = '-av' . ($this->compressed ? 'z' : ''); |
|
|
259
|
+ $options = '-av'.($this->compressed ? 'z' : ''); |
|
260
|
260
|
$cmd->addOption($options); |
|
261
|
261
|
$this->configureExcludes($cmd, $this->excludes); |
|
262
|
262
|
$cmd->addOptionIfNotEmpty('--delete', $this->delete, false); |
Please login to merge, or discard this patch.