Completed
Push — master ( e61230...7500e8 )
by Sebastian
04:38
created
src/Cli/Executable/Rsync.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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.
src/Backup/Sync/Rsync.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -95,14 +95,14 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.