Skip to content

Commit e874a56

Browse files
committed
tweak formatting
1 parent 1010175 commit e874a56

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/Illuminate/Queue/Console/RetryCommand.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class RetryCommand extends Command
3030
public function fire()
3131
{
3232
foreach ($this->getJobIds() as $id) {
33-
$job = $this->getJob($id);
33+
$job = $this->laravel['queue.failer']->find($id);
3434

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

@@ -60,16 +60,6 @@ protected function getJobIds()
6060
return $ids;
6161
}
6262

63-
/**
64-
* Get the job instance.
65-
* @param string $id
66-
* @return stdClass
67-
*/
68-
protected function getJob($id)
69-
{
70-
return $this->laravel['queue.failer']->find($id);
71-
}
72-
7363
/**
7464
* Retry the queue job.
7565
*

0 commit comments

Comments
 (0)