Completed
Push — master ( afb84c...f5ece7 )
by Sebastian
03:03
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/Cmd.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 $ret = self::EXIT_EXCEPTION;
111 111
             }
112 112
         } catch (\Exception $e) {
113
-            echo $e->getMessage() . PHP_EOL;
113
+            echo $e->getMessage().PHP_EOL;
114 114
             $ret = self::EXIT_EXCEPTION;
115 115
         }
116 116
 
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
      */
219 219
     protected function findConfigurationInDir()
220 220
     {
221
-        $configurationFile = $this->arguments['configuration'] . '/phpbu.xml';
221
+        $configurationFile = $this->arguments['configuration'].'/phpbu.xml';
222 222
 
223 223
         if (file_exists($configurationFile)) {
224 224
             $this->arguments['configuration'] = realpath($configurationFile);
225
-        } elseif (file_exists($configurationFile . '.dist')) {
226
-            $this->arguments['configuration'] = realpath($configurationFile . '.dist');
225
+        } elseif (file_exists($configurationFile.'.dist')) {
226
+            $this->arguments['configuration'] = realpath($configurationFile.'.dist');
227 227
         }
228 228
     }
229 229
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     {
285 285
         $value = Arr::getValue($this->arguments, $arg);
286 286
         if (!empty($value)) {
287
-            $setter = 'set' . ucfirst($arg);
287
+            $setter = 'set'.ucfirst($arg);
288 288
             $configuration->{$setter}($value);
289 289
         }
290 290
     }
@@ -298,13 +298,13 @@  discard block
 block discarded – undo
298 298
 
299 299
         // check if upgrade is necessary
300 300
         if (!$this->isPharOutdated($this->getLatestVersion())) {
301
-            echo 'You already have the latest version of phpbu installed.' . PHP_EOL;
301
+            echo 'You already have the latest version of phpbu installed.'.PHP_EOL;
302 302
             exit(self::EXIT_SUCCESS);
303 303
         }
304 304
 
305 305
         $remoteFilename = 'http://phar.phpbu.de/phpbu.phar';
306 306
         $localFilename  = realpath($_SERVER['argv'][0]);
307
-        $tempFilename   = basename($localFilename, '.phar') . '-temp.phar';
307
+        $tempFilename   = basename($localFilename, '.phar').'-temp.phar';
308 308
 
309 309
         echo 'Updating the phpbu PHAR ... ';
310 310
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $phar = file_get_contents($remoteFilename);
313 313
         error_reporting($old);
314 314
         if (!$phar) {
315
-            echo ' failed' . PHP_EOL . 'Could not reach phpbu update site' . PHP_EOL;
315
+            echo ' failed'.PHP_EOL.'Could not reach phpbu update site'.PHP_EOL;
316 316
             exit(self::EXIT_EXCEPTION);
317 317
         }
318 318
         file_put_contents($tempFilename, $phar);
@@ -328,11 +328,11 @@  discard block
 block discarded – undo
328 328
         } catch (Exception $e) {
329 329
             // cleanup crappy phar
330 330
             unlink($tempFilename);
331
-            echo 'failed' . PHP_EOL . $e->getMessage() . PHP_EOL;
331
+            echo 'failed'.PHP_EOL.$e->getMessage().PHP_EOL;
332 332
             exit(self::EXIT_EXCEPTION);
333 333
         }
334 334
 
335
-        echo 'done' . PHP_EOL;
335
+        echo 'done'.PHP_EOL;
336 336
         exit(self::EXIT_SUCCESS);
337 337
     }
338 338
 
@@ -345,10 +345,10 @@  discard block
 block discarded – undo
345 345
 
346 346
         $latestVersion = $this->getLatestVersion();
347 347
         if ($this->isPharOutdated($latestVersion)) {
348
-            print 'You are not using the latest version of phpbu.' . PHP_EOL
349
-                . 'Use "phpunit --self-upgrade" to install phpbu ' . $latestVersion . PHP_EOL;
348
+            print 'You are not using the latest version of phpbu.'.PHP_EOL
349
+                . 'Use "phpunit --self-upgrade" to install phpbu '.$latestVersion.PHP_EOL;
350 350
         } else {
351
-            print 'You are using the latest version of phpbu.' . PHP_EOL;
351
+            print 'You are using the latest version of phpbu.'.PHP_EOL;
352 352
         }
