Completed
Push — master ( e61230...7500e8 )
by Sebastian
04:38
created
src/Backup/Collector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
             if ($file->getPathname() == $this->target->getPathname()) {
108 108
                 continue;
109 109
             }
110
-            if (preg_match('#' . $this->fileRegex . '#i', $file->getFilename())) {
111
-                $index               = date('YmdHis', $file->getMTime()) . '-' . $i . '-' . $file->getPathname();
110
+            if (preg_match('#'.$this->fileRegex.'#i', $file->getFilename())) {
111
+                $index               = date('YmdHis', $file->getMTime()).'-'.$i.'-'.$file->getPathname();
112 112
                 $this->files[$index] = new File($file->getFileInfo());
113 113
             }
114 114
         }
@@ -137,6 +137,6 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $dirTarget = Arr::getValue($this->target->getChangingPathElements(), $depth);
139 139
         $dirRegex  = Str::datePlaceholdersToRegex($dirTarget);
140
-        return preg_match('#' . $dirRegex . '#i', $dir);
140
+        return preg_match('#'.$dirRegex.'#i', $dir);
141 141
     }
142 142
 }
Please login to merge, or discard this patch.
src/Backup/Sync/AmazonS3.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         // check for mandatory options
102 102
         foreach (['key', 'secret', 'bucket', 'region', 'path'] as $option) {
103 103
             if (!Arr::isSetAndNotEmptyString($config, $option)) {
104
-                throw new Exception('AWS S3 ' . $option . ' is mandatory');
104
+                throw new Exception('AWS S3 '.$option.' is mandatory');
105 105
             }
106 106
         }
107 107
 
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
     public function simulate(Target $target, Result $result)
134 134
     {
135 135
         $result->debug(
136
-            'sync backup to Amazon S3' . PHP_EOL
137
-            . '  region:   ' . $this->region . PHP_EOL
138
-            . '  key:      ' . $this->key . PHP_EOL
139
-            . '  secret:    ********' . PHP_EOL
140
-            . '  location: ' . $this->bucket
136
+            'sync backup to Amazon S3'.PHP_EOL
137
+            . '  region:   '.$this->region.PHP_EOL
138
+            . '  key:      '.$this->key.PHP_EOL
139
+            . '  secret:    ********'.PHP_EOL
140
+            . '  location: '.$this->bucket
141 141
         );
142 142
     }
143 143
 
Please login to merge, or discard this patch.
src/Cli/Executable/Mysqldump.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@
 block discarded – undo
477 477
         // disable output redirection if files per table is active
478 478
         if (!$this->filePerTable) {
479 479
             $process->redirectOutputTo(
480
-                $this->dumpPathname . (!empty($this->compression) ? '.' . $this->compression->getSuffix() : '')
480
+                $this->dumpPathname.(!empty($this->compression) ? '.'.$this->compression->getSuffix() : '')
481 481
             );
482 482
         }
483 483
     }
Please login to merge, or discard this patch.
src/Backup/Target/Compression/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@
 block discarded – undo
55 55
     public static function getClassName($name)
56 56
     {
57 57
         if (!isset(self::$availableCompressors[$name])) {
58
-            throw new Exception('Invalid compressor: ' .$name);
58
+            throw new Exception('Invalid compressor: '.$name);
59 59
         }
60 60
         $class = self::$availableCompressors[$name];
61
-        return '\\phpbu\\App\\Backup\\Target\\Compression\\' . $class;
61
+        return '\\phpbu\\App\\Backup\\Target\\Compression\\'.$class;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
     {
287 287
         if (!isset(self::$classMap[$type])) {
288 288
             throw new Exception(
289
-                'invalid type, please use only \'' . implode('\', \'', array_keys(self::$classMap)) . '\''
289
+                'invalid type, please use only \''.implode('\', \'', array_keys(self::$classMap)).'\''
290 290
             );
291 291
         }
292 292
     }
Please login to merge, or discard this patch.
src/Configuration/Loader/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     protected function getAdapter($name)
78 78
     {
79 79
         if (!isset($this->adapters[$name])) {
80
-            throw new Exception('no adapter registered with name: ' . $name);
80
+            throw new Exception('no adapter registered with name: '.$name);
81 81
         }
82 82
         return $this->adapters[$name];
83 83
     }
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             }
92 92
             // make sure the backup should be executed and is not excluded via the --limit option
93 93
             if (!$configuration->isBackupActive($backup->getName())) {
94
-                $this->result->debug('skipping backup: ' . $backup->getName() . PHP_EOL);
94
+                $this->result->debug('skipping backup: '.$backup->getName().PHP_EOL);
95 95
                 continue;
96 96
             }
97 97
             // setup target and collector, reset failure state
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $this->executeCleanup($backup, $target, $collector);
137 137
 
