Skip to content

Commit

Permalink
tweak formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 9, 2017
1 parent 1010175 commit e874a56
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Illuminate/Queue/Console/RetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class RetryCommand extends Command
public function fire()
{
foreach ($this->getJobIds() as $id) {
$job = $this->getJob($id);
$job = $this->laravel['queue.failer']->find($id);

if (is_null($job)) {
$this->error("No failed job matches the given ID [{$id}].");
$this->error("Unable to find failed job with ID [{$id}].");
} else {
$this->retryJob($job);

Expand All @@ -60,16 +60,6 @@ protected function getJobIds()
return $ids;
}

/**
* Get the job instance.
* @param string $id
* @return stdClass
*/
protected function getJob($id)
{
return $this->laravel['queue.failer']->find($id);
}

/**
* Retry the queue job.
*
Expand Down

0 comments on commit e874a56

Please sign in to comment.