353 353
         exit(self::EXIT_SUCCESS);
354 354
     }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         $version = file_get_contents('https://phar.phpbu.de/latest-version-of/phpbu');
366 366
         error_reporting($old);
367 367
         if (!$version) {
368
-            echo 'Network-Error: Could not check latest version.' . PHP_EOL;
368
+            echo 'Network-Error: Could not check latest version.'.PHP_EOL;
369 369
             exit(self::EXIT_EXCEPTION);
370 370
         }
371 371
         return $version;
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
             return;
392 392
         }
393 393
 
394
-        echo Version::getVersionString() . PHP_EOL . PHP_EOL;
394
+        echo Version::getVersionString().PHP_EOL.PHP_EOL;
395 395
         $this->isVersionStringPrinted = true;
396 396
     }
397 397
 
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
      */
401 401
     protected function printLogo()
402 402
     {
403
-        echo self::$logo . PHP_EOL;
403
+        echo self::$logo.PHP_EOL;
404 404
     }
405 405
 
406 406
     /**
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
 
425 425
 EOT;
426 426
         if ($this->isPhar) {
427
-            echo '  --version-check        Check whether phpbu is the latest version.' . PHP_EOL;
428
-            echo '  --self-upgrade         Upgrade phpbu to the latest version.' . PHP_EOL;
427
+            echo '  --version-check        Check whether phpbu is the latest version.'.PHP_EOL;
428
+            echo '  --self-upgrade         Upgrade phpbu to the latest version.'.PHP_EOL;
429 429
         }
430 430
     }
431 431
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     {
440 440
         $help = $hint ? ', use "phpbu -h" for help' : '';
441 441
         $this->printVersionString();
442
-        echo $message . $help . PHP_EOL;
442
+        echo $message.$help.PHP_EOL;
443 443
         exit(self::EXIT_EXCEPTION);
444 444
     }
445 445
 
Please login to merge, or discard this patch.
src/Result/PrinterCli.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
         $configuration = $event->getConfiguration();
173 173
         if ($this->verbose) {
174 174
             $this->write(
175
-                'Runtime:       ' . $this->runtime->getNameWithVersion() . PHP_EOL .
176
-                'Configuration: ' . $configuration->getFilename() . PHP_EOL .
175
+                'Runtime:       '.$this->runtime->getNameWithVersion().PHP_EOL.
176
+                'Configuration: '.$configuration->getFilename().PHP_EOL.
177 177
                 PHP_EOL
178 178
             );
179 179
         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $this->numBackups++;
190 190
         if ($this->debug) {
191 191
             $backup = $event->getConfiguration();
192
-            $this->writeWithAsterisk('backup: [' . $backup->getSource()->type . '] ');
192
+            $this->writeWithAsterisk('backup: ['.$backup->getSource()->type.'] ');
193 193
         }
194 194
     }
195 195
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     public function onBackupFailed(Event\Backup\Failed $event)
202 202
     {
203 203
         if ($this->debug) {
204
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
204
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
205 205
         }
206 206
     }
207 207
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     public function onBackupEnd(Event\Backup\End $event)
214 214
     {
215 215
         if ($this->debug) {
216
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
216
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
217 217
         }
218 218
     }
219 219
 
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
         $this->numChecks++;
228 228
         if ($this->debug) {
229 229
             $check = $event->getConfiguration();
230
-            $this->writeWithAsterisk('check: [' . $check->type . '] ');
231
-            $this->write('checking: [' . $check->value . '] ');
230
+            $this->writeWithAsterisk('check: ['.$check->type.'] ');
231
+            $this->write('checking: ['.$check->value.'] ');
232 232
         }
233 233
     }
234 234
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     public function onCheckFailed(Event\Check\Failed $event)
241 241
     {
242 242
         if ($this->debug) {
243
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
243
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
244 244
         }
245 245
     }
246 246
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     public function onCheckEnd(Event\Check\End $event)
253 253
     {
254 254
         if ($this->debug) {
255
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
255
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
256 256
         }
257 257
     }
258 258
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $this->numCrypts++;
267 267
         if ($this->debug) {
268 268
             $crypt = $event->getConfiguration();
269
-            $this->writeWithAsterisk('crypt: [' . $crypt->type . '] ');
269
+            $this->writeWithAsterisk('crypt: ['.$crypt->type.'] ');
270 270
         }
271 271
     }
272 272
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     public function onCryptSkipped(Event\Crypt\Skipped $event)
279 279
     {
280 280
         if ($this->debug) {
281
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
281
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
282 282
         }
283 283
     }
284 284
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     public function onCryptFailed(Event\Crypt\Failed $event)
291 291
     {
292 292
         if ($this->debug) {
293
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
293
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
294 294
         }
295 295
     }
296 296
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     public function onCryptEnd(Event\Crypt\End $event)
303 303
     {
304 304
         if ($this->debug) {
305
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
305
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
306 306
         }
307 307
     }
308 308
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         $this->numSyncs++;
317 317
         if ($this->debug) {
318 318
             $sync = $event->getConfiguration();
319
-            $this->writeWithAsterisk('sync: [' . $sync->type . '] ');
319
+            $this->writeWithAsterisk('sync: ['.$sync->type.'] ');
320 320
         }
321 321
     }
322 322
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     public function onSyncSkipped(Event\Sync\Skipped $event)
329 329
     {
330 330
         if ($this->debug) {
331
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
331
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
332 332
         }
333 333
     }
334 334
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     public function onSyncFailed(Event\Sync\Failed $event)
341 341
     {
342 342
         if ($this->debug) {
343
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
343
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
344 344
         }
345 345
     }
346 346
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     public function onSyncEnd(Event\Sync\End $event)
353 353
     {
354 354
         if ($this->debug) {
355
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
355
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
356 356
         }
357 357
     }
358 358
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $this->numCleanups++;
367 367
         if ($this->debug) {
368 368
             $cleanup = $event->getConfiguration();
369
-            $this->writeWithAsterisk('cleanup: [' . $cleanup->type . '] ');
369
+            $this->writeWithAsterisk('cleanup: ['.$cleanup->type.'] ');
370 370
         }
371 371
     }
372 372
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
     public function onCleanupSkipped(Event\Cleanup\Skipped $event)
379 379
     {
380 380
         if ($this->debug) {
381
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
381
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
382 382
         }
383 383
     }
384 384
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     public function onCleanupFailed(Event\Cleanup\Failed $event)
391 391
     {
392 392
         if ($this->debug) {
393
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
393
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
394 394
         }
395 395
     }
396 396
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     public function onCleanupEnd(Event\Cleanup\End $event)
403 403
     {
404 404
         if ($this->debug) {
405
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
405
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
406 406
         }
407 407
     }
408 408
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     public function onDebug(Event\Debug $event)
415 415
     {
416 416
         if ($this->debug) {
417
-            $this->write($event->getMessage() . PHP_EOL);
417
+            $this->write($event->getMessage().PHP_EOL);
418 418
         }
419 419
     }
420 420
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      */
453 453
     protected function printHeader()
