Completed
Push — master ( 089f73...dc3342 )
by Matthew
06:38
created
Tests/StaticJobManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $total += count($this->jobs[$jobWorkerName]);
34 34
         }
35 35
 
36
-        return array_sum(array_map(function ($jobs) { return count($jobs); }, $this->jobs));
36
+        return array_sum(array_map(function($jobs) { return count($jobs); }, $this->jobs));
37 37
     }
38 38
 
39 39
     public function getStatus()
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $rootNode
90 90
             ->prototype('variable')->end()
91 91
             ->validate()
92
-                ->ifTrue(function ($node) {
92
+                ->ifTrue(function($node) {
93 93
                     if (!is_array($node)) {
94 94
                         return true;
95 95
                     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ->append($this->addRabbitMqSslOptions())
167 167
             ->append($this->addRabbitMqArgs())
168 168
             ->append($this->addRabbitMqExchange())
169
-            ->validate()->always(function ($node) {
169
+            ->validate()->always(function($node) {
170 170
                 if (empty($node['ssl_options'])) {
171 171
                     unset($node['ssl_options']);
172 172
                 }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
                 return $node;
178 178
             })->end()
179
-            ->validate()->ifTrue(function ($node) {
179
+            ->validate()->ifTrue(function($node) {
180 180
                 if (isset($node['ssl_options']) && !$node['ssl']) {
181 181
                     return true;
182 182
                 }
Please login to merge, or discard this patch.
ODM/JobManager.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,6 +208,7 @@  discard block
 block discarded – undo
208 208
      * @param string $workerName
209 209
      * @param string $methodName
210 210
      * @param bool   $prioritize
211
+     * @param integer $runId
211 212
      *
212 213
      * @return \Dtc\QueueBundle\Model\Job
213 214
      */
@@ -233,8 +234,8 @@  discard block
 block discarded – undo
233 234
     }
234 235
 
235 236
     /**
236
-     * @param null $workerName
237
-     * @param null $methodName
237
+     * @param string|null $workerName
238
+     * @param string|null $methodName
238 239
      * @param bool $prioritize
239 240
      *
240 241
      * @return Builder
Please login to merge, or discard this patch.
ORM/JobManager.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,6 +239,7 @@  discard block
 block discarded – undo
239 239
      * @param string $workerName
240 240
      * @param string $methodName
241 241
      * @param bool   $prioritize
242
+     * @param integer $runId
242 243
      *
243 244
      * @return Job|null
244 245
      */
@@ -255,8 +256,8 @@  discard block
 block discarded – undo
255 256
     }
256 257
 
257 258
     /**
258
-     * @param null $workerName
259
-     * @param null $methodName
259
+     * @param string|null $workerName
260
+     * @param string|null $methodName
260 261
      * @param bool $prioritize
261 262
      *
262 263
      * @return QueryBuilder
@@ -332,7 +333,7 @@  discard block
 block discarded – undo
332 333
      *
333 334
      * @param \Dtc\QueueBundle\Model\Job $job
334 335
      *
335
-     * @return mixed|null
336
+     * @return null|Job
336 337
      */
337 338
     public function updateNearestBatch(\Dtc\QueueBundle\Model\Job $job)
338 339
     {
@@ -361,6 +362,10 @@  discard block
 block discarded – undo
361 362
         return $existingJob;
362 363
     }
363 364
 
365
+    /**
366
+     * @param integer $newPriority
367
+     * @param null|\DateTime $newWhenAt
368
+     */
364 369
     protected function updateBatchJob(Job $existingJob, $newPriority, $newWhenAt)
365 370
     {
366 371
         $existingPriority = $existingJob->getPriority();
Please login to merge, or discard this patch.
ORM/LiveJobGridSource.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $queryBuilder = $this->jobManager->getJobQueryBuilder();
38 38
         $queryBuilder->add('select', 'j');
39 39
         $queryBuilder->setFirstResult($this->offset)
40
-                     ->setMaxResults($this->limit);
40
+                        ->setMaxResults($this->limit);
41 41
 
42 42
         return $queryBuilder;
43 43
     }
Please login to merge, or discard this patch.
Controller/QueueController.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         return $params;
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $type
77
+     */
75 78
     protected function validateManagerType($type)
76 79
     {
77 80
         $managerType = $this->container->getParameter($type);
@@ -187,7 +190,6 @@  discard block
 block discarded – undo
187 190
     /**
188 191
      * @Route("/timings", name="dtc_queue_timings")
189 192
      *
190
-     * @param Request $request
191 193
      */
192 194
     public function getTimingsAction()
193 195
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
             } else {
211 211
                 $timings = $this->getJobTimingsOrm($type, $endDate, $beginDate);
212 212
             }
213
-            uksort($timings, function ($date1str, $date2str) {
213
+            uksort($timings, function($date1str, $date2str) {
214 214
                 $date1 = \DateTime::createFromFormat('Y-m-d H', $date1str);
215 215
                 $date2 = \DateTime::createFromFormat('Y-m-d H', $date2str);
216 216
                 if (!$date2) {
Please login to merge, or discard this patch.