From 2f5659e52fe8b23a519e54363aae660df51431bf Mon Sep 17 00:00:00 2001 From: Jitendra Date: Mon, 26 Jun 2023 09:52:31 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Application.php | 5 ++--- src/Output/ProgressBar.php | 4 ++-- tests/ApplicationTest.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) 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');