@@ -244,9 +244,9 @@ discard block |
||
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 |
||
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); |
@@ -95,14 +95,14 @@ |
||
95 | 95 | ); |
96 | 96 | } else { |
97 | 97 | $executable->fromPath($this->getRsyncLocation($target)) |
98 | - ->usePassword($this->password) |
|
99 | - ->usePasswordFile($this->passwordFile) |
|
100 | - ->toHost($this->host) |
|
101 | - ->toPath($this->path) |
|
102 | - ->toUser($this->user) |
|
103 | - ->compressed(!$target->shouldBeCompressed()) |
|
104 | - ->removeDeleted($this->delete) |
|
105 | - ->exclude($this->excludes); |
|
98 | + ->usePassword($this->password) |
|
99 | + ->usePasswordFile($this->passwordFile) |
|
100 | + ->toHost($this->host) |
|
101 | + ->toPath($this->path) |
|
102 | + ->toUser($this->user) |
|
103 | + ->compressed(!$target->shouldBeCompressed()) |
|
104 | + ->removeDeleted($this->delete) |
|
105 | + ->exclude($this->excludes); |
|
106 | 106 | } |
107 | 107 | return $executable; |
108 | 108 | } |