454 454
     {
455
-        $this->write(PHP_Timer::resourceUsage() . PHP_EOL . PHP_EOL);
455
+        $this->write(PHP_Timer::resourceUsage().PHP_EOL.PHP_EOL);
456 456
     }
457 457
 
458 458
     /**
@@ -512,13 +512,13 @@  discard block
 block discarded – undo
512 512
         $clSkipped  = str_pad($backup->cleanupCountSkipped(), 7, ' ', STR_PAD_LEFT);
513 513
         $clFailed   = str_pad($backup->cleanupCountFailed(), 6, ' ', STR_PAD_LEFT);
514 514
 
515
-        $out = PHP_EOL . '          | executed | skipped | failed |' . PHP_EOL
516
-            . '----------+----------+---------+--------+' . PHP_EOL
517
-            . ' checks   | ' . $chExecuted . ' |         | ' . $chFailed . ' |' . PHP_EOL
518
-            . ' crypts   | ' . $crExecuted . ' | ' . $crSkipped . ' | ' . $crFailed . ' |' . PHP_EOL
519
-            . ' syncs    | ' . $syExecuted . ' | ' . $sySkipped . ' | ' . $syFailed . ' |' . PHP_EOL
520
-            . ' cleanups | ' . $clExecuted . ' | ' . $clSkipped . ' | ' . $clFailed . ' |' . PHP_EOL
521
-            . '----------+----------+---------+--------+' . PHP_EOL . PHP_EOL;
515
+        $out = PHP_EOL.'          | executed | skipped | failed |'.PHP_EOL
516
+            . '----------+----------+---------+--------+'.PHP_EOL
517
+            . ' checks   | '.$chExecuted.' |         | '.$chFailed.' |'.PHP_EOL
518
+            . ' crypts   | '.$crExecuted.' | '.$crSkipped.' | '.$crFailed.' |'.PHP_EOL
519
+            . ' syncs    | '.$syExecuted.' | '.$sySkipped.' | '.$syFailed.' |'.PHP_EOL
520
+            . ' cleanups | '.$clExecuted.' | '.$clSkipped.' | '.$clFailed.' |'.PHP_EOL
521
+            . '----------+----------+---------+--------+'.PHP_EOL.PHP_EOL;
522 522
 
523 523
         $this->write($out);
524 524
     }
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
             $this->writeWithColor(
540 540
                 'fg-black, bg-green',
541 541
                 sprintf(
542
-                    'OK (%d %s, %d %s, %d %s, %d %s, %d %s)' . PHP_EOL,
542
+                    'OK (%d %s, %d %s, %d %s, %d %s, %d %s)'.PHP_EOL,
543 543
                     count($result->getBackups()),
544 544
                     Util\Str::appendPluralS('backup', count($result->getBackups())),
545 545
                     $this->numChecks,
@@ -556,8 +556,8 @@  discard block
 block discarded – undo
556 556
             $this->writeWithColor(
557 557
                 'fg-black, bg-yellow',
558 558
                 sprintf(
559
-                    "WARNING, skipped|failed Crypts, Syncs or Cleanups!" . PHP_EOL .
560
-                    'Backups: %d, Crypts: %d|%d, Syncs: %d|%d, Cleanups: %d|%d ' . PHP_EOL,
559
+                    "WARNING, skipped|failed Crypts, Syncs or Cleanups!".PHP_EOL.
560
+                    'Backups: %d, Crypts: %d|%d, Syncs: %d|%d, Cleanups: %d|%d '.PHP_EOL,
561 561
                     count($result->getBackups()),
562 562
                     $result->cryptsSkippedCount(),
563 563
                     $result->cryptsFailedCount(),
@@ -571,8 +571,8 @@  discard block
 block discarded – undo
571 571
             $this->writeWithColor(
572 572
                 'fg-white, bg-red',
573 573
                 sprintf(
574
-                    "FAILURE!" . PHP_EOL .
575
-                    'Backups: %d, failed Checks: %d, failed Crypts: %d, failed Syncs: %d, failed Cleanups: %d.' . PHP_EOL,
574
+                    "FAILURE!".PHP_EOL.
575
+                    'Backups: %d, failed Checks: %d, failed Crypts: %d, failed Syncs: %d, failed Cleanups: %d.'.PHP_EOL,
576 576
                     count($result->getBackups()),
577 577
                     $result->checksFailedCount(),
578 578
                     $result->cryptsFailedCount(),
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         if ($this->colors) {
596 596
             $buffer = Util\Cli::formatWithColor($color, $buffer);
597 597
         }
598
-        $this->write($buffer . PHP_EOL);
598
+        $this->write($buffer.PHP_EOL);
599 599
     }
600 600
 
601 601
     /**
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.