@@ -44,9 +44,9 @@ |
||
| 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 | |
@@ -98,8 +98,7 @@ |
||
| 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); |
@@ -245,7 +245,7 @@ discard block |
||
| 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 |
||
| 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': |
@@ -54,7 +54,7 @@ |
||
| 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 | |