@@ -212,7 +212,7 @@ |
||
212 | 212 | * @param bool $prioritize |
213 | 213 | * @param int $runId |
214 | 214 | * |
215 | - * @return Job|null |
|
215 | + * @return boolean|null |
|
216 | 216 | */ |
217 | 217 | public function getJob($workerName = null, $methodName = null, $prioritize = true, $runId = null) |
218 | 218 | { |
@@ -6,6 +6,9 @@ |
||
6 | 6 | |
7 | 7 | trait StatusTrait |
8 | 8 | { |
9 | + /** |
|
10 | + * @param string $cacheKey |
|
11 | + */ |
|
9 | 12 | protected function collateStatusResults(array &$results, $cacheKey) |
10 | 13 | { |
11 | 14 | $cursor = null; |
@@ -431,7 +431,7 @@ |
||
431 | 431 | { |
432 | 432 | $cursor = null; |
433 | 433 | while ($jobs = $this->redis->zScan($cacheKey, $cursor, '', 100)) { |
434 | - $jobs = $this->redis->mget(array_map(function ($item) { |
|
434 | + $jobs = $this->redis->mget(array_map(function($item) { |
|
435 | 435 | return $this->getJobCacheKey($item); |
436 | 436 | }, array_keys($jobs))); |
437 | 437 | $this->extractStatusResults($jobs, $results); |
@@ -180,6 +180,9 @@ |
||
180 | 180 | ); |
181 | 181 | } |
182 | 182 | |
183 | + /** |
|
184 | + * @param \PhpAmqpLib\Channel\AMQPChannel $channel |
|
185 | + */ |
|
183 | 186 | protected static function drainQueue($channel) |
184 | 187 | { |
185 | 188 | $drained = 0; |