@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | protected function registerFeedReaderManager(Container $container): FeedServiceProvider |
| 28 | 28 | { |
| 29 | - $container->offsetSet('feed_reader_manager', function () { |
|
| 29 | + $container->offsetSet('feed_reader_manager', function() { |
|
| 30 | 30 | return new FeedReaderManager(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function registerCommands(Container $container): FeedServiceProvider |
| 42 | 42 | { |
| 43 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 43 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 44 | 44 | $commands[] = new RunFeedReaderCommand($container->offsetGet('feed_reader_manager')); |
| 45 | 45 | |
| 46 | 46 | return $commands; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function registerProcessFactory(Container $container): ProcessSymfonyServiceProvider |
| 26 | 26 | { |
| 27 | - $container->offsetSet('process_factory', function () { |
|
| 27 | + $container->offsetSet('process_factory', function() { |
|
| 28 | 28 | return new ProcessFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $self = $this; |
| 50 | 50 | |
| 51 | - $container->extend('commands', function (array $commands, Container $container) use ($self) { |
|
| 51 | + $container->extend('commands', function(array $commands, Container $container) use ($self) { |
|
| 52 | 52 | $commands[] = new TransferGenerateCommand( |
| 53 | 53 | $self->createTransferGenerator($container), |
| 54 | 54 | $self->createTransferCleaner($container), |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | foreach ($factoryRegistry as $factoryId => $factory) { |
| 216 | - $container->offsetSet((string)$factoryId, function () use ($factory) { |
|
| 216 | + $container->offsetSet((string) $factoryId, function() use ($factory) { |
|
| 217 | 217 | return $factory; |
| 218 | 218 | }); |
| 219 | 219 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | protected function registerScheduler(Container $container): SchedulerServiceProvider |
| 28 | 28 | { |
| 29 | - $container->offsetSet('scheduler', function () { |
|
| 29 | + $container->offsetSet('scheduler', function() { |
|
| 30 | 30 | return new Scheduler(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function registerCommands(Container $container): SchedulerServiceProvider |
| 42 | 42 | { |
| 43 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 43 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 44 | 44 | $commands[] = new RunSchedulerCommand( |
| 45 | 45 | $container->offsetGet('scheduler'), |
| 46 | 46 | $container->offsetGet('lock_factory'), |
@@ -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 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | protected function registerMessageFactory(Container $container): QueueServiceProvider |
| 27 | 27 | { |
| 28 | - $container->offsetSet('message_factory', function () { |
|
| 28 | + $container->offsetSet('message_factory', function() { |
|
| 29 | 29 | return new MessageFactory(); |
| 30 | 30 | }); |
| 31 | 31 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | protected function registerMessageMapper(Container $container): QueueServiceProvider |
| 41 | 41 | { |
| 42 | - $container->offsetSet('message_mapper', function (Container $container) { |
|
| 42 | + $container->offsetSet('message_mapper', function(Container $container) { |
|
| 43 | 43 | return new MessageMapper( |
| 44 | 44 | $container->offsetGet('serializer') |
| 45 | 45 | ); |
@@ -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 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | $self = $this; |
| 30 | 30 | |
| 31 | - $container->offsetSet('queue_client', function (Container $container) use ($self) { |
|
| 31 | + $container->offsetSet('queue_client', function(Container $container) use ($self) { |
|
| 32 | 32 | return new QueueClient( |
| 33 | 33 | $self->createConnection($container), |
| 34 | 34 | $container->offsetGet('message_mapper') |
@@ -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 | } |