Completed
Push — dev ( f11eba...1182bc )
by Andrey
11s
created
Business/Payment/Handler/Ipn/IpnAbstractTransferRequestHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $repeatable = 2;
72 72
         while ($repeatable-- > 0) {
73 73
             try {
74
-                $this->handleDatabaseTransaction(function () use ($paymentRequestTransfer) {
74
+                $this->handleDatabaseTransaction(function() use ($paymentRequestTransfer) {
75 75
                     if ($this->config->getEnableIsolateLevelRead()) {
76 76
                         Propel::getConnection()->exec('SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;');
77 77
                     }
Please login to merge, or discard this patch.
SprykerEco/Zed/AmazonPay/Business/Payment/Handler/Ipn/IpnRequestFactory.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -94,16 +94,16 @@  discard block
 block discarded – undo
94 94
     protected function getNotificationTypeToHandlerMap()
95 95
     {
96 96
         return [
97
-            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_AUTHORIZE => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
97
+            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_AUTHORIZE => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
98 98
                 return $this->getIpnPaymentAuthorizeHandler($ipnRequest);
99 99
             },
100
-            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_CAPTURE => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
100
+            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_CAPTURE => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
101 101
                 return $this->getIpnPaymentCaptureHandler($ipnRequest);
102 102
             },
103
-            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_REFUND => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
103
+            AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_REFUND => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
104 104
                 return $this->getIpnPaymentRefundHandler($ipnRequest);
105 105
             },
106
-            AmazonPayConfig::IPN_REQUEST_TYPE_ORDER_REFERENCE_NOTIFICATION => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
106
+            AmazonPayConfig::IPN_REQUEST_TYPE_ORDER_REFERENCE_NOTIFICATION => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) {
107 107
                 return $this->getIpnOrderReferenceHandler($ipnRequest);
108 108
             },
109 109
         ];
@@ -115,25 +115,25 @@  discard block
 block discarded – undo
115 115
     protected function getAuthorizeHandlerMap()
116 116
     {
117 117
         return [
118
-            AmazonPayConfig::STATUS_TRANSACTION_TIMED_OUT => function () {
118
+            AmazonPayConfig::STATUS_TRANSACTION_TIMED_OUT => function() {
119 119
                 return $this->createIpnPaymentAuthorizeSuspendedHandler();
120 120
             },
121
-            AmazonPayConfig::STATUS_SUSPENDED => function () {
121
+            AmazonPayConfig::STATUS_SUSPENDED => function() {
122 122
                 return $this->createIpnPaymentAuthorizeSuspendedHandler();
123 123
             },
124
-            AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function () {
124
+            AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function() {
125 125
                 return $this->createIpnPaymentAuthorizeSuspendedHandler();
126 126
             },
127
-            AmazonPayConfig::STATUS_DECLINED => function () {
127
+            AmazonPayConfig::STATUS_DECLINED => function() {
128 128
                 return $this->createIpnPaymentAuthorizeDeclineHandler();
129 129
             },
130
-            AmazonPayConfig::STATUS_OPEN => function () {
130
+            AmazonPayConfig::STATUS_OPEN => function() {
131 131
                 return $this->createIpnPaymentAuthorizeOpenHandler();
132 132
             },
133
-            AmazonPayConfig::STATUS_CLOSED => function () {
133
+            AmazonPayConfig::STATUS_CLOSED => function() {
134 134
                 return $this->createIpnPaymentAuthorizeClosedHandler();
135 135
             },
136
-            AmazonPayConfig::STATUS_EXPIRED => function () {
136
+            AmazonPayConfig::STATUS_EXPIRED => function() {
137 137
                 return $this->createIpnPaymentAuthorizeClosedHandler();
138 138
             },
139 139
         ];
@@ -209,13 +209,13 @@  discard block
 block discarded – undo
209 209
     protected function getCaptureHandlerMap()
210 210
     {
211 211
         return [
212
-            AmazonPayConfig::STATUS_DECLINED => function () {
212
+            AmazonPayConfig::STATUS_DECLINED => function() {
213 213
                 return $this->createIpnPaymentCaptureDeclineHandler();
214 214
             },
215
-            AmazonPayConfig::STATUS_COMPLETED => function () {
215
+            AmazonPayConfig::STATUS_COMPLETED => function() {
216 216
                 return $this->createIpnPaymentCaptureCompletedHandler();
217 217
             },
218
-            AmazonPayConfig::STATUS_CLOSED => function () {
218
+            AmazonPayConfig::STATUS_CLOSED => function() {
219 219
                 return $this->createIpnEmptyHandler();
220 220
             },
221 221
         ];
@@ -273,10 +273,10 @@  discard block
 block discarded – undo
273 273
     protected function getRefundHandlerMap()
274 274
     {
275 275
         return [
276
-            AmazonPayConfig::STATUS_DECLINED => function () {
276
+            AmazonPayConfig::STATUS_DECLINED => function() {
277 277
                 return $this->createIpnPaymentRefundDeclineHandler();
278 278
             },
279
-            AmazonPayConfig::STATUS_COMPLETED => function () {
279
+            AmazonPayConfig::STATUS_COMPLETED => function() {
280 280
                 return $this->createIpnPaymentRefundCompletedHandler();
281 281
             },
282 282
         ];
@@ -327,25 +327,25 @@  discard block
 block discarded – undo
327 327
     protected function getOrderReferenceHandlerMap()
328 328
     {
329 329
         return [
330
-            AmazonPayConfig::STATUS_OPEN => function () {
330
+            AmazonPayConfig::STATUS_OPEN => function() {
331 331
                 return $this->createIpnOrderReferenceOpenHandler();
332 332
             },
333
-            AmazonPayConfig::STATUS_AMAZON_CLOSED => function () {
333
+            AmazonPayConfig::STATUS_AMAZON_CLOSED => function() {
334 334
                 return $this->createIpnOrderReferenceClosedHandler();
335 335
             },
336
-            AmazonPayConfig::STATUS_EXPIRED => function () {
336
+            AmazonPayConfig::STATUS_EXPIRED => function() {
337 337
                 return $this->createIpnOrderReferenceClosedHandler();
338 338
             },
339
-            AmazonPayConfig::STATUS_CLOSED => function () {
339
+            AmazonPayConfig::STATUS_CLOSED => function() {
340 340
                 return $this->createIpnEmptyHandler();
341 341
             },
342
-            AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function () {
342
+            AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function() {
343 343
                 return $this->createIpnOrderReferenceSuspendedHandler();
344 344
             },
345
-            AmazonPayConfig::STATUS_SUSPENDED => function () {
345
+            AmazonPayConfig::STATUS_SUSPENDED => function() {
346 346
                 return $this->createIpnOrderReferenceSuspendedHandler();
347 347
             },
348
-            AmazonPayConfig::STATUS_CANCELLED => function () {
348
+            AmazonPayConfig::STATUS_CANCELLED => function() {
349 349
                 return $this->createIpnOrderReferenceCancelledHandler();
350 350
             },
351 351
         ];
Please login to merge, or discard this patch.