Completed
Pull Request — master (#30)
by Matthew
06:35
created
Controller/TrendsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         }
81 81
 
82 82
         $format = $this->getDateFormat($type);
83
-        usort($timingsDates, function ($date1str, $date2str) use ($format) {
83
+        usort($timingsDates, function($date1str, $date2str) use ($format) {
84 84
             $date1 = \DateTime::createFromFormat($format, $date1str);
85 85
             $date2 = \DateTime::createFromFormat($format, $date2str);
86 86
             if (!$date2) {
Please login to merge, or discard this patch.
Tests/StaticJobManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             $total += count($this->jobs[$jobWorkerName]);
37 37
         }
38 38
 
39
-        return array_sum(array_map(function ($jobs) {
39
+        return array_sum(array_map(function($jobs) {
40 40
             return count($jobs);
41 41
         }, $this->jobs));
42 42
     }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/WorkerCompilerPass.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,6 @@
 block discarded – undo
87 87
 
88 88
     /**
89 89
      * @param ContainerBuilder $container
90
-     * @param string           $jobClass
91 90
      */
92 91
     protected function setupTaggedServices(ContainerBuilder $container, Definition $definition)
93 92
     {
Please login to merge, or discard this patch.
Doctrine/DoctrineJobManager.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -110,6 +110,10 @@  discard block
 block discarded – undo
110 110
         }
111 111
     }
112 112
 
113
+    /**
114
+     * @param string $workerName
115
+     * @param string $method
116
+     */
113 117
     public function pruneExpiredJobs($workerName = null, $method = null)
114 118
     {
115 119
         $count = $this->updateExpired($workerName, $method);
@@ -234,6 +238,10 @@  discard block
 block discarded – undo
234 238
         }
235 239
     }
236 240
 
241
+    /**
242
+     * @param integer $i
243
+     * @param integer $count
244
+     */
237 245
     protected function runStalledLoop($i, $count, array $stalledJobs)
238 246
     {
239 247
         $resetCount = 0;
@@ -336,6 +344,9 @@  discard block
 block discarded – undo
336 344
      */
337 345
     abstract protected function stopIdGenerator($objectName);
338 346
 
347
+    /**
348
+     * @param string $objectName
349
+     */
339 350
     abstract protected function restoreIdGenerator($objectName);
340 351
 
341 352
     /**
@@ -372,6 +383,9 @@  discard block
 block discarded – undo
372 383
         return $countProcessed;
373 384
     }
374 385
 
386
+    /**
387
+     * @param string $function
388
+     */
375 389
     protected function resetSaveOk($function)
376 390
     {
377 391
     }
Please login to merge, or discard this patch.
Manager/WorkerManager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
         $this->workers[$worker->getName()] = $worker;
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $name
56
+     */
54 57
     public function getWorker($name)
55 58
     {
56 59
         if (isset($this->workers[$name])) {
@@ -70,6 +73,9 @@  discard block
 block discarded – undo
70 73
         $this->logFunc = $callable;
71 74
     }
72 75
 
76
+    /**
77
+     * @param string $level
78
+     */
73 79
     public function log($level, $msg, array $context = [])
74 80
     {
75 81
         if ($this->logFunc) {
Please login to merge, or discard this patch.
Model/RetryableJob.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @return mixed
30
+     * @return integer
31 31
      */
32 32
     public function getMaxFailures()
33 33
     {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-     * @param mixed $maxFailure
38
+     * @param mixed $maxFailures
39 39
      */
40 40
     public function setMaxFailures($maxFailures)
41 41
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     }
122 122
 
123 123
     /**
124
-     * @return mixed
124
+     * @return integer
125 125
      */
126 126
     public function getMaxExceptions()
127 127
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-     * @param mixed $maxException
132
+     * @param mixed $maxExceptions
133 133
      */
134 134
     public function setMaxExceptions($maxExceptions)
135 135
     {
Please login to merge, or discard this patch.
Model/StallableJob.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @param int $stalledCount
43 42
      *
43
+     * @param integer $stalls
44 44
      * @return StallableJob
45 45
      */
46 46
     public function setStalls($stalls)
Please login to merge, or discard this patch.
RabbitMQ/JobManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
     }
211 211
 
212 212
     /**
213
-     * @param null $workerName
213
+     * @param string|null $workerName
214 214
      * @param null $methodName
215 215
      * @param bool $prioritize
216 216
      *
Please login to merge, or discard this patch.
Redis/Predis.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         ];
71 71
 
72 72
         try {
73
-            $this->predis->transaction($options, function ($tx) use ($key, &$element) {
73
+            $this->predis->transaction($options, function($tx) use ($key, &$element) {
74 74
                 @list($element) = $tx->zrange($key, 0, 0);
75 75
 
76 76
                 if (isset($element)) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         ];
96 96
 
97 97
         try {
98
-            $this->predis->transaction($options, function ($tx) use ($key, $max, &$element) {
98
+            $this->predis->transaction($options, function($tx) use ($key, $max, &$element) {
99 99
                 @list($element) = $tx->zrangebyscore($key, 0, $max, ['LIMIT' => [0, 1]]);
100 100
 
101 101
                 if (isset($element)) {
Please login to merge, or discard this patch.