Skip to content

Commit 8c41b17

Browse files
committed
fix phpcpd
1 parent 4f8ca10 commit 8c41b17

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Handlers/PredisHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ public function push(string $queue, string $job, array $data, ?PayloadMetadata $
6565

6666
helper('text');
6767

68+
$jobId = random_string('numeric', 16);
6869
$availableAt = Time::now()->addSeconds($this->delay ?? 0);
6970

70-
$jobId = random_string('numeric', 16);
71-
7271
$queueJob = new QueueJob([
7372
'id' => $jobId,
7473
'queue' => $queue,

src/Handlers/RedisHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public function push(string $queue, string $job, array $data, ?PayloadMetadata $
8383
helper('text');
8484

8585
$availableAt = Time::now()->addSeconds($this->delay ?? 0);
86-
87-
$jobId = random_string('numeric', 16);
86+
$jobId = random_string('numeric', 16);
8887

8988
$queueJob = new QueueJob([
9089
'id' => $jobId,

0 commit comments

Comments
 (0)