Completed
Push — master ( 0eeaa7...1e5783 )
by Sebastian
02:52
created
src/Cli/Executable/Pgdump.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -453,8 +453,8 @@
 block discarded – undo
453 453
     protected function createCommandLine() : CommandLine
454 454
     {
455 455
         $process  = new CommandLine();
456
-        $password = $this->password ? 'PGPASSWORD=' . escapeshellarg($this->password) . ' ' : '';
457
-        $cmd      = new Cmd($password . $this->binary);
456
+        $password = $this->password ? 'PGPASSWORD='.escapeshellarg($this->password).' ' : '';
457
+        $cmd      = new Cmd($password.$this->binary);
458 458
         $process->addCommand($cmd);
459 459
 
460 460
         // always disable password prompt
Please login to merge, or discard this patch.
src/Cli/Executable/Rsync/Location.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@
 block discarded – undo
102 102
         if (!empty($this->host)) {
103 103
             // remote user
104 104
             if (!empty($this->user)) {
105
-                $return .= $this->user . '@';
105
+                $return .= $this->user.'@';
106 106
             }
107
-            $return .= $this->host . ':';
107
+            $return .= $this->host.':';
108 108
         }
109 109
         $return .= $this->path;
110 110
 
Please login to merge, or discard this patch.
src/Backup/Cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function __construct(Runner $runner = null)
41 41
     {
42
-        $this->runner = $runner ? : new Runner\Simple();
42
+        $this->runner = $runner ?: new Runner\Simple();
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
src/Backup/Crypter/Abstraction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $crypt = $this->execute($target);
34 34
         $name  = strtolower(get_class($this));
35 35
 
36
-        $result->debug($name . ':' . $this->getExecutable($target)->getCommandPrintable());
36
+        $result->debug($name.':'.$this->getExecutable($target)->getCommandPrintable());
37 37
 
38 38
         if (!$crypt->isSuccessful()) {
39
-            throw new Exception($name . ' failed:' . PHP_EOL . $crypt->getStdErr());
39
+            throw new Exception($name.' failed:'.PHP_EOL.$crypt->getStdErr());
40 40
         }
41 41
     }
42 42
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function simulate(Target $target, Result $result)
50 50
     {
51 51
         $result->debug(
52
-            'execute encryption:' . PHP_EOL .
52
+            'execute encryption:'.PHP_EOL.
53 53
             $this->getExecutable($target)->getCommandPrintable()
54 54
         );
55 55
     }
Please login to merge, or discard this patch.
src/Backup/Crypter/Mcrypt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
      */
114 114
     protected function createExecutable(Target $target) : Executable
115 115
     {
116
-        $executable = new Executable\Mcrypt((string)$this->pathToMcrypt);
116
+        $executable = new Executable\Mcrypt((string) $this->pathToMcrypt);
117 117
         $executable->useAlgorithm($this->algorithm)
118 118
                    ->useKey($this->key)
119 119
                    ->useKeyFile($this->keyFile)
Please login to merge, or discard this patch.
src/Backup/Source/Mongodump.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $result->debug($mongodump->getCmdPrintable());
161 161
 
162 162
         if (!$mongodump->isSuccessful()) {
163
-            throw new Exception('mongodump failed: ' . $mongodump->getStdErr());
163
+            throw new Exception('mongodump failed: '.$mongodump->getStdErr());
164 164
         }
165 165
 
166 166
         return $this->createStatus($target);
@@ -205,6 +205,6 @@  discard block
 block discarded – undo
205 205
      */
206 206
     public function getDumpDir(Target $target) : string
207 207
     {
208
-        return $target->getPath() . '/dump';
208
+        return $target->getPath().'/dump';
209 209
     }
210 210
 }
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
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         $result->debug($elasticdump->getCmdPrintable());
110 110
 
111 111
         if (!$elasticdump->isSuccessful()) {
112
-            throw new Exception('elasticdump failed: ' . $elasticdump->getStdErr());
112
+            throw new Exception('elasticdump failed: '.$elasticdump->getStdErr());
113 113
         }
114 114
 
115 115
         return $this->createStatus($target);
Please login to merge, or discard this patch.
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.