Completed
Push — devel ( 79f56b...6dbcf6 )
by Alex
9s
created
src/Doctrine2PersistenceDefinition.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
         $this->supports(
26 26
             StorageType::OUTBOX(),
27
-            function (Settings $s) {
27
+            function(Settings $s) {
28 28
                 FeatureSettingsExtensions::enableFeatureByDefault(
29 29
                     Doctrine2OutboxPersistenceFeature::class,
30 30
                     $s
Please login to merge, or discard this patch.
src/Outbox/Doctrine2OutboxPersistenceFeature.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->dependsOn(OutboxFeature::class);
29 29
         $this->registerDefault(
30
-            function (Settings $settings) {
30
+            function(Settings $settings) {
31 31
                 $settings->setDefault(Doctrine2KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME, 'psb_outbox_messages');
32 32
                 $settings->setDefault(Doctrine2KnownSettingsEnum::OUTBOX_ENDPOINTS_TABLE_NAME, 'psb_outbox_endpoints');
33 33
             }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $builder->defineSingleton(
51 51
             OutboxPersister::class,
52
-            function () use ($builder, $settings) {
52
+            function() use ($builder, $settings) {
53 53
                 return new OutboxPersister(
54 54
                     $builder->build(Connection::class),
55 55
                     $settings->get(Doctrine2KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME),
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $builder->defineSingleton(
62 62
             OutboxStorageInterface::class,
63
-            function () use ($builder, $settings) {
63
+            function() use ($builder, $settings) {
64 64
                 return new Doctrine2OutboxStorage(
65 65
                     $builder->build(OutboxPersister::class),
66 66
                     new OutboxMessageConverter(),
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         );
71 71
 
72 72
         $this->registerStartupTask(
73
-            function () use ($builder, $settings) {
73
+            function() use ($builder, $settings) {
74 74
                 return new EndpointIdLoaderFeatureStartupTask(
75 75
                     $builder->build(OutboxPersister::class),
76 76
                     $settings,
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         );
81 81
 
82 82
         $this->registerStartupTask(
83
-            function () use ($builder, $settings) {
83
+            function() use ($builder, $settings) {
84 84
                 return new OutboxCleanerFeatureStartupTask(
85 85
                     $builder->build(OutboxPersister::class),
86 86
                     new \DateTime('now', new \DateTimeZone('UTC')),
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         );
91 91
 
92 92
         $this->registerInstallTask(
93
-            function () use ($builder, $settings) {
93
+            function() use ($builder, $settings) {
94 94
                 return new OutboxTablesCreatorFeatureInstallTask(
95 95
                     new SingleDatabaseSynchronizer($builder->build(Connection::class)),
96 96
                     new OutboxEndpointSchemaProvider(),
Please login to merge, or discard this patch.
src/Outbox/OutboxPersister.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $outboxRecord['is_dispatched'] = 0;
82 82
 
83 83
         $this->connection->transactional(
84
-            function (Connection $connection) use ($outboxRecord) {
84
+            function(Connection $connection) use ($outboxRecord) {
85 85
                 $connection->insert($this->messagesTableName, $outboxRecord);
86 86
             }
87 87
         );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $endpointId = 0;
201 201
         $this->connection->transactional(
202
-            function (Connection $connection) use ($endpointName, &$endpointId) {
202
+            function(Connection $connection) use ($endpointName, &$endpointId) {
203 203
                 $lookupHash = md5($endpointName);
204 204
                 $endpointRecord = $connection->executeQuery(
205 205
                     "SELECT * FROM {$this->endpointsTableName} WHERE lookup_hash = ?",
Please login to merge, or discard this patch.