Completed
Push — master ( e02161...971421 )
by Matthew
12:50
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.
Controller/QueueController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
             } else {
187 187
                 $timings = $this->getJobTimingsOrm();
188 188
             }
189
-            uksort($timings, function ($date1str, $date2str) {
189
+            uksort($timings, function($date1str, $date2str) {
190 190
                 $date1 = \DateTime::createFromFormat('Y-m-d H', $date1str);
191 191
                 $date2 = \DateTime::createFromFormat('Y-m-d H', $date2str);
192 192
                 if (!$date2) {
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
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $queryBuilder = $this->jobManager->getJobQueryBuilder();
38 38
         $queryBuilder->setFirstResult($this->offset)
39
-                     ->setMaxResults($this->limit);
39
+                        ->setMaxResults($this->limit);
40 40
 
41 41
         return $queryBuilder;
42 42
     }
Please login to merge, or discard this patch.