Completed
Push — master ( 6a1fad...afb84c )
by Sebastian
05:39
created
src/Backup/Source/Arangodump.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $result->debug($arangodump->getCmdPrintable());
145 145
 
146 146
         if (!$arangodump->isSuccessful()) {
147
-            throw new Exception('arangodump failed: ' . $arangodump->getStdErr());
147
+            throw new Exception('arangodump failed: '.$arangodump->getStdErr());
148 148
         }
149 149
 
150 150
         return $this->createStatus($target);
@@ -190,6 +190,6 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function getDumpDir(Target $target) : string
192 192
     {
193
-        return $target->getPath() . '/dump';
193
+        return $target->getPath().'/dump';
194 194
     }
195 195
 }
Please login to merge, or discard this patch.
src/Backup/Sync/Rsync.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $result->debug($rsync->getCmd());
61 61
 
62 62
         if (!$rsync->isSuccessful()) {
63
-            throw new Exception('rsync failed: ' . $rsync->getStdErr());
63
+            throw new Exception('rsync failed: '.$rsync->getStdErr());
64 64
         }
65 65
     }
66 66
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function simulate(Target $target, Result $result)
74 74
     {
75 75
         $result->debug(
76
-            'sync backup with rsync' . PHP_EOL
76
+            'sync backup with rsync'.PHP_EOL
77 77
             . $this->getExecutable($target)->getCommandLine()
78 78
         );
79 79
     }
Please login to merge, or discard this patch.
src/Backup/Compressor/Abstraction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,14 +64,14 @@
 block discarded – undo
64 64
     public function compress(Target $target, Result $result)
65 65
     {
66 66
         if (!$this->isPathValid($this->path)) {
67
-            throw new Exception('path to compress should be valid: ' . $this->path);
67
+            throw new Exception('path to compress should be valid: '.$this->path);
68 68
         }
69 69
 
70 70
         $res = $this->execute($target);
71 71
         $result->debug($res->getCmd());
72 72
 
73 73
         if (!$res->isSuccessful()) {
74
-            throw new Exception('Failed to \'compress\' file: ' . $this->path);
74
+            throw new Exception('Failed to \'compress\' file: '.$this->path);
75 75
         }
76 76
 
77 77
         return $this->getArchiveFile($target);
Please login to merge, or discard this patch.
src/Util/Cli.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         'mongodump' => [],
43 43
         'mysqldump' => [
44 44
             '/usr/local/mysql/bin', // Mac OS X
45
-            '/usr/mysql/bin',       // Linux
45
+            '/usr/mysql/bin', // Linux
46 46
         ],
47 47
         'tar'       => [],
48 48
     ];
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public static function detectCmdLocationInPath(string $cmd, string $path) : string
121 121
     {
122
-        $command = $path . DIRECTORY_SEPARATOR . $cmd;
122
+        $command = $path.DIRECTORY_SEPARATOR.$cmd;
123 123
         $bin     = self::isExecutable($command);
124 124
         if (empty($bin)) {
125 125
             throw new RuntimeException(sprintf('wrong path specified for \'%s\': %s', $cmd, $path));
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     public static function detectCmdLocationInPaths($cmd, array $paths) : string
156 156
     {
157 157
         foreach ($paths as $path) {
158
-            $command = $path . DIRECTORY_SEPARATOR . $cmd;
158
+            $command = $path.DIRECTORY_SEPARATOR.$cmd;
159 159
             $bin     = self::isExecutable($command);
160 160
             if (null !== $bin) {
161 161
                 return $bin;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             return $path;
262 262
         }
263 263
 
264
-        $file = $base . DIRECTORY_SEPARATOR . $path;
264
+        $file = $base.DIRECTORY_SEPARATOR.$path;
265 265
 
266 266
         if ($useIncludePath && !file_exists($file)) {
267 267
             $includePathFile = stream_resolve_include_path($path);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
         $styledLines = [];
296 296
         foreach ($lines as $line) {
297
-            $styledLines[] = strlen($line) ? $style . str_pad($line, $padding) . "\x1b[0m" : '';
297
+            $styledLines[] = strlen($line) ? $style.str_pad($line, $padding)."\x1b[0m" : '';
298 298
         }
299 299
 
300 300
         return implode(PHP_EOL, $styledLines);
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      */
310 310
     public static function formatWithAsterisk(string $buffer, int $length = 75) : string
311 311
     {
312
-        return $buffer . str_repeat('*', $length - strlen($buffer)) . PHP_EOL;
312
+        return $buffer.str_repeat('*', $length - strlen($buffer)).PHP_EOL;
313 313
     }
314 314
 
315 315
     /**
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
             if ('.' === $file || '..' === $file) {
334 334
                 continue;
335 335
             }
336
-            if (is_dir($dir . '/' . $file)) {
337
-                self::removeDir($dir . '/' . $file);
336
+            if (is_dir($dir.'/'.$file)) {
337
+                self::removeDir($dir.'/'.$file);
338 338
             } else {
339
-                unlink($dir . '/' . $file);
339
+                unlink($dir.'/'.$file);
340 340
             }
341 341
         }
342 342
         rmdir($dir);
Please login to merge, or discard this patch.