@@ -91,7 +91,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $ret = self::EXIT_EXCEPTION; |
110 | 110 | } |
111 | 111 | } catch (\Exception $e) { |
112 | - echo $e->getMessage() . PHP_EOL; |
|
112 | + echo $e->getMessage().PHP_EOL; |
|
113 | 113 | $ret = self::EXIT_EXCEPTION; |
114 | 114 | } |
115 | 115 | |
@@ -215,12 +215,12 @@ discard block |
||
215 | 215 | */ |
216 | 216 | protected function findConfigurationInDir() |
217 | 217 | { |
218 | - $configurationFile = $this->arguments['configuration'] . '/phpbu.xml'; |
|
218 | + $configurationFile = $this->arguments['configuration'].'/phpbu.xml'; |
|
219 | 219 | |
220 | 220 | if (file_exists($configurationFile)) { |
221 | 221 | $this->arguments['configuration'] = realpath($configurationFile); |
222 | - } elseif (file_exists($configurationFile . '.dist')) { |
|
223 | - $this->arguments['configuration'] = realpath($configurationFile . '.dist'); |
|
222 | + } elseif (file_exists($configurationFile.'.dist')) { |
|
223 | + $this->arguments['configuration'] = realpath($configurationFile.'.dist'); |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | { |
284 | 284 | $value = Arr::getValue($this->arguments, $arg); |
285 | 285 | if (!empty($value)) { |
286 | - $setter = 'set' . ucfirst($arg); |
|
286 | + $setter = 'set'.ucfirst($arg); |
|
287 | 287 | $configuration->{$setter}($value); |
288 | 288 | } |
289 | 289 | } |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | $remoteFilename = 'http://phar.phpbu.de/phpbu.phar'; |
299 | 299 | $localFilename = realpath($_SERVER['argv'][0]); |
300 | - $tempFilename = basename($localFilename, '.phar') . '-temp.phar'; |
|
300 | + $tempFilename = basename($localFilename, '.phar').'-temp.phar'; |
|
301 | 301 | |
302 | 302 | echo 'Updating the phpbu PHAR ... '; |
303 | 303 | |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $phar = file_get_contents($remoteFilename); |
306 | 306 | error_reporting($old); |
307 | 307 | if (!$phar) { |
308 | - echo ' failed' . PHP_EOL . 'Could not reach phpbu update site' . PHP_EOL; |
|
308 | + echo ' failed'.PHP_EOL.'Could not reach phpbu update site'.PHP_EOL; |
|
309 | 309 | exit(self::EXIT_EXCEPTION); |
310 | 310 | } |
311 | 311 | file_put_contents($tempFilename, $phar); |
@@ -321,11 +321,11 @@ discard block |
||
321 | 321 | } catch (Exception $e) { |
322 | 322 | // cleanup crappy phar |
323 | 323 | unlink($tempFilename); |
324 | - echo 'failed' . PHP_EOL . $e->getMessage() . PHP_EOL; |
|
324 | + echo 'failed'.PHP_EOL.$e->getMessage().PHP_EOL; |
|
325 | 325 | exit(self::EXIT_EXCEPTION); |
326 | 326 | } |
327 | 327 | |
328 | - echo 'done' . PHP_EOL; |
|
328 | + echo 'done'.PHP_EOL; |
|
329 | 329 | exit(self::EXIT_SUCCESS); |
330 | 330 | } |
331 | 331 | |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | return; |
339 | 339 | } |
340 | 340 | |
341 | - echo Version::getVersionString() . PHP_EOL; |
|
341 | + echo Version::getVersionString().PHP_EOL; |
|
342 | 342 | $this->isVersionStringPrinted = true; |
343 | 343 | } |
344 | 344 | |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | */ |
348 | 348 | protected function printLogo() |
349 | 349 | { |
350 | - echo self::$logo . PHP_EOL; |
|
350 | + echo self::$logo.PHP_EOL; |
|
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | |
372 | 372 | EOT; |
373 | 373 | if ($this->isPhar) { |
374 | - echo ' --self-update Update phpbu to the latest version.' . PHP_EOL; |
|
374 | + echo ' --self-update Update phpbu to the latest version.'.PHP_EOL; |
|
375 | 375 | } |
376 | 376 | } |
377 | 377 | |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | { |
386 | 386 | $help = $hint ? ', use "phpbu -h" for help' : ''; |
387 | 387 | $this->printVersionString(); |
388 | - echo $message . $help . PHP_EOL; |
|
388 | + echo $message.$help.PHP_EOL; |
|
389 | 389 | exit(self::EXIT_EXCEPTION); |
390 | 390 | } |
391 | 391 |