@@ -83,7 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | |
| 85 | 85 | // silence ftp errors |
| 86 | - $old = error_reporting(0); |
|
| 86 | + $old = error_reporting(0); |
|
| 87 | 87 | if (!$ftpConnection = ftp_connect($this->host)) { |
| 88 | 88 | throw new Exception( |
| 89 | 89 | sprintf( |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | { |
| 55 | 55 | return $this->cmd |
| 56 | 56 | . (count($this->options) ? ' ' . implode(' ', $this->options) : '') |
| 57 | - . ($this->isSilent ? ' 2> /dev/null' : ''); |
|
| 57 | + . ($this->isSilent ? ' 2> /dev/null' : ''); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -176,14 +176,14 @@ discard block |
||
| 176 | 176 | $errors = $this->getErrorHtml($result); |
| 177 | 177 | $info = $this->getInfoHtml($result); |
| 178 | 178 | $footer = $this->getFooterHtml(); |
| 179 | - $body = '<html><body '. TPL::getSnippet('sBody') . '>' |
|
| 179 | + $body = '<html><body ' . TPL::getSnippet('sBody') . '>' |
|
| 180 | 180 | . $header |
| 181 | 181 | . $status |
| 182 | 182 | . $errors |
| 183 | 183 | . $info |
| 184 | 184 | . $footer |
| 185 | 185 | . '</body></html>'; |
| 186 | - $sent = null; |
|
| 186 | + $sent = null; |
|
| 187 | 187 | |
| 188 | 188 | try { |
| 189 | 189 | /** @var \Swift_Message $message */ |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | $this->numCleanups, |
| 388 | 388 | Str::appendPluralS('cleanup', $this->numCleanups) |
| 389 | 389 | ); |
| 390 | - $html = '<table ' . sprintf(TPL::getSnippet('sTableStatus'), $color) .'>' . |
|
| 390 | + $html = '<table ' . sprintf(TPL::getSnippet('sTableStatus'), $color) . '>' . |
|
| 391 | 391 | '<tr><td>' . |
| 392 | 392 | '<span ' . TPL::getSnippet('sTableStatusText') . '>' . date('Y-m-d H:i') . '</span>' . |
| 393 | 393 | '<h1 ' . TPL::getSnippet('sTableStatusHead') . '>' . $status . '</h1>' . |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | if ($backup->allOk()) { |
| 446 | 446 | $color = TPL::getSnippet('cStatusOK'); |
| 447 | 447 | $status = 'OK'; |
| 448 | - } elseif($backup->okButSkipsOrFails()) { |
|
| 448 | + } elseif ($backup->okButSkipsOrFails()) { |
|
| 449 | 449 | $color = TPL::getSnippet('cStatusWARN'); |
| 450 | 450 | $status = 'WARNING'; |
| 451 | 451 | } else { |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | $html .= '<tr>' . |
| 456 | 456 | '<td ' . sprintf(TPL::getSnippet('sTableBackupStatusColumn'), $color) . ' colspan="4">' . |
| 457 | 457 | sprintf('backup <em>%s</em>', $backup->getName()) . |
| 458 | - ' <span ' . TPL::getSnippet('sTableBackupStatusText') . '>' . $status .'</span>'. |
|
| 458 | + ' <span ' . TPL::getSnippet('sTableBackupStatusText') . '>' . $status . '</span>' . |
|
| 459 | 459 | '</td>' . |
| 460 | 460 | '</tr>' . |
| 461 | 461 | '<tr>' . |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | 'mongodump' => [], |
| 33 | 33 | 'mysqldump' => [ |
| 34 | 34 | '/usr/local/mysql/bin/mysqldump', // Mac OS X |
| 35 | - '/usr/mysql/bin/mysqldump', // Linux |
|
| 35 | + '/usr/mysql/bin/mysqldump', // Linux |
|
| 36 | 36 | ], |
| 37 | 37 | 'tar' => [], |
| 38 | 38 | ]; |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function runCommand($command) |
| 80 | 80 | { |
| 81 | - if(!isset($this->availableCommands[$command])) { |
|
| 81 | + if (!isset($this->availableCommands[$command])) { |
|
| 82 | 82 | throw new Exception('Unknown redis-cli command'); |
| 83 | 83 | } |
| 84 | 84 | $this->command = $command; |