Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 7, 2021
1 parent be679d3 commit f2d9b59
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Illuminate/Queue/Console/RetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RetryCommand extends Command
*/
protected $signature = 'queue:retry
{id?* : The ID of the failed job or "all" to retry all jobs}
{--queue= : Name of the queue to be retried}
{--queue= : Retry all of the failed jobs for the specified queue}
{--range=* : Range of job IDs (numeric) to be retried}';

/**
Expand Down Expand Up @@ -64,10 +64,13 @@ protected function getJobIds()
}

if ($queue = $this->option('queue')) {
$ids = collect($this->laravel['queue.failer']->all())->where('queue', $queue)->pluck('id')->toArray();
$ids = collect($this->laravel['queue.failer']->all())
->where('queue', $queue)
->pluck('id')
->toArray();

if (count($ids) === 0) {
$this->error("Unable to find failed jobs in a queue named [{$queue}].");
$this->error("Unable to find failed jobs for queue [{$queue}].");
}

return $ids;
Expand Down

0 comments on commit f2d9b59

Please sign in to comment.