Skip to content

Commit 8bac29f

Browse files
committed
make rector happy
1 parent e640302 commit 8bac29f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Handlers/PredisHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function push(string $queue, string $job, array $data): bool
5858
*/
5959
public function pop(string $queue, array $priorities): ?QueueJob
6060
{
61-
$now = Time::now()->timestamp;
61+
$tasks = [];
62+
$now = Time::now()->timestamp;
6263

6364
foreach ($priorities as $priority) {
6465
if ($tasks = $this->predis->zrangebyscore("queues:{$queue}:{$priority}", '-inf', $now, ['LIMIT' => [0, 1]])) {

src/Handlers/RedisHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public function push(string $queue, string $job, array $data): bool
7777
*/
7878
public function pop(string $queue, array $priorities): ?QueueJob
7979
{
80-
$now = Time::now()->timestamp;
80+
$tasks = [];
81+
$now = Time::now()->timestamp;
8182

8283
foreach ($priorities as $priority) {
8384
if ($tasks = $this->redis->zRangeByScore("queues:{$queue}:{$priority}", '-inf', $now, ['limit' => [0, 1]])) {

0 commit comments

Comments
 (0)