Skip to content

Commit 97ab967

Browse files
[10.x] Pluralisation typo in queue:clear command output (#47376)
* Fixed typo in queue:clear command output * Update ClearCommand.php * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 4ffac6f commit 97ab967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Queue/Console/ClearCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Console\ConfirmableTrait;
77
use Illuminate\Contracts\Queue\ClearableQueue;
8+
use Illuminate\Support\Str;
89
use ReflectionClass;
910
use Symfony\Component\Console\Attribute\AsCommand;
1011
use Symfony\Component\Console\Input\InputArgument;
@@ -53,7 +54,7 @@ public function handle()
5354
if ($queue instanceof ClearableQueue) {
5455
$count = $queue->clear($queueName);
5556

56-
$this->components->info('Cleared '.$count.' jobs from the ['.$queueName.'] queue');
57+
$this->components->info('Cleared '.$count.' '.Str::plural('job', $count).' from the ['.$queueName.'] queue');
5758
} else {
5859
$this->components->error('Clearing queues is not supported on ['.(new ReflectionClass($queue))->getShortName().']');
5960
}

0 commit comments

Comments
 (0)