Completed
Push — devel ( fb9d8f...752fb6 )
by Alex
7s
created
src/Doctrine1PersistenceDefinition.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
                     Doctrine1OutboxPersistenceFeature::class,
30 30
                     $s
Please login to merge, or discard this patch.
src/Outbox/Doctrine1OutboxPersistenceFeature.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $this->dependsOn(OutboxFeature::class);
28 28
         $this->registerDefault(
29
-            function (Settings $settings) {
29
+            function(Settings $settings) {
30 30
                 $settings->setDefault(Doctrine1KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME, 'psb_outbox_messages');
31 31
                 $settings->setDefault(Doctrine1KnownSettingsEnum::OUTBOX_ENDPOINTS_TABLE_NAME, 'psb_outbox_endpoints');
32 32
             }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $builder->defineSingleton(
50 50
             OutboxPersister::class,
51
-            function () use ($builder, $settings) {
51
+            function() use ($builder, $settings) {
52 52
                 return new OutboxPersister(
53 53
                     $builder->build(LogicalConnection::class),
54 54
                     $settings->get(Doctrine1KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME),
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $builder->defineSingleton(
61 61
             OutboxStorageInterface::class,
62
-            function () use ($builder, $settings) {
62
+            function() use ($builder, $settings) {
63 63
                 return new Doctrine1OutboxStorage(
64 64
                     $builder->build(OutboxPersister::class),
65 65
                     new OutboxMessageConverter(),
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         );
70 70
 
71 71
         $this->registerStartupTask(
72
-            function () use ($builder, $settings) {
72
+            function() use ($builder, $settings) {
73 73
                 return new EndpointIdLoaderFeatureStartupTask(
74 74
                     $builder->build(OutboxPersister::class),
75 75
                     $settings,
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         );
80 80
 
81 81
         $this->registerStartupTask(
82
-            function () use ($builder, $settings) {
82
+            function() use ($builder, $settings) {
83 83
                 return new OutboxCleanerFeatureStartupTask(
84 84
                     $builder->build(OutboxPersister::class),
85 85
                     new \DateTime('now', new \DateTimeZone('UTC')),
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         );
90 90
 
91 91
         $this->registerInstallTask(
92
-            function () use ($builder, $settings) {
92
+            function() use ($builder, $settings) {
93 93
                 return new OutboxTablesCreatorFeatureInstallTask(
94 94
                     $builder->build(LogicalConnection::class),
95 95
                     new OutboxEndpointSchemaProvider(),
Please login to merge, or discard this patch.
src/Outbox/OutboxPersister.php 1 patch
Spacing   +3 added lines, -3 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 (LogicalConnection $connection) use ($outboxRecord) {
84
+            function(LogicalConnection $connection) use ($outboxRecord) {
85 85
                 $connection->insert($this->messagesTableName, $outboxRecord);
86 86
             }
87 87
         );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     public function rollBack()
151 151
     {
152 152
         try {
153
-            $this->connection->rollBack();;
153
+            $this->connection->rollBack(); ;
154 154
         } catch (\Exception $e) {
155 155
             throw $this->connection->reconnectIfNeeded($e);
156 156
         }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     {
182 182
         $endpointId = 0;
183 183
         $this->connection->transactional(
184
-            function (LogicalConnection $connection) use ($endpointName, &$endpointId) {
184
+            function(LogicalConnection $connection) use ($endpointName, &$endpointId) {
185 185
                 $lookupHash = md5($endpointName);
186 186
                 $endpointRecord = $connection->executeQuery(
187 187
                     "SELECT * FROM {$this->endpointsTableName} WHERE lookup_hash = ?",
Please login to merge, or discard this patch.