@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $saveResult = $redisSave->run(); |
| 107 | 107 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 108 | 108 | if (!$saveResult->wasSuccessful()) { |
| 109 | - throw new Exception('redis-cli BGSAVE failed:' . $saveResult->getStdErr()); |
|
| 109 | + throw new Exception('redis-cli BGSAVE failed:'.$saveResult->getStdErr()); |
|
| 110 | 110 | } |
| 111 | 111 | // check if the save process is finished |
| 112 | 112 | $this->isDumpCreatedYet($lastBackupTimestamp, $redisLast); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | private function copyDumpToTarget(Target $target) |
| 196 | 196 | { |
| 197 | 197 | if (!file_exists($this->pathToRedisData)) { |
| 198 | - throw new Exception('Redis data not found at: \'' . $this->pathToRedisCli . '\''); |
|
| 198 | + throw new Exception('Redis data not found at: \''.$this->pathToRedisCli.'\''); |
|
| 199 | 199 | } |
| 200 | 200 | $targetFile = $target->getPathnamePlain(); |
| 201 | 201 | copy($this->pathToRedisData, $targetFile); |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 204 | 204 | |
| 205 | 205 | if (!$mysqldump->wasSuccessful()) { |
| 206 | - throw new Exception('mysqldump failed:' . $mysqldump->getStdErr()); |
|
| 206 | + throw new Exception('mysqldump failed:'.$mysqldump->getStdErr()); |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | return $this->createStatus($target); |
@@ -258,6 +258,6 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | private function getDumpTarget(Target $target) |
| 260 | 260 | { |
| 261 | - return $target->getPathnamePlain() . ($this->filePerTable ? '.dump' : ''); |
|
| 261 | + return $target->getPathnamePlain().($this->filePerTable ? '.dump' : ''); |
|
| 262 | 262 | } |
| 263 | 263 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | $result->debug($tar->getCmd()); |
| 102 | 102 | |
| 103 | 103 | if (!$tar->wasSuccessful()) { |
| 104 | - throw new Exception('tar failed: ' . $tar->getStdErr()); |
|
| 104 | + throw new Exception('tar failed: '.$tar->getStdErr()); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | return $this->createStatus($target); |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 112 | 112 | |
| 113 | 113 | if (!$elasticdump->wasSuccessful()) { |
| 114 | - throw new Exception('elasticdump failed: ' . $elasticdump->getStdErr()); |
|
| 114 | + throw new Exception('elasticdump failed: '.$elasticdump->getStdErr()); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | return $this->createStatus($target); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 142 | 142 | |
| 143 | 143 | if (!$arangodump->wasSuccessful()) { |
| 144 | - throw new Exception('arangodump failed: ' . $arangodump->getStdErr()); |
|
| 144 | + throw new Exception('arangodump failed: '.$arangodump->getStdErr()); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | return $this->createStatus($target); |
@@ -190,6 +190,6 @@ discard block |
||
| 190 | 190 | */ |
| 191 | 191 | public function getDumpDir(Target $target) |
| 192 | 192 | { |
| 193 | - return $target->getPath() . '/dump'; |
|
| 193 | + return $target->getPath().'/dump'; |
|
| 194 | 194 | } |
| 195 | 195 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 161 | 161 | |
| 162 | 162 | if (!$mongodump->wasSuccessful()) { |
| 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); |
@@ -208,6 +208,6 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function getDumpDir(Target $target) |
| 210 | 210 | { |
| 211 | - return $target->getPath() . '/dump'; |
|
| 211 | + return $target->getPath().'/dump'; |
|
| 212 | 212 | } |
| 213 | 213 | } |
@@ -246,7 +246,7 @@ |
||
| 246 | 246 | $result->debug($this->getExecutable($target)->getCommandLinePrintable()); |
| 247 | 247 | |
| 248 | 248 | if (!$pgDump->wasSuccessful()) { |
| 249 | - throw new Exception('mysqldump failed:' . $pgDump->getStdErr()); |
|
| 249 | + throw new Exception('mysqldump failed:'.$pgDump->getStdErr()); |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | return $this->createStatus($target); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function simulate(Target $target, Result $result) |
| 29 | 29 | { |
| 30 | - $result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandLinePrintable()); |
|
| 30 | + $result->debug('backup data:'.PHP_EOL.$this->getExecutable($target)->getCommandLinePrintable()); |
|
| 31 | 31 | |
| 32 | 32 | return $this->createStatus($target); |
| 33 | 33 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->executeCleanup($backup, $target, $collector); |
| 126 | 126 | |
| 127 | 127 | } catch (\Exception $e) { |
| 128 | - $this->result->debug('exception: ' . $e->getMessage()); |
|
| 128 | + $this->result->debug('exception: '.$e->getMessage()); |
|
| 129 | 129 | $this->result->addError($e); |
| 130 | 130 | $this->result->backupFailed($backup); |
| 131 | 131 | if ($backup->stopOnFailure()) { |
@@ -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); |