Completed
Pull Request — master (#39)
by Daniel
04:05
created
packages/config/src/Jellyfish/Config/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
packages/console/src/Jellyfish/Console/ConsoleServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
packages/event-cache/src/Jellyfish/EventCache/EventCacheServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $container->extend(
36 36
             EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS,
37
-            static function (array $defaultEventErrorHandlers, Container $container) {
37
+            static function(array $defaultEventErrorHandlers, Container $container) {
38 38
                 $defaultEventErrorHandlers[] = new CacheEventErrorHandler(
39 39
                     $container->offsetGet(CacheConstants::FACADE),
40 40
                     $container->offsetGet(SerializerConstants::FACADE)
Please login to merge, or discard this patch.
packages/queue/src/Jellyfish/Queue/QueueServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected function registerMessageFactory(Container $container): QueueServiceProvider
31 31
     {
32
-        $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function () {
32
+        $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function() {
33 33
             return new MessageFactory();
34 34
         });
35 35
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected function registerMessageMapper(Container $container): QueueServiceProvider
45 45
     {
46
-        $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function (Container $container) {
46
+        $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function(Container $container) {
47 47
             return new MessageMapper(
48 48
                 $container->offsetGet(SerializerConstants::FACADE)
49 49
             );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     protected function registerDestinationFactory(Container $container): QueueServiceProvider
56 56
     {
57
-        $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function () {
57
+        $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function() {
58 58
             return new DestinationFactory();
59 59
         });
60 60
 
Please login to merge, or discard this patch.
packages/event/src/Jellyfish/Event/Command/EventQueueConsumeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
packages/event/src/Jellyfish/Event/EventServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     protected function registerEventFactory(Container $container): EventServiceProvider
150 150
     {
151
-        $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function (Container $container) {
151
+        $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function(Container $container) {
152 152
             return new EventFactory($container->offsetGet(UuidConstants::FACADE));
153 153
         });
154 154
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         $container->offsetSet(
168 168
             EventConstants::CONTAINER_KEY_EVENT_DISPATCHER,
169
-            static function (Container $container) use ($self) {
169
+            static function(Container $container) use ($self) {
170 170
                 return new EventDispatcher(
171 171
                     new EventListenerProvider(),
172 172
                     $self->createEventQueueProducer($container)
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         $container->extend(
190 190
             ConsoleConstants::FACADE,
191
-            static function (ConsoleFacadeInterface $consoleFacade, Container $container) use ($self) {
191
+            static function(ConsoleFacadeInterface $consoleFacade, Container $container) use ($self) {
192 192
                 $consoleFacade->addCommand(
193 193
                     new EventQueueConsumeCommand(
194 194
                         $container->offsetGet('event_dispatcher')->getEventListenerProvider(),
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     protected function registerDefaultEventErrorHandlers(Container $container): EventServiceProvider
220 220
     {
221
-        $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function () {
221
+        $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function() {
222 222
             return [];
223 223
         });
224 224
 
Please login to merge, or discard this patch.
packages/transfer/src/Jellyfish/Transfer/TransferServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $container->extend(
58 58
             ConsoleConstants::FACADE,
59
-            static function (ConsoleFacadeInterface $consoleFacade, Container $container) use ($self) {
59
+            static function(ConsoleFacadeInterface $consoleFacade, Container $container) use ($self) {
60 60
                 $consoleFacade->addCommand(
61 61
                     new TransferGenerateCommand(
62 62
                         $self->createTransferGenerator($container),
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         }
225 225
 
226 226
         foreach ($factoryRegistry as $factoryId => $factory) {
227
-            $container->offsetSet((string)$factoryId, function () use ($factory) {
227
+            $container->offsetSet((string) $factoryId, function() use ($factory) {
228 228
                 return $factory;
229 229
             });
230 230
         }
Please login to merge, or discard this patch.
packages/scheduler/src/Jellyfish/Scheduler/SchedulerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.
packages/event-log/src/Jellyfish/EventLog/EventLogServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         $container->extend(
35 35
             EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS,
36
-            static function (array $defaultEventErrorHandlers, Container $container) {
36
+            static function(array $defaultEventErrorHandlers, Container $container) {
37 37
                 /** @var \Jellyfish\Log\LogFacadeInterface $logFacade */
38 38
                 $logFacade = $container->offsetGet(LogConstants::FACADE);
39 39
 
Please login to merge, or discard this patch.