@@ -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; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | $this->result->cryptSkipped($crypt); |
| 255 | 255 | } else { |
| 256 | 256 | /* @var \phpbu\App\Runner\Crypter $runner */ |
| 257 | - $runner = $this->factory->createRunner('crypter', $this->configuration->isSimulation()); |
|
| 257 | + $runner = $this->factory->createRunner('crypter', $this->configuration->isSimulation()); |
|
| 258 | 258 | $runner->run($this->factory->createCrypter($crypt->type, $crypt->options), $target, $this->result); |
| 259 | 259 | } |
| 260 | 260 | } catch (Backup\Crypter\Exception $e) { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | { |
| 277 | 277 | /* @var \phpbu\App\Runner\Crypter $runner */ |
| 278 | 278 | /* @var \phpbu\App\Configuration\Backup\Sync $sync */ |
| 279 | - $runner = $this->factory->createRunner('sync', $this->configuration->isSimulation()); |
|
| 279 | + $runner = $this->factory->createRunner('sync', $this->configuration->isSimulation()); |
|
| 280 | 280 | foreach ($backup->getSyncs() as $sync) { |
| 281 | 281 | try { |
| 282 | 282 | $this->result->syncStart($sync); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | { |
| 95 | 95 | // set uncompressed default MIME type |
| 96 | 96 | $target->setMimeType('application/x-tar'); |
| 97 | - $tar = $this->execute($target); |
|
| 97 | + $tar = $this->execute($target); |
|
| 98 | 98 | |
| 99 | 99 | $result->debug($tar->getCmd()); |
| 100 | 100 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $s3->registerStreamWrapper(); |
| 48 | 48 | $stream = fopen($targetPath, 'w'); |
| 49 | 49 | $source = fopen($sourcePath, 'r'); |
| 50 | - while(!feof($source)) { |
|
| 50 | + while (!feof($source)) { |
|
| 51 | 51 | fwrite($stream, fread($source, 4096)); |
| 52 | 52 | } |
| 53 | 53 | fclose($stream); |