Completed
Pull Request — devel (#4)
by Alex
05:12
created
src/Routing/AutoSubscription/AutoSubscribeFeature.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->enableByDefault();
18 18
         $this->registerPrerequisite(
19
-            function (Settings $settings) {
19
+            function(Settings $settings) {
20 20
                 return !$settings->tryGet(KnownSettingsEnum::SEND_ONLY);
21 21
             },
22 22
             "Send only endpoints can't autosubscribe."
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function setup(Settings $settings, BuilderInterface $builder, PipelineModifications $pipelineModifications)
32 32
     {
33 33
         $this->registerStartupTask(
34
-            function (BuilderInterface $builder) {
34
+            function(BuilderInterface $builder) {
35 35
                 /** @var MessageHandlerRegistry $handlerRegistry */
36 36
                 $handlerRegistry = $builder->build(MessageHandlerRegistry::class);
37 37
                 return new SubscriptionApplierStartupTask($handlerRegistry->getEventFqcns());
Please login to merge, or discard this patch.
src/Routing/RoutingFeature.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         $builder->defineSingleton(
49 49
             UnicastRouterInterface::class,
50
-            function () use ($localAddress, $builder, $settings) {
50
+            function() use ($localAddress, $builder, $settings) {
51 51
                 return new UnicastRouter(
52 52
                     $localAddress,
53 53
                     $builder->build(UnicastRoutingTable::class),
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $pipelineModifications->registerStep(
60 60
             'UnicastSendRoutingConnector',
61 61
             UnicastSendRoutingConnector::class,
62
-            function () use ($builder) {
62
+            function() use ($builder) {
63 63
                 return new UnicastSendRoutingConnector(
64 64
                     $builder->build(UnicastRouterInterface::class),
65 65
                     $builder->build(OutgoingContextFactory::class)
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
         $pipelineModifications->registerStep(
70 70
             'UnicastReplyRoutingConnector',
71 71
             UnicastReplyRoutingConnector::class,
72
-            function () use ($builder) {
72
+            function() use ($builder) {
73 73
                 return new UnicastReplyRoutingConnector($builder->build(OutgoingContextFactory::class));
74 74
             }
75 75
         );
76 76
         $pipelineModifications->registerStep(
77 77
             'MulticastPublishRoutingConnector',
78 78
             MulticastPublishRoutingConnector::class,
79
-            function () use ($builder) {
79
+            function() use ($builder) {
80 80
                 return new MulticastPublishRoutingConnector($builder->build(OutgoingContextFactory::class));
81 81
             }
82 82
         );
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $pipelineModifications->registerStep(
87 87
                 'AttachReplyToAddressPipelineStep',
88 88
                 AttachReplyToAddressPipelineStep::class,
89
-                function () use ($localAddress) {
89
+                function() use ($localAddress) {
90 90
                     return new AttachReplyToAddressPipelineStep($localAddress);
91 91
                 }
92 92
             );
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
             $pipelineModifications->registerStep(
103 103
                 'SubscribeTerminator',
104 104
                 SubscribeTerminator::class,
105
-                function () use ($builder) {
105
+                function() use ($builder) {
106 106
                     return new SubscribeTerminator($builder->build(SubscriptionManagerInterface::class));
107 107
                 }
108 108
             );
109 109
             $pipelineModifications->registerStep(
110 110
                 'UnsubscribeTerminator',
111 111
                 UnsubscribeTerminator::class,
112
-                function () use ($builder) {
112
+                function() use ($builder) {
113 113
                     return new UnsubscribeTerminator($builder->build(SubscriptionManagerInterface::class));
114 114
                 }
115 115
             );
Please login to merge, or discard this patch.
src/Pipeline/Pipeline.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@
 block discarded – undo
40 40
         if ($step instanceof StageConnectorInterface) {
41 41
             $step->invoke(
42 42
                 $context,
43
-                function ($newContext) use ($currentIndex) {
43
+                function($newContext) use ($currentIndex) {
44 44
                     $this->invokeNext($newContext, $currentIndex + 1);
45 45
                 }
46 46
             );
47 47
         } else {
48 48
             $step->invoke(
49 49
                 $context,
50
-                function () use ($context, $currentIndex) {
50
+                function() use ($context, $currentIndex) {
51 51
                     $this->invokeNext($context, $currentIndex + 1);
52 52
                 }
53 53
             );
Please login to merge, or discard this patch.
src/Serialization/SerializationFeature.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $builder->defineSingleton(MessageSerializerInterface::class, $serializerFactory);
43 43
         $builder->defineSingleton(
44 44
             MessageDeserializerResolver::class,
45
-            function () use ($builder) {
45
+            function() use ($builder) {
46 46
                 $serializer = $builder->build(MessageSerializerInterface::class);
47 47
                 return new MessageDeserializerResolver([$serializer], get_class($serializer));
48 48
             }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $pipelineModifications->registerStep(
53 53
             'DeserializeLogicalMessageConnector',
54 54
             DeserializeLogicalMessageConnector::class,
55
-            function () use ($builder) {
55
+            function() use ($builder) {
56 56
                 return new DeserializeLogicalMessageConnector(
57 57
                     $builder->build(MessageDeserializerResolver::class),
58 58
                     $builder->build(IncomingLogicalMessageFactory::class),
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $pipelineModifications->registerStep(
64 64
             'SerializeMessageConnector',
65 65
             SerializeMessageConnector::class,
66
-            function () use ($builder) {
66
+            function() use ($builder) {
67 67
                 return new SerializeMessageConnector(
68 68
                     $builder->build(MessageSerializerInterface::class),
69 69
                     $builder->build(OutgoingContextFactory::class)
Please login to merge, or discard this patch.
src/MessageMutation/OutgoingMessageMutationFeature.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $pipelineModifications->registerStep(
37 37
             'OutgoingLogicalMessageMutation',
38 38
             OutgoingLogicalMessageMutationPipelineStep::class,
39
-            function () use ($builder) {
39
+            function() use ($builder) {
40 40
                 return new OutgoingLogicalMessageMutationPipelineStep($builder->build(MessageMutatorRegistry::class));
41 41
             }
42 42
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $pipelineModifications->registerStep(
45 45
             'OutgoingPhysicalMessageMutation',
46 46
             OutgoingPhysicalMessageMutationPipelineStep::class,
47
-            function () use ($builder) {
47
+            function() use ($builder) {
48 48
                 return new OutgoingPhysicalMessageMutationPipelineStep($builder->build(MessageMutatorRegistry::class));
49 49
             }
50 50
         );
Please login to merge, or discard this patch.
src/ObjectBuilder/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
 
219 219
         $factory = $this->values[$id];
220 220
 
221
-        $extended = function ($c) use ($callable, $factory) {
221
+        $extended = function($c) use ($callable, $factory) {
222 222
             return $callable($factory($c), $c);
223 223
         };
224 224
 
Please login to merge, or discard this patch.
src/UuidGeneration/Comb/CombUuidGenerationDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function formalize(Settings $settings)
30 30
     {
31
-        return function () {
31
+        return function() {
32 32
             return new TimestampFirstCombGenerator();
33 33
         };
34 34
     }
Please login to merge, or discard this patch.
src/EndpointConfigurator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -501,21 +501,21 @@  discard block
 block discarded – undo
501 501
             $c[OutgoingOptionsFactory::class]
502 502
         );
503 503
 
504
-        $c[IncomingContextFactory::class] = function ($c) {
504
+        $c[IncomingContextFactory::class] = function($c) {
505 505
             return new IncomingContextFactory($c[BusOperations::class], $c[OutgoingOptionsFactory::class]);
506 506
         };
507
-        $c[OutgoingContextFactory::class] = function () {
507
+        $c[OutgoingContextFactory::class] = function() {
508 508
             return new OutgoingContextFactory();
509 509
         };
510 510
 
511
-        $c[ClockInterface::class] = function () {
511
+        $c[ClockInterface::class] = function() {
512 512
             return new SystemClock();
513 513
         };
514
-        $c[DateTimeConverter::class] = function () {
514
+        $c[DateTimeConverter::class] = function() {
515 515
             return new DateTimeConverter();
516 516
         };
517 517
 
518
-        $c[PushPipe::class] = function ($c) {
518
+        $c[PushPipe::class] = function($c) {
519 519
             /** @var PipelineFactory $pipelineFactory */
520 520
             $pipelineFactory = $c[PipelineFactory::class];
521 521
             return new PushPipe(
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
                 )
527 527
             );
528 528
         };
529
-        $c[PushSettings::class] = function () {
529
+        $c[PushSettings::class] = function() {
530 530
             $errorQueue = $this->settings->tryGet(KnownSettingsEnum::ERROR_QUEUE);
531 531
             if (!$errorQueue) {
532 532
                 throw new UnexpectedValueException(
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
                 $this->settings->tryGet(KnownSettingsEnum::PURGE_ON_STARTUP) ?: false
540 540
             );
541 541
         };
542
-        $c[TransportReceiver::class] = function ($c) {
542
+        $c[TransportReceiver::class] = function($c) {
543 543
             return new TransportReceiver(
544 544
                 $c[MessagePusherInterface::class],
545 545
                 $c[PushSettings::class],
Please login to merge, or discard this patch.
src/Serialization/Json/JsonSerializationDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function formalize(Settings $settings)
30 30
     {
31
-        return function () {
31
+        return function() {
32 32
             return new TimestampFirstCombGenerator();
33 33
         };
34 34
     }
Please login to merge, or discard this patch.