Passed
Pull Request — master (#84)
by Olha
06:07
created
src/SprykerEco/Zed/Payone/Business/Order/OrderManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         }
84 84
 
85 85
         $quoteTransfer->getPayment()->requirePayone();
86
-        $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer, $saveOrderTransfer): void {
86
+        $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer, $saveOrderTransfer): void {
87 87
             $paymentTransfer = $quoteTransfer->getPayment()->getPayone();
88 88
             $paymentTransfer->setFkSalesOrder($saveOrderTransfer->getIdSalesOrder());
89 89
             $paymentPayoneEntity = $this->savePayment($paymentTransfer);
Please login to merge, or discard this patch.
SprykerEco/Zed/Payone/Communication/Controller/TransactionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $this->triggerEventsOnSuccess($payoneTransactionStatusUpdateTransfer);
70 70
 
71
-        $callback = function () use ($payoneTransactionStatusUpdateTransfer): void {
71
+        $callback = function() use ($payoneTransactionStatusUpdateTransfer): void {
72 72
             echo $payoneTransactionStatusUpdateTransfer->getResponse();
73 73
         };
74 74
 
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Payone/Plugin/PluginCountryFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
     public function __construct()
31 31
     {
32 32
         $this->subFormsCreators = [
33
-            PayoneConstants::COUNTRY_AT => function () {
33
+            PayoneConstants::COUNTRY_AT => function() {
34 34
                 return new AtSubFormsCreator();
35 35
             },
36
-            PayoneConstants::COUNTRY_NL => function () {
36
+            PayoneConstants::COUNTRY_NL => function() {
37 37
                 return new NlSubFormsCreator();
38 38
             },
39
-            PayoneConstants::COUNTRY_DE => function () {
39
+            PayoneConstants::COUNTRY_DE => function() {
40 40
                 return new DeSubFormsCreator();
41 41
             },
42
-            PayoneConstants::COUNTRY_CH => function () {
42
+            PayoneConstants::COUNTRY_CH => function() {
43 43
                 return new ChSubFormsCreator();
44 44
             },
45
-            self::DEFAULT_COUNTRY => function () {
45
+            self::DEFAULT_COUNTRY => function() {
46 46
                 return new DefaultSubFormsCreator();
47 47
             },
48 48
         ];
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Payone/PayoneDependencyProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function provideDependencies(Container $container)
40 40
     {
41
-        $container->set(static::CLIENT_PAYONE, function (Container $container) {
41
+        $container->set(static::CLIENT_PAYONE, function(Container $container) {
42 42
             return $container->getLocator()->payone()->client();
43 43
         });
44 44
 
45
-        $container->set(static::CLIENT_CUSTOMER, function (Container $container) {
45
+        $container->set(static::CLIENT_CUSTOMER, function(Container $container) {
46 46
             return new PayoneToCustomerBridge($container->getLocator()->customer()->client());
47 47
         });
48 48
 
49
-        $container->set(static::CLIENT_CART, function (Container $container) {
49
+        $container->set(static::CLIENT_CART, function(Container $container) {
50 50
             return new PayoneToCartBridge($container->getLocator()->cart()->client());
51 51
         });
52 52
 
53
-        $container->set(static::CLIENT_SHIPMENT, function (Container $container) {
53
+        $container->set(static::CLIENT_SHIPMENT, function(Container $container) {
54 54
             return new PayoneToShipmentBridge($container->getLocator()->shipment()->client());
55 55
         });
56 56
 
57
-        $container->set(static::CLIENT_CALCULATION, function (Container $container) {
57
+        $container->set(static::CLIENT_CALCULATION, function(Container $container) {
58 58
             return new PayoneToCalculationBridge($container->getLocator()->calculation()->client());
59 59
         });
60 60
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected function addQuoteClient(Container $container): Container
73 73
     {
74
-        $container->set(static::CLIENT_QUOTE, function (Container $container) {
74
+        $container->set(static::CLIENT_QUOTE, function(Container $container) {
75 75
             return new PayoneToQuoteClientBridge($container->getLocator()->quote()->client());
76 76
         });
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function addClientStore(Container $container): Container
87 87
     {
88
-        $container->set(static::CLIENT_STORE, function (Container $container) {
88
+        $container->set(static::CLIENT_STORE, function(Container $container) {
89 89
             return new PayoneToStoreClientBridge(
90 90
                 $container->getLocator()->store()->client()
91 91
             );
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Payone/Controller/IndexController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $response = $this->getClient()->updateStatus($statusUpdateTransfer)->getResponse();
52 52
 
53
-        $callback = function () use ($response) {
53
+        $callback = function() use ($response) {
54 54
             echo $response;
55 55
         };
56 56
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             return $this->viewResponse(['errormessage' => $response->getCustomerErrorMessage()]);
120 120
         }
121 121
 
122
-        $callback = function () use ($response) {
122
+        $callback = function() use ($response) {
123 123
             echo base64_decode($response->getRawResponse());
124 124
         };
125 125
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]);
151 151
         }
152 152
 
153
-        $callback = function () use ($response) {
153
+        $callback = function() use ($response) {
154 154
             echo base64_decode($response->getRawResponse());
155 155
         };
156 156
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]);
182 182
         }
183 183
 
184
-        $callback = function () use ($response) {
184
+        $callback = function() use ($response) {
185 185
             echo base64_decode($response->getRawResponse());
186 186
         };
187 187
 
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Payone/Form/KlarnaSubForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
                 'required' => true,
109 109
                 'choices' => $choices,
110 110
                 'data' => '',
111
-                'choice_attr' => function ($val) {
111
+                'choice_attr' => function($val) {
112 112
                     return $val === '' ? ['disabled' => 'disabled', 'selected' => 'selected'] : ['disabled' => 'disabled'];
113 113
                 },
114 114
             ]
Please login to merge, or discard this patch.
Yves/Payone/Form/DataProvider/AbstractOnlineTransferDataProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
     protected function getOnlineBankTransferTypes()
52 52
     {
53 53
         return [
54
-            'Sofortbanking' => 'PNT',           // (DE, AT, CH, NL)
55
-            'giropay' => 'GPY',                 // (DE)
56
-            'eps – online transfer' => 'EPS',   // (AT)
57
-            'PostFinance E-Finance' => 'PFF',   // (CH)
58
-            'PostFinance Card' => 'PFC',        // (CH)
59
-            'iDEAL' => 'IDL',                   // (NL)
60
-            'Przelewy24' => 'P24',              // (P24)
54
+            'Sofortbanking' => 'PNT', // (DE, AT, CH, NL)
55
+            'giropay' => 'GPY', // (DE)
56
+            'eps – online transfer' => 'EPS', // (AT)
57
+            'PostFinance E-Finance' => 'PFF', // (CH)
58
+            'PostFinance Card' => 'PFC', // (CH)
59
+            'iDEAL' => 'IDL', // (NL)
60
+            'Przelewy24' => 'P24', // (P24)
61 61
         ];
62 62
     }
63 63
 
Please login to merge, or discard this patch.
src/SprykerEco/Client/Payone/PayoneDependencyProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
      */
24 24
     public function provideServiceLayerDependencies(Container $container)
25 25
     {
26
-        $container->set(static::SERVICE_ZED, function (Container $container) {
26
+        $container->set(static::SERVICE_ZED, function(Container $container) {
27 27
             return $container->getLocator()->zedRequest()->client();
28 28
         });
29 29
 
30
-        $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) {
30
+        $container->set(static::SERVICE_UTIL_ENCODING, function(Container $container) {
31 31
             return $container->getLocator()->utilEncoding()->service();
32 32
         });
33 33
 
Please login to merge, or discard this patch.
src/SprykerEco/Shared/Payone/PayoneApiConstants.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -152,16 +152,16 @@
 block discarded – undo
152 152
 
153 153
     // FAILED CAUSE
154 154
 
155
-    public const FAILED_CAUSE_INSUFFICIENT_FUNDS = 'soc';           // soc Insufficient funds
156
-    public const FAILED_CAUSE_ACCOUNT_EXPIRED = 'cka';              // cka Account expired
157
-    public const FAILED_CAUSE_UNKNOWN_ACCOUNT_NAME = 'uan';         // uan Account no. / name not idential, incorrect or savings account
158
-    public const FAILED_CAUSE_NO_DIRECT_DEBIT = 'ndd';              // ndd No direct debit
159
-    public const FAILED_CAUSE_RECALL = 'rcl';                       // rcl Recall
160
-    public const FAILED_CAUSE_OBJECTION = 'obj';                    // obj Objection
161
-    public const FAILED_CAUSE_RETURNS = 'ret';                      // ret Return
162
-    public const FAILED_CAUSE_DEBIT_NOT_COLLECTABLE = 'nelv';       // nelv Debit cannot be collected
163
-    public const FAILED_CAUSE_CREDITCARD_CHARGEBACK = 'cb';         // cb Credit card chargeback
164
-    public const FAILED_CAUSE_CREDITCARD_NOT_COLLECTABLE = 'ncc';   // ncc Credit card cannot be collected
155
+    public const FAILED_CAUSE_INSUFFICIENT_FUNDS = 'soc'; // soc Insufficient funds
156
+    public const FAILED_CAUSE_ACCOUNT_EXPIRED = 'cka'; // cka Account expired
157
+    public const FAILED_CAUSE_UNKNOWN_ACCOUNT_NAME = 'uan'; // uan Account no. / name not idential, incorrect or savings account
158
+    public const FAILED_CAUSE_NO_DIRECT_DEBIT = 'ndd'; // ndd No direct debit
159
+    public const FAILED_CAUSE_RECALL = 'rcl'; // rcl Recall
160
+    public const FAILED_CAUSE_OBJECTION = 'obj'; // obj Objection
161
+    public const FAILED_CAUSE_RETURNS = 'ret'; // ret Return
162
+    public const FAILED_CAUSE_DEBIT_NOT_COLLECTABLE = 'nelv'; // nelv Debit cannot be collected
163
+    public const FAILED_CAUSE_CREDITCARD_CHARGEBACK = 'cb'; // cb Credit card chargeback
164
+    public const FAILED_CAUSE_CREDITCARD_NOT_COLLECTABLE = 'ncc'; // ncc Credit card cannot be collected
165 165
 
166 166
     // INVOICING ITEM TYPE
167 167
 
Please login to merge, or discard this patch.