@@ -33,7 +33,7 @@ |
||
| 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() |
@@ -89,7 +89,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -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 | |
@@ -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 | |