138 138
             } catch (\Exception $e) {
139
-                $this->result->debug('exception: ' . $e->getMessage());
139
+                $this->result->debug('exception: '.$e->getMessage());
140 140
                 $this->result->addError($e);
141 141
                 $this->result->backupFailed($backup);
142 142
                 if ($backup->stopOnFailure()) {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                     $this->result->cryptSkipped($crypt);
265 265
                 } else {
266 266
                     /* @var \phpbu\App\Runner\Crypter $runner */
267
-                    $runner  = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
267
+                    $runner = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
268 268
                     $runner->run($this->factory->createCrypter($crypt->type, $crypt->options), $target, $this->result);
269 269
                 }
270 270
             } catch (Backup\Crypter\Exception $e) {
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     {
287 287
         /* @var \phpbu\App\Runner\Crypter $runner */
288 288
         /* @var \phpbu\App\Configuration\Backup\Sync $sync */
289
-        $runner  = $this->factory->createRunner('sync', $this->configuration->isSimulation());
289
+        $runner = $this->factory->createRunner('sync', $this->configuration->isSimulation());
290 290
         foreach ($backup->getSyncs() as $sync) {
291 291
             try {
292 292
                 $this->result->syncStart($sync);
Please login to merge, or discard this patch.
src/Log/MailTemplate.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -48,39 +48,39 @@
 block discarded – undo
48 48
     {
49 49
         self::setSnippets([
50 50
             'sBody'                    => 'style="font-family: Arial, Helvetica, sans-serif; ' .
51
-                                                 'background-color:#343b43; ' .
52
-                                                 'font-size: 15px; margin:0; ' .
53
-                                                 'padding:0;"',
51
+                                                    'background-color:#343b43; ' .
52
+                                                    'font-size: 15px; margin:0; ' .
53
+                                                    'padding:0;"',
54 54
             'sTableHeader'             => 'style="width:100%; ' .
55
-                                                 'font-family: Arial, Helvetica, sans-serif; ' .
56
-                                                 'margin:0; color:#e6e6e6;" ' .
57
-                                          'align="center" cellpadding="5" cellspacing="0"',
55
+                                                    'font-family: Arial, Helvetica, sans-serif; ' .
56
+                                                    'margin:0; color:#e6e6e6;" ' .
57
+                                            'align="center" cellpadding="5" cellspacing="0"',
58 58
             'sTableError'              => 'style="width:100%; ' .
59
-                                                 'background-color:#e6e6e6; ' .
60
-                                                 'margin:0 auto 15px; ' .
61
-                                                 'border:1px solid #011516;" ' .
62
-                                          'align="center" cellpadding="5" cellspacing="0"',
59
+                                                    'background-color:#e6e6e6; ' .
60
+                                                    'margin:0 auto 15px; ' .
61
+                                                    'border:1px solid #011516;" ' .
62
+                                            'align="center" cellpadding="5" cellspacing="0"',
63 63
             'sTableErrorCol'           => 'style="border-top: 1px solid #f6f6f6; ' .
64
-                                                 'border-bottom: 1px solid #c9c9c9;"',
64
+                                                    'border-bottom: 1px solid #c9c9c9;"',
65 65
             'sTableContent'            => 'style="width:380px; ' .
66
-                                                 'font-family: Arial, Helvetica, sans-serif; ' .
67
-                                                 'margin:0 auto;" ' .
68
-                                          'align="center" cellpadding="0" cellspacing="0"',
66
+                                                    'font-family: Arial, Helvetica, sans-serif; ' .
67
+                                                    'margin:0 auto;" ' .
68
+                                            'align="center" cellpadding="0" cellspacing="0"',
69 69
             'sTableContentCol'         => 'style="padding:0 10px;"',
70 70
             'sTableStatus'             => 'style="background-color:#%s; ' .
71
-                                                 'width:100%%; ' .
72
-                                                 'margin:0 auto 15px; ' .
73
-                                                 'border:1px solid #011516;" ' .
74
-                                          'align="center" cellpadding="10" cellspacing="0"',
71
+                                                    'width:100%%; ' .
72
+                                                    'margin:0 auto 15px; ' .
73
+                                                    'border:1px solid #011516;" ' .
74
+                                            'align="center" cellpadding="10" cellspacing="0"',
75 75
             'sTableStatusHead'         => 'style="margin:0;"',
76 76
             'sTableStatusText'         => 'style="font-size:16px;"',
77 77
             'sTableBackup'             => 'style="width:100%; font-family: Arial, Helvetica, sans-serif; ' .
78
-                                                 'background-color:#e6e6e6; ' .
79
-                                                 'margin:0 0 15px; ' .
80
-                                                 'border:1px solid #011516;" ' .
81
-                                          'align="center" cellpadding="5" cellspacing="0" width="100%"',
78
+                                                    'background-color:#e6e6e6; ' .
79
+                                                    'margin:0 0 15px; ' .
80
+                                                    'border:1px solid #011516;" ' .
81
+                                            'align="center" cellpadding="5" cellspacing="0" width="100%"',
82 82
             'sTableBackupStatusColumn' => 'style="background-color:#%s; ' .
83
-                                                 'border-bottom:1px solid #747474;"',
83
+                                                    'border-bottom:1px solid #747474;"',
84 84
             'sTableBackupStatusText'   => 'style="float:right;"',
85 85
             'sRowHead'                 => 'style="border-top: 1px solid #f6f6f6; border-bottom: 1px solid #c9c9c9;"',
86 86
             'sRowCheck'                => 'style="border-top: 1px solid #f6f6f6; border-bottom: 1px solid #c9c9c9;"',
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -47,39 +47,39 @@
 block discarded – undo
47 47
     public static function setDefaultSnippets()
48 48
     {
49 49
         self::setSnippets([
50
-            'sBody'                    => 'style="font-family: Arial, Helvetica, sans-serif; ' .
51
-                                                 'background-color:#343b43; ' .
52
-                                                 'font-size: 15px; margin:0; ' .
50
+            'sBody'                    => 'style="font-family: Arial, Helvetica, sans-serif; '.
51
+                                                 'background-color:#343b43; '.
52
+                                                 'font-size: 15px; margin:0; '.
53 53
                                                  'padding:0;"',
54
-            'sTableHeader'             => 'style="width:100%; ' .
55
-                                                 'font-family: Arial, Helvetica, sans-serif; ' .
56
-                                                 'margin:0; color:#e6e6e6;" ' .
54
+            'sTableHeader'             => 'style="width:100%; '.
55
+                                                 'font-family: Arial, Helvetica, sans-serif; '.
56
+                                                 'margin:0; color:#e6e6e6;" '.
57 57
                                           'align="center" cellpadding="5" cellspacing="0"',
58
-            'sTableError'              => 'style="width:100%; ' .
59
-                                                 'background-color:#e6e6e6; ' .
60
-                                                 'margin:0 auto 15px; ' .
61
-                                                 'border:1px solid #011516;" ' .
58
+            'sTableError'              => 'style="width:100%; '.
59
+                                                 'background-color:#e6e6e6; '.
60
+                                                 'margin:0 auto 15px; '.
61
+                                                 'border:1px solid #011516;" '.
62 62
                                           'align="center" cellpadding="5" cellspacing="0"',
63
-            'sTableErrorCol'           => 'style="border-top: 1px solid #f6f6f6; ' .
63
+            'sTableErrorCol'           => 'style="border-top: 1px solid #f6f6f6; '.
64 64
                                                  'border-bottom: 1px solid #c9c9c9;"',
65
-            'sTableContent'            => 'style="width:380px; ' .
66
-                                                 'font-family: Arial, Helvetica, sans-serif; ' .
67
-                                                 'margin:0 auto;" ' .
65
+            'sTableContent'            => 'style="width:380px; '.
66
+                                                 'font-family: Arial, Helvetica, sans-serif; '.
67
+                                                 'margin:0 auto;" '.
68 68
                                           'align="center" cellpadding="0" cellspacing="0"',
69 69
             'sTableContentCol'         => 'style="padding:0 10px;"',
70
-            'sTableStatus'             => 'style="background-color:#%s; ' .
71
-                                                 'width:100%%; ' .
72
-                                                 'margin:0 auto 15px; ' .
73
-                                                 'border:1px solid #011516;" ' .
70
+            'sTableStatus'             => 'style="background-color:#%s; '.
71
+                                                 'width:100%%; '.
72
+                                                 'margin:0 auto 15px; '.
73
+                                                 'border:1px solid #011516;" '.
74 74
                                           'align="center" cellpadding="10" cellspacing="0"',
75 75
             'sTableStatusHead'         => 'style="margin:0;"',
76 76
             'sTableStatusText'         => 'style="font-size:16px;"',
77
-            'sTableBackup'             => 'style="width:100%; font-family: Arial, Helvetica, sans-serif; ' .
78
-                                                 'background-color:#e6e6e6; ' .
79
-                                                 'margin:0 0 15px; ' .
80
-                                                 'border:1px solid #011516;" ' .
77
+            'sTableBackup'             => 'style="width:100%; font-family: Arial, Helvetica, sans-serif; '.
78
+                                                 'background-color:#e6e6e6; '.
79
+                                                 'margin:0 0 15px; '.
80
+                                                 'border:1px solid #011516;" '.
81 81
                                           'align="center" cellpadding="5" cellspacing="0" width="100%"',
82
-            'sTableBackupStatusColumn' => 'style="background-color:#%s; ' .
82
+            'sTableBackupStatusColumn' => 'style="background-color:#%s; '.
83 83
                                                  'border-bottom:1px solid #747474;"',
84 84
             'sTableBackupStatusText'   => 'style="float:right;"',
85 85
             'sRowHead'                 => 'style="border-top: 1px solid #f6f6f6; border-bottom: 1px solid #c9c9c9;"',
Please login to merge, or discard this patch.
src/Backup/Sync/Ftp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     public function sync(Target $target, Result $result)
53 53
     {
54 54
         // silence ftp errors
55
-        $old  = error_reporting(0);
55
+        $old = error_reporting(0);
56 56
         if (!$ftpConnection = ftp_connect($this->host)) {
57 57
             throw new Exception(
58 58
                 sprintf(
Please login to merge, or discard this patch.