@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $self = $this; |
| 18 | 18 | |
| 19 | - $pimple->offsetSet('config', function (Container $container) use ($self) { |
|
| 19 | + $pimple->offsetSet('config', function(Container $container) use ($self) { |
|
| 20 | 20 | return $self->createConfig($container); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $self = $this; |
| 31 | 31 | |
| 32 | - $container->offsetSet('lock_factory', function (Container $container) use ($self) { |
|
| 32 | + $container->offsetSet('lock_factory', function(Container $container) use ($self) { |
|
| 33 | 33 | return new LockFactory( |
| 34 | 34 | $self->createSymfonyLockFactory($container), |
| 35 | 35 | $self->createLockIdentifierGenerator() |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function createFinderFactory(Container $container): ServiceProviderInterface |
| 26 | 26 | { |
| 27 | - $container->offsetSet('finder_factory', function () { |
|
| 27 | + $container->offsetSet('finder_factory', function() { |
|
| 28 | 28 | return new FinderFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $self = $this; |
| 43 | 43 | |
| 44 | - $container->extend('commands', function (array $commands, Container $container) use ($self) { |
|
| 44 | + $container->extend('commands', function(array $commands, Container $container) use ($self) { |
|
| 45 | 45 | $commands[] = new TransferGenerateCommand( |
| 46 | 46 | $self->createTransferGenerator($container), |
| 47 | 47 | $self->createTransferCleaner($container), |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | foreach ($factoryRegistry as $factoryId => $factory) { |
| 192 | - $container->offsetSet($factoryId, function () use ($factory) { |
|
| 192 | + $container->offsetSet($factoryId, function() use ($factory) { |
|
| 193 | 193 | return $factory; |
| 194 | 194 | }); |
| 195 | 195 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function addFilesystem(Container $container): FilesystemSymfonyServiceProvider |
| 27 | 27 | { |
| 28 | - $container->offsetSet('filesystem', function () { |
|
| 28 | + $container->offsetSet('filesystem', function() { |
|
| 29 | 29 | $symfonyFilesystem = new SymfonyFilesystem(); |
| 30 | 30 | |
| 31 | 31 | return new Filesystem($symfonyFilesystem); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Jellyfish\Event; |
| 6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | protected function createEventFactory(Container $container): ServiceProviderInterface |
| 36 | 36 | { |
| 37 | - $container->offsetSet('event_factory', function () { |
|
| 37 | + $container->offsetSet('event_factory', function() { |
|
| 38 | 38 | return new EventFactory(); |
| 39 | 39 | }); |
| 40 | 40 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | protected function createEventQueueNameGenerator(Container $container): ServiceProviderInterface |
| 50 | 50 | { |
| 51 | - $container->offsetSet('event_queue_name_generator', function () { |
|
| 51 | + $container->offsetSet('event_queue_name_generator', function() { |
|
| 52 | 52 | return new EventQueueNameGenerator(); |
| 53 | 53 | }); |
| 54 | 54 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | protected function createEventMapper(Container $container): ServiceProviderInterface |
| 64 | 64 | { |
| 65 | - $container->offsetSet('event_mapper', function (Container $container) { |
|
| 65 | + $container->offsetSet('event_mapper', function(Container $container) { |
|
| 66 | 66 | return new EventMapper( |
| 67 | 67 | $container->offsetGet('event_factory'), |
| 68 | 68 | $container->offsetGet('message_factory'), |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | protected function createEventQueueProducer(Container $container): ServiceProviderInterface |
| 82 | 82 | { |
| 83 | - $container->offsetSet('event_queue_producer', function (Container $container) { |
|
| 83 | + $container->offsetSet('event_queue_producer', function(Container $container) { |
|
| 84 | 84 | return new EventQueueProducer( |
| 85 | 85 | $container->offsetGet('event_mapper'), |
| 86 | 86 | $container->offsetGet('event_queue_name_generator'), |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | protected function createEventQueueConsumer(Container $container): ServiceProviderInterface |
| 100 | 100 | { |
| 101 | - $container->offsetSet('event_queue_consumer', function (Container $container) { |
|
| 101 | + $container->offsetSet('event_queue_consumer', function(Container $container) { |
|
| 102 | 102 | return new EventQueueConsumer( |
| 103 | 103 | $container->offsetGet('process_factory'), |
| 104 | 104 | $container->offsetGet('event_mapper'), |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | protected function createEventListenerProvider(Container $container): ServiceProviderInterface |
| 115 | 115 | { |
| 116 | - $container->offsetSet('event_listener_provider', function () { |
|
| 116 | + $container->offsetSet('event_listener_provider', function() { |
|
| 117 | 117 | return new EventListenerProvider(); |
| 118 | 118 | }); |
| 119 | 119 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | protected function createEventDispatcher(Container $container): ServiceProviderInterface |
| 129 | 129 | { |
| 130 | - $container->offsetSet('event_dispatcher', function (Container $container) { |
|
| 130 | + $container->offsetSet('event_dispatcher', function(Container $container) { |
|
| 131 | 131 | return new EventDispatcher( |
| 132 | 132 | $container->offsetGet('event_listener_provider'), |
| 133 | 133 | $container->offsetGet('event_queue_producer') |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | protected function createEventQueueWorker(Container $container): ServiceProviderInterface |
| 146 | 146 | { |
| 147 | - $container->offsetSet('event_queue_worker', function (Container $container) { |
|
| 147 | + $container->offsetSet('event_queue_worker', function(Container $container) { |
|
| 148 | 148 | return new EventQueueWorker( |
| 149 | 149 | $container->offsetGet('event_listener_provider'), |
| 150 | 150 | $container->offsetGet('event_queue_consumer') |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | protected function createCommands(Container $container): ServiceProviderInterface |
| 163 | 163 | { |
| 164 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 164 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 165 | 165 | $commands[] = new EventQueueConsumeCommand( |
| 166 | 166 | $container->offsetGet('event_listener_provider'), |
| 167 | 167 | $container->offsetGet('event_queue_consumer'), |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Jellyfish\Event; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Jellyfish\Event; |
| 6 | 6 | |