Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Aug 7, 2021
1 parent a5ada46 commit 11d693c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Command/ConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
$uniqueKey = GitUtil::getUniqueKey();

if (null === $uniqueKey) {
throw new \RuntimeException(sprintf('The working directory is not managed by GIT'));
throw new \RuntimeException('The working directory is not managed by GIT');
}

$configFile = sprintf('%s/%s.json', $this->config->get('data-dir'), $uniqueKey);
Expand Down Expand Up @@ -201,6 +201,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

break;

case 'lib':
case 'library':
case 'libraries':
Expand All @@ -215,6 +216,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

break;

case 'bin':
case 'binary':
case 'binaries':
Expand All @@ -229,6 +231,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

break;

default:
if (!\array_key_exists($settingKey, Config::$defaultConfig)) {
throw new RuntimeException(sprintf('The "%s" setting key does not exist', $settingKey));
Expand Down
2 changes: 1 addition & 1 deletion src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private function getStub(): string
$stub = <<<'EOF'
#!/usr/bin/env php
<?php
/*
* This file is part of the Klipper Releaser package.
*
Expand Down
1 change: 1 addition & 0 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function getReleaser(): Releaser
$this->releaser = Factory::create($this->io, $this->configFile, $this->initialWorkingDirectory);
} catch (\Throwable $e) {
$this->io->writeError($e->getMessage());

exit(1);
}
}
Expand Down

0 comments on commit 11d693c

Please sign in to comment.