Completed
Push — master ( 0fff3c...c85376 )
by Sebastian
04:05
created
src/Backup/Source/Pgdump.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -263,20 +263,20 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Backup/Sync/AmazonS3v2.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Backup/Sync/AmazonS3v3.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Backup/Source/Tar.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,9 +132,9 @@
 block discarded – undo
132 132
 
133 133
             $this->executable = new Executable\Tar($this->pathToTar);
134 134
             $this->executable->archiveDirectory($this->path)
135
-                             ->useCompression($this->compression)
136
-                             ->removeSourceDirectory($this->removeSourceDir)
137
-                             ->archiveTo($this->pathToArchive);
135
+                                ->useCompression($this->compression)
136
+                                ->removeSourceDirectory($this->removeSourceDir)
137
+                                ->archiveTo($this->pathToArchive);
138 138
         }
139 139
         return $this->executable;
140 140
     }
Please login to merge, or discard this patch.
src/Util/Cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         'mongodump' => [],
50 50
         'mysqldump' => [
51 51
             '/usr/local/mysql/bin', // Mac OS X
52
-            '/usr/mysql/bin',       // Linux
52
+            '/usr/mysql/bin', // Linux
53 53
         ],
54 54
         'tar'       => [],
55 55
     ];
Please login to merge, or discard this patch.