diff --git a/src/Application.php b/src/Application.php index c2bb186..5fc89f7 100644 --- a/src/Application.php +++ b/src/Application.php @@ -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 { @@ -204,7 +204,6 @@ public function getDefaultCommand(): ?string return $this->default; } - /** * Groups commands set within the callable. * diff --git a/src/Output/ProgressBar.php b/src/Output/ProgressBar.php index ec96069..2830e1a 100644 --- a/src/Output/ProgressBar.php +++ b/src/Output/ProgressBar.php @@ -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(''); } diff --git a/tests/ApplicationTest.php b/tests/ApplicationTest.php index 0db09ff..e569497 100644 --- a/tests/ApplicationTest.php +++ b/tests/ApplicationTest.php @@ -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');