Completed
Branch feature/new-scrutinizer (53aa9f)
by Matthew
03:01
created
ORM/JobManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Redis/StatusTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -431,7 +431,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Tests/RabbitMQ/JobManagerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.