Completed
Push — master ( 3a3e10...89e4e8 )
by Sebastian
08:48
created
src/Backup/Source/Tar.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -194,14 +194,14 @@
 block discarded – undo
194 194
 
195 195
         $executable = new Executable\Tar($this->pathToTar);
196 196
         $executable->archiveDirectory($this->path)
197
-                   ->useCompression($this->compression)
198
-                   ->useCompressProgram($this->compressProgram)
199
-                   ->forceLocal($this->forceLocal)
200
-                   ->ignoreFailedRead($this->ignoreFailedRead)
201
-                   ->removeSourceDirectory($this->removeSourceDir)
202
-                   ->throttle($this->throttle)
203
-                   ->archiveTo($this->pathToArchive)
204
-                   ->dereference($this->dereference);
197
+                    ->useCompression($this->compression)
198
+                    ->useCompressProgram($this->compressProgram)
199
+                    ->forceLocal($this->forceLocal)
200
+                    ->ignoreFailedRead($this->ignoreFailedRead)
201
+                    ->removeSourceDirectory($this->removeSourceDir)
202
+                    ->throttle($this->throttle)
203
+                    ->archiveTo($this->pathToArchive)
204
+                    ->dereference($this->dereference);
205 205
         // add paths to exclude
206 206
         foreach ($this->excludes as $path) {
207 207
             $executable->addExclude($path);
Please login to merge, or discard this patch.
src/Configuration/Loader/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
             throw new Exception('backup requires a target config');
223 223
         }
224 224
         $compress = Arr::getValue($json['target'], 'compress');
225
-        $filename = $this->getAdapterizedValue(Arr::getValue($json['target'], 'filename',''));
225
+        $filename = $this->getAdapterizedValue(Arr::getValue($json['target'], 'filename', ''));
226 226
         $dirname  = $this->getAdapterizedValue(Arr::getValue($json['target'], 'dirname', ''));
227 227
 
