@@ -71,10 +71,10 @@ |
||
71 | 71 | $this->executable = new Tar($this->pathToCommand); |
72 | 72 | $this->executable->archiveDirectory($this->path); |
73 | 73 | $this->executable->archiveTo($this->getArchiveFile($target)) |
74 | - ->useCompression( |
|
75 | - $target->shouldBeCompressed() ? $target->getCompressor()->getCommand() : '' |
|
76 | - ) |
|
77 | - ->removeSourceDirectory(true); |
|
74 | + ->useCompression( |
|
75 | + $target->shouldBeCompressed() ? $target->getCompressor()->getCommand() : '' |
|
76 | + ) |
|
77 | + ->removeSourceDirectory(true); |
|
78 | 78 | } |
79 | 79 | return $this->executable; |
80 | 80 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $result->debug($res->getCmd()); |
68 | 68 | |
69 | 69 | if (0 !== $res->getCode()) { |
70 | - throw new Exception('Failed to \'compress\' file: ' . $this->path); |
|
70 | + throw new Exception('Failed to \'compress\' file: '.$this->path); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->getArchiveFile($target); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $this->pathElementsChanging[] = $d; |
152 | 152 | $foundChangingElement = true; |
153 | 153 | } else { |
154 | - $this->pathNotChanging .= DIRECTORY_SEPARATOR . $d; |
|
154 | + $this->pathNotChanging .= DIRECTORY_SEPARATOR.$d; |
|
155 | 155 | } |
156 | 156 | } |
157 | 157 | // replace potential date placeholder |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | public function appendFileSuffix($suffix) |
187 | 187 | { |
188 | - $this->filename .= '.' . $suffix; |
|
188 | + $this->filename .= '.'.$suffix; |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -251,10 +251,10 @@ discard block |
||
251 | 251 | { |
252 | 252 | $suffix = ''; |
253 | 253 | if (!$plain) { |
254 | - $suffix .= $this->shouldBeCompressed() ? '.' . $this->compressor->getSuffix() : ''; |
|
255 | - $suffix .= $this->shouldBeEncrypted() ? '.' . $this->crypter->getSuffix() : ''; |
|
254 | + $suffix .= $this->shouldBeCompressed() ? '.'.$this->compressor->getSuffix() : ''; |
|
255 | + $suffix .= $this->shouldBeEncrypted() ? '.'.$this->crypter->getSuffix() : ''; |
|
256 | 256 | } |
257 | - return $this->filename . $suffix; |
|
257 | + return $this->filename.$suffix; |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | /** |
@@ -220,19 +220,19 @@ |
||
220 | 220 | if (null == $this->executable) { |
221 | 221 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
222 | 222 | $this->executable->credentials($this->user, $this->password) |
223 | - ->useHost($this->host) |
|
224 | - ->useQuickMode($this->quick) |
|
225 | - ->lockTables($this->lockTables) |
|
226 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
227 | - ->useCompression($this->compress) |
|
228 | - ->useExtendedInsert($this->extendedInsert) |
|
229 | - ->dumpTables($this->tables) |
|
230 | - ->dumpDatabases($this->databases) |
|
231 | - ->ignoreTables($this->ignoreTables) |
|
232 | - ->produceFilePerTable($this->filePerTable) |
|
233 | - ->dumpNoData($this->noData) |
|
234 | - ->dumpStructureOnly($this->structureOnly) |
|
235 | - ->dumpTo($this->getDumpTarget($target)); |
|
223 | + ->useHost($this->host) |
|
224 | + ->useQuickMode($this->quick) |
|
225 | + ->lockTables($this->lockTables) |
|
226 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
227 | + ->useCompression($this->compress) |
|
228 | + ->useExtendedInsert($this->extendedInsert) |
|
229 | + ->dumpTables($this->tables) |
|
230 | + ->dumpDatabases($this->databases) |
|
231 | + ->ignoreTables($this->ignoreTables) |
|
232 | + ->produceFilePerTable($this->filePerTable) |
|
233 | + ->dumpNoData($this->noData) |
|
234 | + ->dumpStructureOnly($this->structureOnly) |
|
235 | + ->dumpTo($this->getDumpTarget($target)); |
|
236 | 236 | } |
237 | 237 | return $this->executable; |
238 | 238 | } |
@@ -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 | } |