Completed
Push — master ( fc422d...111ee1 )
by Sebastian
09:14
created
src/Backup/Source/Rsync.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $result->debug($rsync->getCmd());
51 51
 
52 52
         if (!$rsync->isSuccessful()) {
53
-            throw new Exception('rsync failed:' . $rsync->getStdErr());
53
+            throw new Exception('rsync failed:'.$rsync->getStdErr());
54 54
         }
55 55
 
56 56
         return $this->createStatus($target);
Please login to merge, or discard this patch.
src/Backup/Source/Mysqldump.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $result->debug($this->getExecutable($target)->getCommandPrintable());
212 212
 
213 213
         if (!$mysqldump->isSuccessful()) {
214
-            throw new Exception('mysqldump failed:' . $mysqldump->getStdErr());
214
+            throw new Exception('mysqldump failed:'.$mysqldump->getStdErr());
215 215
         }
216 216
 
217 217
         return $this->createStatus($target);
@@ -290,6 +290,6 @@  discard block
 block discarded – undo
290 290
      */
291 291
     private function getDumpTarget(Target $target) : string
292 292
     {
293
-        return $target->getPathnamePlain() . ($this->filePerTable ? '.dump' : '');
293
+        return $target->getPathnamePlain().($this->filePerTable ? '.dump' : '');
294 294
     }
295 295
 }
Please login to merge, or discard this patch.
src/Backup/Source/Redis.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $saveResult          = $this->runCommand($redisSave);
106 106
         $result->debug($this->getExecutable($target)->getCommandPrintable());
107 107
         if (!$saveResult->isSuccessful()) {
108
-            throw new Exception('redis-cli BGSAVE failed:' . $saveResult->getStdErr());
108
+            throw new Exception('redis-cli BGSAVE failed:'.$saveResult->getStdErr());
109 109
         }
110 110
         // check if the save process is finished
111 111
         $this->isDumpCreatedYet($lastBackupTimestamp, $redisLast);
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     private function copyDumpToTarget(Target $target) : string
193 193
     {
194 194
         if (!file_exists($this->pathToRedisData)) {
195
-            throw new Exception('Redis data not found at: \'' . $this->pathToRedisCli . '\'');
195
+            throw new Exception('Redis data not found at: \''.$this->pathToRedisCli.'\'');
196 196
         }
197 197
         $targetFile = $target->getPathnamePlain();
198 198
         copy($this->pathToRedisData, $targetFile);
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) : Status
29 29
     {
30
-        $result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandPrintable());
30
+        $result->debug('backup data:'.PHP_EOL.$this->getExecutable($target)->getCommandPrintable());
31 31
 
32 32
         return $this->createStatus($target);
33 33
     }
Please login to merge, or discard this patch.
src/Backup/Source/Tar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
         $result->debug($tar->getCmdPrintable());
111 111
 
112 112
         if ($this->tarFailed($tar)) {
113
-            throw new Exception('tar failed: ' . $tar->getStdErr());
113
+            throw new Exception('tar failed: '.$tar->getStdErr());
114 114
         }
115 115
 
116 116
         return $this->createStatus($target);
Please login to merge, or discard this patch.
src/Backup/Source/Pgdump.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
246 246
         $result->debug($pgDump->getCmdPrintable());
247 247
 
248 248
         if (!$pgDump->isSuccessful()) {
249
-            throw new Exception('mysqldump failed:' . $pgDump->getStdErr());
249
+            throw new Exception('mysqldump failed:'.$pgDump->getStdErr());
250 250
         }
251 251
 
252 252
         return $this->createStatus($target);
Please login to merge, or discard this patch.
src/Backup/Source/XtraBackup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $result->debug($this->getExecutable($target)->getCommandPrintable());
124 124
 
125 125
         if (!$innobackupex->isSuccessful()) {
126
-            throw new Exception('XtraBackup failed: ' . $innobackupex->getStdErr());
126
+            throw new Exception('XtraBackup failed: '.$innobackupex->getStdErr());
127 127
         }
128 128
 
129 129
         return $this->createStatus($target);
@@ -167,6 +167,6 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function getDumpDir(Target $target) : string
169 169
     {
170
-        return $target->getPath() . '/dump';
170
+        return $target->getPath().'/dump';
171 171
     }
172 172
 }
Please login to merge, or discard this patch.
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/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.