@@ -87,11 +87,11 @@ |
||
87 | 87 | protected function configureExecutable(Executable\Rsync $exec, Target $target) |
88 | 88 | { |
89 | 89 | $exec->fromPath($this->getRsyncLocation($target)) |
90 | - ->toHost($this->host) |
|
91 | - ->toPath($this->path) |
|
92 | - ->toUser($this->user) |
|
93 | - ->compressed(!$target->shouldBeCompressed()) |
|
94 | - ->removeDeleted($this->delete) |
|
95 | - ->exclude($this->excludes); |
|
90 | + ->toHost($this->host) |
|
91 | + ->toPath($this->path) |
|
92 | + ->toUser($this->user) |
|
93 | + ->compressed(!$target->shouldBeCompressed()) |
|
94 | + ->removeDeleted($this->delete) |
|
95 | + ->exclude($this->excludes); |
|
96 | 96 | } |
97 | 97 | } |
@@ -65,11 +65,11 @@ |
||
65 | 65 | protected function configureExecutable(Executable\Rsync $exec, Target $target) |
66 | 66 | { |
67 | 67 | $exec->fromHost($this->host) |
68 | - ->fromUser($this->user) |
|
69 | - ->fromPath($this->path) |
|
70 | - ->toPath($this->getRsyncLocation($target)) |
|
71 | - ->removeDeleted($this->delete) |
|
72 | - ->exclude($this->excludes); |
|
68 | + ->fromUser($this->user) |
|
69 | + ->fromPath($this->path) |
|
70 | + ->toPath($this->getRsyncLocation($target)) |
|
71 | + ->removeDeleted($this->delete) |
|
72 | + ->exclude($this->excludes); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $result->debug($rsync->getCmd()); |
51 | 51 | |
52 | 52 | if (!$rsync->wasSuccessful()) { |
53 | - throw new Exception('rsync failed:' . $rsync->getStdErr()); |
|
53 | + throw new Exception('rsync failed:'.$rsync->getStdErr()); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | return $this->createStatus($target); |
@@ -216,7 +216,7 @@ |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | // use archive mode, verbose and compress if not already done |
219 | - $options = '-av' . ($this->compressed ? 'z' : ''); |
|
219 | + $options = '-av'.($this->compressed ? 'z' : ''); |
|
220 | 220 | $cmd->addOption($options); |
221 | 221 | |
222 | 222 | if (count($this->excludes)) { |
@@ -102,9 +102,9 @@ |
||
102 | 102 | if (null !== $this->host) { |
103 | 103 | // remote user |
104 | 104 | if (null !== $this->user) { |
105 | - $return .= $this->user . '@'; |
|
105 | + $return .= $this->user.'@'; |
|
106 | 106 | } |
107 | - $return .= $this->host . ':'; |
|
107 | + $return .= $this->host.':'; |
|
108 | 108 | } |
109 | 109 | $return .= $this->path; |
110 | 110 |