@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | return $this->listen($callback, $query); |
374 | 374 | } |
375 | 375 | |
376 | - $this->events->next($cursor, function () use ($callback, $query) { |
|
376 | + $this->events->next($cursor, function() use ($callback, $query) { |
|
377 | 377 | return $this->listen($callback, $query); |
378 | 378 | }); |
379 | 379 | |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } |
382 | 382 | |
383 | 383 | $result = $cursor->current(); |
384 | - $this->events->next($cursor, function () use ($callback, $query) { |
|
384 | + $this->events->next($cursor, function() use ($callback, $query) { |
|
385 | 385 | $this->listen($callback, $query); |
386 | 386 | }); |
387 | 387 |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | return $this->wait(); |
120 | 120 | } |
121 | 121 | |
122 | - $this->events->next($cursor, function () { |
|
122 | + $this->events->next($cursor, function() { |
|
123 | 123 | $this->wait(); |
124 | 124 | }); |
125 | 125 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | $event = $cursor->current(); |
130 | - $this->events->next($cursor, function () { |
|
130 | + $this->events->next($cursor, function() { |
|
131 | 131 | $this->wait(); |
132 | 132 | }); |
133 | 133 |
@@ -288,7 +288,7 @@ |
||
288 | 288 | protected function collectJob(array $job, int $status, $from_status = JobInterface::STATUS_WAITING): bool |
289 | 289 | { |
290 | 290 | $set = [ |
291 | - 'status' => $status, |
|
291 | + 'status' => $status, |
|
292 | 292 | ]; |
293 | 293 | |
294 | 294 | if (JobInterface::STATUS_PROCESSING === $status) { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | break; |
201 | 201 | } |
202 | 202 | |
203 | - $this->jobs->next($cursor, function () { |
|
203 | + $this->jobs->next($cursor, function() { |
|
204 | 204 | $this->start(); |
205 | 205 | }); |
206 | 206 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 'category' => get_class($this), |
214 | 214 | ]); |
215 | 215 | |
216 | - $this->jobs->next($cursor, function () { |
|
216 | + $this->jobs->next($cursor, function() { |
|
217 | 217 | $this->start(); |
218 | 218 | }); |
219 | 219 |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | |
315 | 315 | while ($this->loop()) { |
316 | 316 | $event = $cursor_events->current(); |
317 | - $this->events->next($cursor_events, function () { |
|
317 | + $this->events->next($cursor_events, function() { |
|
318 | 318 | $this->main(); |
319 | 319 | }); |
320 | 320 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | break; |
350 | 350 | } |
351 | 351 | |
352 | - $this->jobs->next($cursor_jobs, function () { |
|
352 | + $this->jobs->next($cursor_jobs, function() { |
|
353 | 353 | $this->main(); |
354 | 354 | }); |
355 | 355 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | } |
358 | 358 | |
359 | 359 | $job = $cursor_jobs->current(); |
360 | - $this->jobs->next($cursor_jobs, function () { |
|
360 | + $this->jobs->next($cursor_jobs, function() { |
|
361 | 361 | $this->main(); |
362 | 362 | }); |
363 | 363 |