@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | protected function registerValidatorFactory(Container $container): JsonSchemaOpisServiceProvider |
26 | 26 | { |
27 | - $container->offsetSet('json_schema_validator_factory', function () { |
|
27 | + $container->offsetSet('json_schema_validator_factory', function() { |
|
28 | 28 | return new ValidatorFactory(); |
29 | 29 | }); |
30 | 30 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | protected function registerFinderFactory(Container $container): FinderSymfonyServiceProvider |
26 | 26 | { |
27 | - $container->offsetSet('finder_factory', function () { |
|
27 | + $container->offsetSet('finder_factory', function() { |
|
28 | 28 | return new FinderFactory(); |
29 | 29 | }); |
30 | 30 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | try { |
98 | 98 | $result = $this->executeLockablePart($eventName, $listenerIdentifier); |
99 | 99 | } catch (Throwable $e) { |
100 | - $this->logger->error((string)$e); |
|
100 | + $this->logger->error((string) $e); |
|
101 | 101 | } finally { |
102 | 102 | $this->release(); |
103 | 103 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $container->extend( |
35 | 35 | EventServiceProvider::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, |
36 | - static function (array $defaultEventErrorHandlers, Container $container) { |
|
36 | + static function(array $defaultEventErrorHandlers, Container $container) { |
|
37 | 37 | $logger = $container->offsetGet(LogServiceProvider::CONTAINER_KEY_LOGGER); |
38 | 38 | |
39 | 39 | $defaultEventErrorHandlers[] = new LogEventErrorHandler($logger); |
@@ -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 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | protected function registerEventFactory(Container $container): EventServiceProvider |
146 | 146 | { |
147 | - $container->offsetSet(static::CONTAINER_KEY_EVENT_FACTORY, static function () { |
|
147 | + $container->offsetSet(static::CONTAINER_KEY_EVENT_FACTORY, static function() { |
|
148 | 148 | return new EventFactory(); |
149 | 149 | }); |
150 | 150 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | $container->offsetSet( |
164 | 164 | static::CONTAINER_KEY_EVENT_DISPATCHER, |
165 | - static function (Container $container) use ($self) { |
|
165 | + static function(Container $container) use ($self) { |
|
166 | 166 | return new EventDispatcher( |
167 | 167 | new EventListenerProvider(), |
168 | 168 | $self->createEventQueueProducer($container) |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $self = $this; |
184 | 184 | |
185 | - $container->extend('commands', static function (array $commands, Container $container) use ($self) { |
|
185 | + $container->extend('commands', static function(array $commands, Container $container) use ($self) { |
|
186 | 186 | $commands[] = new EventQueueConsumeCommand( |
187 | 187 | $container->offsetGet('event_dispatcher')->getEventListenerProvider(), |
188 | 188 | $self->createEventQueueConsumer($container), |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | */ |
208 | 208 | protected function registerDefaultEventErrorHandlers(Container $container): EventServiceProvider |
209 | 209 | { |
210 | - $container->offsetSet(static::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function () { |
|
210 | + $container->offsetSet(static::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function() { |
|
211 | 211 | return []; |
212 | 212 | }); |
213 | 213 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | $self = $this; |
36 | 36 | |
37 | - $container->offsetSet(static::CONTAINER_KEY_LOGGER, static function (Container $container) use ($self) { |
|
37 | + $container->offsetSet(static::CONTAINER_KEY_LOGGER, static function(Container $container) use ($self) { |
|
38 | 38 | $logger = new Logger('jellyfish'); |
39 | 39 | |
40 | 40 | $logger->pushHandler($self->createStreamHandler($container)); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $self = $this; |
22 | 22 | |
23 | - $pimple->offsetSet(static::CONTAINER_KEY_CONFIG, static function (Container $container) use ($self) { |
|
23 | + $pimple->offsetSet(static::CONTAINER_KEY_CONFIG, static function(Container $container) use ($self) { |
|
24 | 24 | return $self->createConfig($container); |
25 | 25 | }); |
26 | 26 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $container->offsetSet( |
42 | 42 | static::CONTAINER_KEY_CONNECTION, |
43 | - static function (Container $container) use ($self) { |
|
43 | + static function(Container $container) use ($self) { |
|
44 | 44 | $lazyConnection = $self->createAmqpLazyConnection($container); |
45 | 45 | |
46 | 46 | return new Connection($lazyConnection); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | protected function registerAmqpMessageFactory(Container $container): QueueRabbitMqServiceProvider |
59 | 59 | { |
60 | - $container->offsetSet(static::CONTAINER_KEY_AMQP_MESSAGE_FACTORY, static function () { |
|
60 | + $container->offsetSet(static::CONTAINER_KEY_AMQP_MESSAGE_FACTORY, static function() { |
|
61 | 61 | return new AmqpMessageFactory(); |
62 | 62 | }); |
63 | 63 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | $container->offsetSet( |
77 | 77 | QueueServiceProvider::CONTAINER_KEY_QUEUE_CLIENT, |
78 | - static function (Container $container) use ($self) { |
|
78 | + static function(Container $container) use ($self) { |
|
79 | 79 | return new QueueClient( |
80 | 80 | $self->createConsumers($container), |
81 | 81 | $self->createProducers($container) |