We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb67c2a commit 0f6f63bCopy full SHA for 0f6f63b
src/Jenssegers/Mongodb/Queue/MongoQueue.php
@@ -19,13 +19,11 @@ public function pop($queue = null)
19
{
20
$queue = $this->getQueue($queue);
21
22
- if (!is_null($this->expire))
23
- {
+ if (!is_null($this->expire)) {
24
$this->releaseJobsThatHaveBeenReservedTooLong($queue);
25
}
26
27
- if ($job = $this->getNextAvailableJobAndReserve($queue))
28
+ if ($job = $this->getNextAvailableJobAndReserve($queue)) {
29
return new DatabaseJob(
30
$this->container, $this, $job, $queue
31
);
@@ -68,8 +66,7 @@ protected function getNextAvailableJobAndReserve($queue)
68
66
]
69
67
70
71
- if ($job)
72
+ if ($job) {
73
$job->id = $job->_id;
74
75
0 commit comments