Skip to content

Commit

Permalink
Merge pull request #91 from adhocore/analysis-PGl1Vo
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
adhocore authored Jun 26, 2023
2 parents 963fc8b + 2f5659e commit 25b5a93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ public function add(Command $command, string $alias = '', bool $default = false)
*
* @param string $commandName The name of the default command
*
* @return self The application
*
* @throws InvalidArgumentException If the specified command name does not exist
*
* @return self The application
*/
public function defaultCommand(string $commandName): self
{
Expand All @@ -204,7 +204,6 @@ public function getDefaultCommand(): ?string
return $this->default;
}


/**
* Groups commands set within the callable.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Output/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ protected function getProgressBarStr(int $current, string $label): string

if ($label) {
$label = $this->labelFormatted($label);
// If this line doesn't have a label, but we've had one before,
// then ensure the label line is cleared
// If this line doesn't have a label, but we've had one before,
// then ensure the label line is cleared
} elseif ($this->hasLabelLine) {
$label = $this->labelFormatted('');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ protected function newApp(string $name, string $version = '')

public function testDefaultCommand()
{
$app = $this->newApp("test");
$app = $this->newApp('test');

// Add some sample commands to the application
$app->command('command1');
Expand Down

0 comments on commit 25b5a93

Please sign in to comment.