Completed
Push — master ( a44372...459e0f )
by Sebastian
07:19
created
src/Backup/Sync/Rsync.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $result->debug($rsync->getCmd());
130 130
 
131 131
         if (!$rsync->wasSuccessful()) {
132
-            throw new Exception('rsync failed: ' . $rsync->getStdErr());
132
+            throw new Exception('rsync failed: '.$rsync->getStdErr());
133 133
         }
134 134
     }
135 135
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function simulate(Target $target, Result $result)
144 144
     {
145 145
         $result->debug(
146
-            'sync backup with rsync' . PHP_EOL
146
+            'sync backup with rsync'.PHP_EOL
147 147
             . $this->getExecutable($target)->getCommandLine()
148 148
         );
149 149
     }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,12 +97,12 @@
 block discarded – undo
97 97
                 );
98 98
             } else {
99 99
                 $this->executable->fromPath($this->getRsyncLocation($target))
100
-                                 ->toHost($this->host)
101
-                                 ->toPath($this->path)
102
-                                 ->toUser($this->user)
103
-                                 ->compressed(!$target->shouldBeCompressed())
104
-                                 ->removeDeleted($this->delete)
105
-                                 ->exclude($this->excludes);
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
         }
108 108
         return $this->executable;
Please login to merge, or discard this patch.
src/Backup/Sync/Xtp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@
 block discarded – undo
101 101
     public function simulate(Target $target, Result $result)
102 102
     {
103 103
         $result->debug(
104
-            'sync backup to ' . $this->getProtocolName() . ' server' . PHP_EOL
105
-            . '  host:     ' . $this->host . PHP_EOL
106
-            . '  user:     ' . $this->user . PHP_EOL
107
-            . '  password:  ********' . PHP_EOL
108
-            . '  path:     ' . $this->remotePath
104
+            'sync backup to '.$this->getProtocolName().' server'.PHP_EOL
105
+            . '  host:     '.$this->host.PHP_EOL
106
+            . '  user:     '.$this->user.PHP_EOL
107
+            . '  password:  ********'.PHP_EOL
108
+            . '  path:     '.$this->remotePath
109 109
         );
110 110
     }
111 111
 }
Please login to merge, or discard this patch.
src/Backup/Sync/Dropbox.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function sync(Target $target, Result $result)
77 77
     {
78 78
         $sourcePath  = $target->getPathname();
79
-        $dropboxPath = $this->path . $target->getFilename();
79
+        $dropboxPath = $this->path.$target->getFilename();
80 80
         $client      = new DropboxApi\Client($this->token, "phpbu/1.1.0");
81 81
         $pathError   = DropboxApi\Path::findErrorNonRoot($dropboxPath);
82 82
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         } catch (\Exception $e) {
101 101
             throw new Exception($e->getMessage(), null, $e);
102 102
         }
103
-        $result->debug('upload: done  (' . $res['size'] . ')');
103
+        $result->debug('upload: done  ('.$res['size'].')');
104 104
     }
105 105
 
106 106
     /**
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
     public function simulate(Target $target, Result $result)
113 113
     {
114 114
         $result->debug(
115
-            'sync backup to dropbox' . PHP_EOL
116
-            . '  token:    ********' . PHP_EOL
117
-            . '  location: ' . $this->path
115
+            'sync backup to dropbox'.PHP_EOL
116
+            . '  token:    ********'.PHP_EOL
117
+            . '  location: '.$this->path
118 118
         );
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
src/Backup/Compressor/Directory.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Backup/Compressor/Abstraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Backup/Source/Mysqldump.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -220,19 +220,19 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Backup/Source/Tar.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $result->debug($tar->getCmd());
102 102
 
103 103
         if (!$tar->wasSuccessful()) {
104
-            throw new Exception('tar failed: ' . $tar->getStdErr());
104
+            throw new Exception('tar failed: '.$tar->getStdErr());
105 105
         }
106 106
 
107 107
         return $this->createStatus($target);
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,10 +141,10 @@
 block discarded – undo
141 141
 
142 142
             $this->executable = new Executable\Tar($this->pathToTar);
143 143
             $this->executable->archiveDirectory($this->path)
144
-                             ->useCompression($this->compression)
145
-                             ->ignoreFailedRead($this->ignoreFailedRead)
146
-                             ->removeSourceDirectory($this->removeSourceDir)
147
-                             ->archiveTo($this->pathToArchive);
144
+                                ->useCompression($this->compression)
145
+                                ->ignoreFailedRead($this->ignoreFailedRead)
146
+                                ->removeSourceDirectory($this->removeSourceDir)
147
+                                ->archiveTo($this->pathToArchive);
148 148
         }
149 149
         return $this->executable;
150 150
     }
Please login to merge, or discard this patch.
src/Backup/Source/SimulatorExecutable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function simulate(Target $target, Result $result)
29 29
     {
30
-        $result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandLinePrintable());
30
+        $result->debug('backup data:'.PHP_EOL.$this->getExecutable($target)->getCommandLinePrintable());
31 31
 
32 32
         return $this->createStatus($target);
33 33
     }
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $this->executeCleanup($backup, $target, $collector);
126 126
 
127 127
             } catch (\Exception $e) {
128
-                $this->result->debug('exception: ' . $e->getMessage());
128
+                $this->result->debug('exception: '.$e->getMessage());
129 129
                 $this->result->addError($e);
130 130
                 $this->result->backupFailed($backup);
131 131
                 if ($backup->stopOnFailure()) {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                     $this->result->cryptSkipped($crypt);
255 255
                 } else {
256 256
                     /* @var \phpbu\App\Runner\Crypter $runner */
257
-                    $runner  = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
257
+                    $runner = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
258 258
                     $runner->run($this->factory->createCrypter($crypt->type, $crypt->options), $target, $this->result);
259 259
                 }
260 260
             } catch (Backup\Crypter\Exception $e) {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     {
277 277
         /* @var \phpbu\App\Runner\Crypter $runner */
278 278
         /* @var \phpbu\App\Configuration\Backup\Sync $sync */
279
-        $runner  = $this->factory->createRunner('sync', $this->configuration->isSimulation());
279
+        $runner = $this->factory->createRunner('sync', $this->configuration->isSimulation());
280 280
         foreach ($backup->getSyncs() as $sync) {
281 281
             try {
282 282
                 $this->result->syncStart($sync);
Please login to merge, or discard this patch.