diff --git a/src/Application.php b/src/Application.php index 889dde6ce..47f7e748f 100644 --- a/src/Application.php +++ b/src/Application.php @@ -59,8 +59,9 @@ public function addInitRoboFileCommand($roboFile, $roboClass) $this->add($createRoboFile); } - protected function addSelfUpdateCommand() { - $selfUpdateCommand = new SelfUpdateCommand( 'self:update', Robo::VERSION, 'consolidation/robo' ); - $this->add( $selfUpdateCommand ); + protected function addSelfUpdateCommand() + { + $selfUpdateCommand = new SelfUpdateCommand('self:update', Robo::VERSION, 'consolidation/robo'); + $this->add($selfUpdateCommand); } } diff --git a/src/SelfUpdateCommand.php b/src/SelfUpdateCommand.php index 8b641e9bb..845d25f48 100644 --- a/src/SelfUpdateCommand.php +++ b/src/SelfUpdateCommand.php @@ -29,8 +29,9 @@ class SelfUpdateCommand extends Command protected $currentVersion; - public function __construct( $name = null, $currentVersion = null, $gitHubRepository = null) { - parent::__construct( $name ); + public function __construct($name = null, $currentVersion = null, $gitHubRepository = null) + { + parent::__construct($name); $this->currentVersion = $currentVersion; $this->gitHubRepository = $gitHubRepository; } @@ -79,7 +80,8 @@ protected function getLatestReleaseFromGithub() return [ $version, $url ]; } - public function isEnabled() { + public function isEnabled() + { return !empty(\Phar::running()); }