@@ -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 |
@@ -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 |