@@ -153,6 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * @param string $crcCacheKey |
155 | 155 | * @param int|null $newFoundPriority |
156 | + * @param string $foundJobCacheKey |
|
156 | 157 | */ |
157 | 158 | protected function finishBatchFoundJob(Job $foundJob, $foundJobCacheKey, $crcCacheKey, $newFoundWhen, $newFoundPriority) |
158 | 159 | { |
@@ -175,6 +176,7 @@ discard block |
||
175 | 176 | |
176 | 177 | /** |
177 | 178 | * @param bool $adjust |
179 | + * @param string $crcCacheKey |
|
178 | 180 | */ |
179 | 181 | protected function addFoundJob($adjust, Job $foundJob, $foundJobCacheKey, $crcCacheKey) |
180 | 182 | { |
@@ -427,6 +429,9 @@ discard block |
||
427 | 429 | return true; |
428 | 430 | } |
429 | 431 | |
432 | + /** |
|
433 | + * @param string $cacheKey |
|
434 | + */ |
|
430 | 435 | private function collateStatusResults(array &$results, $cacheKey) |
431 | 436 | { |
432 | 437 | $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); |
@@ -106,6 +106,9 @@ discard block |
||
106 | 106 | self::assertEquals(3, $result[$hashKey2]); |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param string $haskKeyStart |
|
111 | + */ |
|
109 | 112 | private function prePopulateScan($type, $haskKeyStart, array &$hashKeys) |
110 | 113 | { |
111 | 114 | for ($i = 0; $i < 100; ++$i) { |
@@ -121,6 +124,9 @@ discard block |
||
121 | 124 | } |
122 | 125 | } |
123 | 126 | |
127 | + /** |
|
128 | + * @param string $type |
|
129 | + */ |
|
124 | 130 | public function scan(RedisInterface $redis, $type) |
125 | 131 | { |
126 | 132 | $key = 'testHash'; |