From c75549ca8a8942c32169e1d4462014fb0988e949 Mon Sep 17 00:00:00 2001 From: Paras Malhotra Date: Tue, 22 Sep 2020 14:12:45 +0530 Subject: [PATCH] fix styleci --- src/Console/ClearCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index aa89093e..005f32d5 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -39,16 +39,16 @@ public function handle(RedisJobRepository $jobRepository, QueueManager $manager) return 1; } - if (!method_exists(RedisQueue::class, 'clear')) { + if (! method_exists(RedisQueue::class, 'clear')) { $this->line('Clearing queues is not supported on this version of Laravel'); - + return 1; } $connection = Arr::first($this->laravel['config']->get('horizon.defaults'))['connection'] ?? 'redis'; $jobRepository->purge($queue = $this->getQueue($connection)); - + $count = $manager->connection($connection)->clear($queue); $this->line('Cleared '.$count.' jobs from the ['.$queue.'] queue ');