From e874a56e5b75663861aab13ff8e13b82050de54e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 9 Mar 2017 08:51:57 -0600 Subject: [PATCH] tweak formatting --- src/Illuminate/Queue/Console/RetryCommand.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Illuminate/Queue/Console/RetryCommand.php b/src/Illuminate/Queue/Console/RetryCommand.php index 0090f3ff68ee..00ee78805cb0 100644 --- a/src/Illuminate/Queue/Console/RetryCommand.php +++ b/src/Illuminate/Queue/Console/RetryCommand.php @@ -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); @@ -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. *