Skip to content

Commit 0dad6f2

Browse files
mychidarkogithub-actions[bot]
authored andcommitted
chore: fix styling
1 parent d99816f commit 0dad6f2

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/Batch.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function release($delay = 0)
128128
public function with($data)
129129
{
130130
$this->data = $data;
131+
131132
return $this;
132133
}
133134

src/Job.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function release($delay = 0)
142142
public function with($data)
143143
{
144144
$this->data = $data;
145+
145146
return $this;
146147
}
147148

src/Queue/Adapters/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function pushJobToQueue($job)
6161

6262
if ($this->db->errors()) {
6363
$this->errors = $this->db->errors();
64+
6465
return false;
6566
}
6667

src/Worker.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Worker
2020
public function queue($queue)
2121
{
2222
$this->queue = (new Queue())->connect($queue);
23+
2324
return $this;
2425
}
2526

@@ -47,7 +48,7 @@ public function run()
4748
$jobConfig = json_decode($jobData['config'] ?? "{}", true);
4849

4950
/** @var \Leaf\Job */
50-
$job = (new $jobData['class'])->fromQueue($jobData, $jobConfig, $this->queue);
51+
$job = (new $jobData['class']())->fromQueue($jobData, $jobConfig, $this->queue);
5152

5253
$job->handleDelay();
5354

0 commit comments

Comments
 (0)