Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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