Completed
Push — master ( bee88f...386cc0 )
by Matthew
21:41
created
Tests/DependencyInjection/Compiler/WorkerCompilerPassTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
         $definition5->setClass(JobTimingManager::class);
45 45
         $container->addDefinitions([
46 46
             'dtc_queue.worker_manager' => $definition1,
47
-            'dtc_queue.job_manager.' . $type => $definition2,
48
-            'dtc_queue.job_timing_manager.' . $jobTimingManagerType => $definition5,
49
-            'dtc_queue.run_manager.' . $runManagerType => $definition3,
47
+            'dtc_queue.job_manager.'.$type => $definition2,
48
+            'dtc_queue.job_timing_manager.'.$jobTimingManagerType => $definition5,
49
+            'dtc_queue.run_manager.'.$runManagerType => $definition3,
50 50
             'dtc_queue.event_dispatcher' => $definition4,
51 51
         ]);
52 52
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
         $failure = false;
99 99
         try {
100 100
             $this->runProcessValidWorker('bad');
101
-        }
102
-        catch (\Exception $e) {
101
+        } catch (\Exception $e) {
103 102
             $failure = true;
104 103
         }
105 104
         self::assertTrue($failure);
Please login to merge, or discard this patch.
Controller/QueueController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         }
246 246
 
247 247
         $format = $this->getDateFormat($type);
248
-        usort($timingsDates, function ($date1str, $date2str) use ($format) {
248
+        usort($timingsDates, function($date1str, $date2str) use ($format) {
249 249
             $date1 = \DateTime::createFromFormat($format, $date1str);
250 250
             $date2 = \DateTime::createFromFormat($format, $date2str);
251 251
             if (!$date2) {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     protected function getDateFormat($type) {
328
-        switch($type) {
328
+        switch ($type) {
329 329
             case 'YEAR':
330 330
                 return 'Y';
331 331
             case 'MONTH':
Please login to merge, or discard this patch.
DependencyInjection/DtcQueueExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $container->setParameter('dtc_queue.record_timings', isset($config['record_timings']) ? $config['record_timings'] : false);
55 55
         $container->setParameter('dtc_queue.record_timings_timezone_offset', $config['record_timings_timezone_offset']);
56 56
         if ($config['record_timings_timezone_offset'] > 24 || $config['record_timings_timezone_offset'] < -24) {
57
-            throw new \InvalidArgumentException("Invalid record_timings_timezone_offset: " . $config['record_timings_timezone_offset']);
57
+            throw new \InvalidArgumentException("Invalid record_timings_timezone_offset: ".$config['record_timings_timezone_offset']);
58 58
         }
59 59
     }
60 60
 
Please login to merge, or discard this patch.