@@ -45,7 +45,7 @@ |
||
| 45 | 45 | while (true) { |
| 46 | 46 | foreach ($listeners as $eventName => $listenersPerEvent) { |
| 47 | 47 | foreach ($listenersPerEvent as $listenerIdentifier => $listener) { |
| 48 | - $this->eventQueueConsumer->dequeueAsProcess((string)$eventName, $listenerIdentifier); |
|
| 48 | + $this->eventQueueConsumer->dequeueAsProcess((string) $eventName, $listenerIdentifier); |
|
| 49 | 49 | usleep(static::DELAY_INTERVAL); |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected function registerUuidFacade(Container $container): UuidRamseyServiceProvider |
| 29 | 29 | { |
| 30 | - $container->offsetSet(UuidConstants::FACADE, static function () { |
|
| 30 | + $container->offsetSet(UuidConstants::FACADE, static function() { |
|
| 31 | 31 | return new UuidRamseyFacade(new UuidRamseyFactory()); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected function registerProcessFacade(Container $container): ProcessSymfonyServiceProvider |
| 29 | 29 | { |
| 30 | - $container->offsetSet(ProcessConstants::FACADE, static function () { |
|
| 30 | + $container->offsetSet(ProcessConstants::FACADE, static function() { |
|
| 31 | 31 | return new ProcessSymfonyFacade(new ProcessSymfonyFactory()); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function registerCacheFacade(Container $container): CacheSymfonyServiceProvider |
| 31 | 31 | { |
| 32 | - $container->offsetSet(CacheConstants::FACADE, static function (Container $container) { |
|
| 32 | + $container->offsetSet(CacheConstants::FACADE, static function(Container $container) { |
|
| 33 | 33 | $cacheSymfonyFactory = new CacheSymfonyFactory( |
| 34 | 34 | $container->offsetGet(ConfigConstants::FACADE) |
| 35 | 35 | ); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function registerConfigFacade(Container $container): ConfigServiceProvider |
| 28 | 28 | { |
| 29 | - $container->offsetSet(ConfigConstants::FACADE, static function (Container $container) { |
|
| 29 | + $container->offsetSet(ConfigConstants::FACADE, static function(Container $container) { |
|
| 30 | 30 | $appDir = $container->offsetGet('app_dir'); |
| 31 | 31 | $environment = $container->offsetGet('environment'); |
| 32 | 32 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function registerConsoleFacade(Container $container): ConsoleServiceProvider |
| 26 | 26 | { |
| 27 | - $container->offsetSet(ConsoleConstants::FACADE, static function () { |
|
| 27 | + $container->offsetSet(ConsoleConstants::FACADE, static function() { |
|
| 28 | 28 | return new ConsoleFacade(new ConsoleFactory()); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | try { |
| 103 | 103 | $result = $this->executeLockablePart($eventName, $listenerIdentifier); |
| 104 | 104 | } catch (Throwable $e) { |
| 105 | - $this->logFacade->error((string)$e); |
|
| 105 | + $this->logFacade->error((string) $e); |
|
| 106 | 106 | } finally { |
| 107 | 107 | $this->release(); |
| 108 | 108 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function registerSchedulerFacade(Container $container): SchedulerServiceProvider |
| 34 | 34 | { |
| 35 | - $container->offsetSet(SchedulerConstants::FACADE, static function (Container $container) { |
|
| 35 | + $container->offsetSet(SchedulerConstants::FACADE, static function(Container $container) { |
|
| 36 | 36 | $schedulerFactory = new SchedulerFactory($container->offsetGet(ProcessConstants::FACADE)); |
| 37 | 37 | |
| 38 | 38 | return new SchedulerFacade($schedulerFactory); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $container->extend( |
| 52 | 52 | ConsoleConstants::FACADE, |
| 53 | - static function (ConsoleFacadeInterface $consoleFacade, Container $container) { |
|
| 53 | + static function(ConsoleFacadeInterface $consoleFacade, Container $container) { |
|
| 54 | 54 | $consoleFacade->addCommand( |
| 55 | 55 | new RunSchedulerCommand( |
| 56 | 56 | $container->offsetGet(SchedulerConstants::FACADE), |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | $self = $this; |
| 34 | 34 | |
| 35 | - $container->offsetSet(LogConstants::FACADE, static function (Container $container) use ($self) { |
|
| 35 | + $container->offsetSet(LogConstants::FACADE, static function(Container $container) use ($self) { |
|
| 36 | 36 | $logFactory = new LogFactory(); |
| 37 | 37 | |
| 38 | 38 | return (new LogFacade($logFactory)) |