@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | 'doctrine.orm.default_entity_manager', |
| 65 | 65 | $factory->createProxy( |
| 66 | 66 | EntityManager::class, |
| 67 | - function (&$wrappedObject, $proxy, $method, $parameters, &$initializer) use ($objectManager) { |
|
| 67 | + function(&$wrappedObject, $proxy, $method, $parameters, &$initializer) use ($objectManager) { |
|
| 68 | 68 | $wrappedObject = $objectManager; |
| 69 | 69 | $initializer = null; |
| 70 | 70 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'doctrine.orm.default_entity_manager', |
| 93 | 93 | $factory->createProxy( |
| 94 | 94 | EntityManager::class, |
| 95 | - function (&$wrappedObject, $proxy, $method, $parameters, &$initializer) use ($objectManager) { |
|
| 95 | + function(&$wrappedObject, $proxy, $method, $parameters, &$initializer) use ($objectManager) { |
|
| 96 | 96 | $wrappedObject = $objectManager; |
| 97 | 97 | $initializer = null; |
| 98 | 98 | } |
@@ -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); |