Completed
Push — master ( 57f11e...d6a771 )
by Sebastian
02:59
created
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/Sync/AmazonS3.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,11 +118,11 @@
 block discarded – undo
118 118
     public function simulate(Target $target, Result $result)
119 119
     {
120 120
         $result->debug(
121
-            'sync backup to Amazon S3' . PHP_EOL
122
-            . '  region:   ' . $this->region . PHP_EOL
123
-            . '  key:      ' . $this->key . PHP_EOL
124
-            . '  secret:    ********' . PHP_EOL
125
-            . '  location: ' . $this->bucket
121
+            'sync backup to Amazon S3'.PHP_EOL
122
+            . '  region:   '.$this->region.PHP_EOL
123
+            . '  key:      '.$this->key.PHP_EOL
124
+            . '  secret:    ********'.PHP_EOL
125
+            . '  location: '.$this->bucket
126 126
         );
127 127
     }
128 128
 }
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/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)->getCommandLinePrintable());
124 124
 
125 125
         if (!$innobackupex->wasSuccessful()) {
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);
@@ -170,6 +170,6 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function getDumpDir(Target $target)
172 172
     {
173
-        return $target->getPath() . '/dump';
173
+        return $target->getPath().'/dump';
174 174
     }
175 175
 }
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
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $saveResult = $redisSave->run();
107 107
         $result->debug($this->getExecutable($target)->getCommandLinePrintable());
108 108
         if (!$saveResult->wasSuccessful()) {
109
-            throw new Exception('redis-cli BGSAVE failed:' . $saveResult->getStdErr());
109
+            throw new Exception('redis-cli BGSAVE failed:'.$saveResult->getStdErr());
110 110
         }
111 111
         // check if the save process is finished
112 112
         $this->isDumpCreatedYet($lastBackupTimestamp, $redisLast);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     private function copyDumpToTarget(Target $target)
196 196
     {
197 197
         if (!file_exists($this->pathToRedisData)) {
198
-            throw new Exception('Redis data not found at: \'' . $this->pathToRedisCli . '\'');
198
+            throw new Exception('Redis data not found at: \''.$this->pathToRedisCli.'\'');
199 199
         }
200 200
         $targetFile = $target->getPathnamePlain();
201 201
         copy($this->pathToRedisData, $targetFile);
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
@@ -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 1 patch
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.
src/Backup/Source/Elasticdump.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $result->debug($this->getExecutable($target)->getCommandLinePrintable());
112 112
 
113 113
         if (!$elasticdump->wasSuccessful()) {
114
-            throw new Exception('elasticdump failed: ' . $elasticdump->getStdErr());
114
+            throw new Exception('elasticdump failed: '.$elasticdump->getStdErr());
115 115
         }
116 116
 
117 117
         return $this->createStatus($target);
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
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $result->debug($this->getExecutable($target)->getCommandLinePrintable());
142 142
 
143 143
         if (!$arangodump->wasSuccessful()) {
144
-            throw new Exception('arangodump failed: ' . $arangodump->getStdErr());
144
+            throw new Exception('arangodump failed: '.$arangodump->getStdErr());
145 145
         }
146 146
 
147 147
         return $this->createStatus($target);
@@ -190,6 +190,6 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function getDumpDir(Target $target)
192 192
     {
193
-        return $target->getPath() . '/dump';
193
+        return $target->getPath().'/dump';
194 194
     }
195 195
 }
Please login to merge, or discard this patch.