228 228
         if ($dirname) {
Please login to merge, or discard this patch.
src/Log/Mail.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -191,12 +191,12 @@  discard block
 block discarded – undo
191 191
             $info    = $this->getInfoHtml($result);
192 192
             $footer  = $this->getFooterHtml();
193 193
             $body    = '<html><body ' . TPL::getSnippet('sBody') . '>'
194
-                     . $header
195
-                     . $status
196
-                     . $errors
197
-                     . $info
198
-                     . $footer
199
-                     . '</body></html>';
194
+                        . $header
195
+                        . $status
196
+                        . $errors
197
+                        . $info
198
+                        . $footer
199
+                        . '</body></html>';
200 200
             $sent    = null;
201 201
             $state   = $result->allOk() ? 'OK' : ($result->backupOkButSkipsOrFails() ? 'WARNING' : 'ERROR');
202 202
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     protected function getHeaderHtml()
361 361
     {
362 362
         return '<table ' . TPL::getSnippet('sTableContent') . '><tr><td ' . TPL::getSnippet('sTableContentCol') . '>' .
363
-               '<table ' . TPL::getSnippet('sTableHeader') . '><tr><td>PHPBU - backup report</td></tr></table>';
363
+                '<table ' . TPL::getSnippet('sTableHeader') . '><tr><td>PHPBU - backup report</td></tr></table>';
364 364
     }
365 365
 
366 366
     /**
@@ -399,11 +399,11 @@  discard block
 block discarded – undo
399 399
             Str::appendPluralS('cleanup', $this->numCleanups)
400 400
         );
401 401
         $html = '<table ' . sprintf(TPL::getSnippet('sTableStatus'), $color) . '>' .
402
-                 '<tr><td>' .
403
-                  '<span ' . TPL::getSnippet('sTableStatusText') . '>' . date('Y-m-d H:i') . '</span>' .
404
-                  '<h1 ' . TPL::getSnippet('sTableStatusHead') . '>' . $status . '</h1>' .
405
-                  '<span ' . TPL::getSnippet('sTableStatusText') . '>' . $info . '</span>' .
406
-                 '</td></tr>' .
402
+                    '<tr><td>' .
403
+                    '<span ' . TPL::getSnippet('sTableStatusText') . '>' . date('Y-m-d H:i') . '</span>' .
404
+                    '<h1 ' . TPL::getSnippet('sTableStatusHead') . '>' . $status . '</h1>' .
405
+                    '<span ' . TPL::getSnippet('sTableStatusText') . '>' . $info . '</span>' .
406
+                    '</td></tr>' .
407 407
                 '</table>';
408 408
 
409 409
         return $html;
@@ -466,65 +466,65 @@  discard block
 block discarded – undo
466 466
                     $status = 'FAILURE';
467 467
                 }
468 468
                 $html .= '<tr>' .
469
-                          '<td ' . sprintf(TPL::getSnippet('sTableBackupStatusColumn'), $color) . ' colspan="4">' .
470
-                          sprintf('backup <em>%s</em>', $backup->getName()) .
471
-                          ' <span ' . TPL::getSnippet('sTableBackupStatusText') . '>' . $status . '</span>' .
472
-                          '</td>' .
473
-                         '</tr>' .
474
-                         '<tr>' .
475
-                          '<td ' . TPL::getSnippet('sRowHead') . '>&nbsp;</td>' .
476
-                          '<td ' . TPL::getSnippet('sRowHead') . ' align="right">executed</td>' .
477
-                          '<td ' . TPL::getSnippet('sRowHead') . ' align="right">skipped</td>' .
478
-                          '<td ' . TPL::getSnippet('sRowHead') . ' align="right">failed</td>' .
479
-                         '</tr>';
469
+                            '<td ' . sprintf(TPL::getSnippet('sTableBackupStatusColumn'), $color) . ' colspan="4">' .
470
+                            sprintf('backup <em>%s</em>', $backup->getName()) .
471
+                            ' <span ' . TPL::getSnippet('sTableBackupStatusText') . '>' . $status . '</span>' .
472
+                            '</td>' .
473
+                            '</tr>' .
474
+                            '<tr>' .
475
+                            '<td ' . TPL::getSnippet('sRowHead') . '>&nbsp;</td>' .
476
+                            '<td ' . TPL::getSnippet('sRowHead') . ' align="right">executed</td>' .
477
+                            '<td ' . TPL::getSnippet('sRowHead') . ' align="right">skipped</td>' .
478
+                            '<td ' . TPL::getSnippet('sRowHead') . ' align="right">failed</td>' .
479
+                            '</tr>';
480 480
 
481 481
                 $html .= '<tr>' .
482
-                          '<td ' . TPL::getSnippet('sRowCheck') . '>checks</td>' .
483
-                          '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">' .
482
+                            '<td ' . TPL::getSnippet('sRowCheck') . '>checks</td>' .
483
+                            '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">' .
484 484
                             $backup->checkCount() . '
485 485
                            </td>' .
486
-                          '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">
486
+                            '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">
487 487
                             &nbsp;
488 488
                            </td>' .
489
-                          '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">' .
489
+                            '<td ' . TPL::getSnippet('sRowCheck') . ' align="right">' .
490 490
                             $backup->checkCountFailed() .
491
-                          '</td>' .
492
-                         '</tr>' .
493
-                         '<tr>' .
494
-                          '<td ' . TPL::getSnippet('sRowCrypt') . '>crypts</td>' .
495
-                          '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
491
+                            '</td>' .
492
+                            '</tr>' .
493
+                            '<tr>' .
494
+                            '<td ' . TPL::getSnippet('sRowCrypt') . '>crypts</td>' .
495
+                            '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
496 496
                             $backup->cryptCount() .
497
-                          '</td>' .
498
-                          '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
497
+                            '</td>' .
498
+                            '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
499 499
                             $backup->cryptCountSkipped() .
500
-                          '</td>' .
501
-                          '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
500
+                            '</td>' .
501
+                            '<td ' . TPL::getSnippet('sRowCrypt') . ' align="right">' .
502 502
                             $backup->cryptCountFailed() .
503
-                          '</td>' .
504
-                         '</tr>' .
505
-                         '<tr>' .
506
-                          '<td ' . TPL::getSnippet('sRowSync') . '>syncs</td>' .
507
-                          '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
503
+                            '</td>' .
504
+                            '</tr>' .
505
+                            '<tr>' .
506
+                            '<td ' . TPL::getSnippet('sRowSync') . '>syncs</td>' .
507
+                            '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
508 508
                             $backup->syncCount() . '</td>' .
509
-                          '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
509
+                            '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
510 510
                             $backup->syncCountSkipped() .
511
-                          '</td>' .
512
-                          '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
511
+                            '</td>' .
512
+                            '<td ' . TPL::getSnippet('sRowSync') . ' align="right">' .
513 513
                             $backup->syncCountFailed() .
514
-                          '</td>' .
515
-                         '</tr>' .
516
-                         '<tr>' .
517
-                          '<td ' . TPL::getSnippet('sRowCleanup') . '>cleanups</td>' .
518
-                          '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
514
+                            '</td>' .
515
+                            '</tr>' .
516
+                            '<tr>' .
517
+                            '<td ' . TPL::getSnippet('sRowCleanup') . '>cleanups</td>' .
518
+                            '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
519 519
                             $backup->cleanupCount() .
520
-                          '</td>' .
521
-                          '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
520
+                            '</td>' .
521
+                            '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
522 522
                             $backup->cleanupCountSkipped() .
523
-                          '</td>' .
524
-                          '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
523
+                            '</td>' .
524
+                            '<td ' . TPL::getSnippet('sRowCleanup') . ' align="right">' .
525 525
                             $backup->cleanupCountFailed() .
526
-                          '</td>' .
527
-                         '</tr>';
526
+                            '</td>' .
527
+                            '</tr>';
528 528
 
529 529
             }
530 530
             $html .= '</table>';
@@ -541,6 +541,6 @@  discard block
 block discarded – undo
541 541
     protected function getFooterHtml()
542 542
     {
543 543
         return '<p ' . TPL::getSnippet('sStats') . '>' . Statistics::resourceUsage() . '</p>' .
544
-               '</td></tr></table>';
544
+                '</td></tr></table>';
545 545
     }
546 546
 }
Please login to merge, or discard this patch.