@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $ret = self::EXIT_EXCEPTION; |
| 98 | 98 | } |
| 99 | 99 | } catch (\Exception $e) { |
| 100 | - echo $e->getMessage() . PHP_EOL; |
|
| 100 | + echo $e->getMessage().PHP_EOL; |
|
| 101 | 101 | $ret = self::EXIT_EXCEPTION; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | { |
| 238 | 238 | $value = Arr::getValue($this->arguments, $arg); |
| 239 | 239 | if (!empty($value)) { |
| 240 | - $setter = 'set' . ucfirst($arg); |
|
| 240 | + $setter = 'set'.ucfirst($arg); |
|
| 241 | 241 | $configuration->{$setter}($value); |
| 242 | 242 | } |
| 243 | 243 | } |
@@ -251,13 +251,13 @@ discard block |
||
| 251 | 251 | |
| 252 | 252 | // check if upgrade is necessary |
| 253 | 253 | if (!$this->isPharOutdated($this->getLatestVersion())) { |
| 254 | - echo 'You already have the latest version of phpbu installed.' . PHP_EOL; |
|
| 254 | + echo 'You already have the latest version of phpbu installed.'.PHP_EOL; |
|
| 255 | 255 | exit(self::EXIT_SUCCESS); |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | $remoteFilename = 'http://phar.phpbu.de/phpbu.phar'; |
| 259 | 259 | $localFilename = realpath($_SERVER['argv'][0]); |
| 260 | - $tempFilename = basename($localFilename, '.phar') . '-temp.phar'; |
|
| 260 | + $tempFilename = basename($localFilename, '.phar').'-temp.phar'; |
|
| 261 | 261 | |
| 262 | 262 | echo 'Updating the phpbu PHAR ... '; |
| 263 | 263 | |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $phar = file_get_contents($remoteFilename); |
| 266 | 266 | error_reporting($old); |
| 267 | 267 | if (!$phar) { |
| 268 | - echo ' failed' . PHP_EOL . 'Could not reach phpbu update site' . PHP_EOL; |
|
| 268 | + echo ' failed'.PHP_EOL.'Could not reach phpbu update site'.PHP_EOL; |
|
| 269 | 269 | exit(self::EXIT_EXCEPTION); |
| 270 | 270 | } |
| 271 | 271 | file_put_contents($tempFilename, $phar); |
@@ -281,11 +281,11 @@ discard block |
||
| 281 | 281 | } catch (Exception $e) { |
| 282 | 282 | // cleanup crappy phar |
| 283 | 283 | unlink($tempFilename); |
| 284 | - echo 'failed' . PHP_EOL . $e->getMessage() . PHP_EOL; |
|
| 284 | + echo 'failed'.PHP_EOL.$e->getMessage().PHP_EOL; |
|
| 285 | 285 | exit(self::EXIT_EXCEPTION); |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | - echo 'done' . PHP_EOL; |
|
| 288 | + echo 'done'.PHP_EOL; |
|
| 289 | 289 | exit(self::EXIT_SUCCESS); |
| 290 | 290 | } |
| 291 | 291 | |
@@ -298,10 +298,10 @@ discard block |
||
| 298 | 298 | |
| 299 | 299 | $latestVersion = $this->getLatestVersion(); |
| 300 | 300 | if ($this->isPharOutdated($latestVersion)) { |
| 301 | - print 'You are not using the latest version of phpbu.' . PHP_EOL |
|
| 302 | - . 'Use "phpunit --self-upgrade" to install phpbu ' . $latestVersion . PHP_EOL; |
|
| 301 | + print 'You are not using the latest version of phpbu.'.PHP_EOL |
|
| 302 | + . 'Use "phpunit --self-upgrade" to install phpbu '.$latestVersion.PHP_EOL; |
|
| 303 | 303 | } else { |
| 304 | - print 'You are using the latest version of phpbu.' . PHP_EOL; |
|
| 304 | + print 'You are using the latest version of phpbu.'.PHP_EOL; |
|
| 305 | 305 | } |
| 306 | 306 | exit(self::EXIT_SUCCESS); |
| 307 | 307 | } |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | $version = file_get_contents('https://phar.phpbu.de/latest-version-of/phpbu'); |
| 319 | 319 | error_reporting($old); |
| 320 | 320 | if (!$version) { |
| 321 | - echo 'Network-Error: Could not check latest version.' . PHP_EOL; |
|
| 321 | + echo 'Network-Error: Could not check latest version.'.PHP_EOL; |
|
| 322 | 322 | exit(self::EXIT_EXCEPTION); |
| 323 | 323 | } |
| 324 | 324 | return $version; |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | return; |
| 345 | 345 | } |
| 346 | 346 | |
| 347 | - echo Version::getVersionString() . PHP_EOL . PHP_EOL; |
|
| 347 | + echo Version::getVersionString().PHP_EOL.PHP_EOL; |
|
| 348 | 348 | $this->isVersionStringPrinted = true; |
| 349 | 349 | } |
| 350 | 350 | |
@@ -369,8 +369,8 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | EOT; |
| 371 | 371 | if ($this->isPhar) { |
| 372 | - echo ' --version-check Check whether phpbu is the latest version.' . PHP_EOL; |
|
| 373 | - echo ' --self-upgrade Upgrade phpbu to the latest version.' . PHP_EOL; |
|
| 372 | + echo ' --version-check Check whether phpbu is the latest version.'.PHP_EOL; |
|
| 373 | + echo ' --self-upgrade Upgrade phpbu to the latest version.'.PHP_EOL; |
|
| 374 | 374 | } |
| 375 | 375 | } |
| 376 | 376 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | { |
| 385 | 385 | $help = $hint ? ', use "phpbu -h" for help' : ''; |
| 386 | 386 | $this->printVersionString(); |
| 387 | - echo $message . $help . PHP_EOL; |
|
| 387 | + echo $message.$help.PHP_EOL; |
|
| 388 | 388 | exit(self::EXIT_EXCEPTION); |
| 389 | 389 | } |
| 390 | 390 | |
@@ -64,11 +64,11 @@ |
||
| 64 | 64 | protected function findConfigurationInDir(string $path) : string |
| 65 | 65 | { |
| 66 | 66 | foreach ($this->defaultConfigNames as $file) { |
| 67 | - $configurationFile = $path . DIRECTORY_SEPARATOR . $file; |
|
| 67 | + $configurationFile = $path.DIRECTORY_SEPARATOR.$file; |
|
| 68 | 68 | if (file_exists($configurationFile)) { |
| 69 | 69 | return realpath($configurationFile); |
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | - throw new Exception('Can\'t find configuration in directory \'' . $path . '\'.'); |
|
| 72 | + throw new Exception('Can\'t find configuration in directory \''.$path.'\'.'); |
|
| 73 | 73 | } |
| 74 | 74 | } |