@@ -397,7 +397,7 @@ |
||
397 | 397 | * Do not dump commands setting ownership. |
398 | 398 | * --no-owner |
399 | 399 | * |
400 | - * @param $bool |
|
400 | + * @param boolean $bool |
|
401 | 401 | * @return \phpbu\App\Cli\Executable\Pgdump |
402 | 402 | */ |
403 | 403 | public function dumpNoOwner($bool) |
@@ -199,18 +199,18 @@ |
||
199 | 199 | if (null == $this->executable) { |
200 | 200 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
201 | 201 | $this->executable->credentials($this->user, $this->password) |
202 | - ->useHost($this->host) |
|
203 | - ->useQuickMode($this->quick) |
|
204 | - ->lockTables($this->lockTables) |
|
205 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
206 | - ->useCompression($this->compress) |
|
207 | - ->useExtendedInsert($this->extendedInsert) |
|
208 | - ->dumpTables($this->tables) |
|
209 | - ->dumpDatabases($this->databases) |
|
210 | - ->ignoreTables($this->ignoreTables) |
|
211 | - ->dumpNoData($this->noData) |
|
212 | - ->dumpStructureOnly($this->structureOnly) |
|
213 | - ->dumpTo($target->getPathnamePlain()); |
|
202 | + ->useHost($this->host) |
|
203 | + ->useQuickMode($this->quick) |
|
204 | + ->lockTables($this->lockTables) |
|
205 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
206 | + ->useCompression($this->compress) |
|
207 | + ->useExtendedInsert($this->extendedInsert) |
|
208 | + ->dumpTables($this->tables) |
|
209 | + ->dumpDatabases($this->databases) |
|
210 | + ->ignoreTables($this->ignoreTables) |
|
211 | + ->dumpNoData($this->noData) |
|
212 | + ->dumpStructureOnly($this->structureOnly) |
|
213 | + ->dumpTo($target->getPathnamePlain()); |
|
214 | 214 | } |
215 | 215 | return $this->executable; |
216 | 216 | } |
@@ -263,20 +263,20 @@ |
||
263 | 263 | if (null == $this->executable) { |
264 | 264 | $this->executable = new Executable\Pgdump($this->pathToPgdump); |
265 | 265 | $this->executable->credentials($this->user, $this->password) |
266 | - ->useHost($this->host) |
|
267 | - ->usePort($this->port) |
|
268 | - ->dumpDatabase($this->database) |
|
269 | - ->dumpSchemas($this->schemas) |
|
270 | - ->excludeSchemas($this->excludeSchemas) |
|
271 | - ->dumpTables($this->tables) |
|
272 | - ->excludeTables($this->excludeTables) |
|
273 | - ->excludeTableData($this->excludeTableData) |
|
274 | - ->dumpSchemaOnly($this->schemaOnly) |
|
275 | - ->dumpDataOnly($this->dataOnly) |
|
276 | - ->dumpNoPrivileges($this->noPrivileges) |
|
277 | - ->dumpNoOwner($this->noOwner) |
|
278 | - ->dumpFormat($this->format) |
|
279 | - ->dumpTo($target->getPathnamePlain()); |
|
266 | + ->useHost($this->host) |
|
267 | + ->usePort($this->port) |
|
268 | + ->dumpDatabase($this->database) |
|
269 | + ->dumpSchemas($this->schemas) |
|
270 | + ->excludeSchemas($this->excludeSchemas) |
|
271 | + ->dumpTables($this->tables) |
|
272 | + ->excludeTables($this->excludeTables) |
|
273 | + ->excludeTableData($this->excludeTableData) |
|
274 | + ->dumpSchemaOnly($this->schemaOnly) |
|
275 | + ->dumpDataOnly($this->dataOnly) |
|
276 | + ->dumpNoPrivileges($this->noPrivileges) |
|
277 | + ->dumpNoOwner($this->noOwner) |
|
278 | + ->dumpFormat($this->format) |
|
279 | + ->dumpTo($target->getPathnamePlain()); |
|
280 | 280 | } |
281 | 281 | return $this->executable; |
282 | 282 | } |
@@ -5,8 +5,6 @@ |
||
5 | 5 | use phpbu\App\Result; |
6 | 6 | use phpbu\App\Backup\Sync; |
7 | 7 | use phpbu\App\Backup\Target; |
8 | -use phpbu\App\Util\Arr; |
|
9 | -use phpbu\App\Util\Str; |
|
10 | 8 | |
11 | 9 | /** |
12 | 10 | * Amazon S3 Sync |
@@ -68,9 +68,9 @@ |
||
68 | 68 | public function getUploadPath(Target $target) |
69 | 69 | { |
70 | 70 | return 's3://' . $this->bucket |
71 | - . (substr($this->path, 0, 1) == '/' ? '' : '/') |
|
72 | - . $this->path |
|
73 | - . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
74 | - . $target->getFilename(); |
|
71 | + . (substr($this->path, 0, 1) == '/' ? '' : '/') |
|
72 | + . $this->path |
|
73 | + . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
74 | + . $target->getFilename(); |
|
75 | 75 | } |
76 | 76 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $s3->registerStreamWrapper(); |
48 | 48 | $stream = fopen($targetPath, 'w'); |
49 | 49 | $source = fopen($sourcePath, 'r'); |
50 | - while(!feof($source)) { |
|
50 | + while (!feof($source)) { |
|
51 | 51 | fwrite($stream, fread($source, 4096)); |
52 | 52 | } |
53 | 53 | fclose($stream); |