Passed
Pull Request — master (#83)
by
unknown
07:32
created
src/SprykerEco/Zed/Payone/PayoneDependencyProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     protected function addOmsFacade(Container $container): Container
98 98
     {
99
-        $container->set(static::FACADE_OMS, function (Container $container) {
99
+        $container->set(static::FACADE_OMS, function(Container $container) {
100 100
             return new PayoneToOmsBridge($container->getLocator()->oms()->facade());
101 101
         });
102 102
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addRefundFacade(Container $container): Container
112 112
     {
113
-        $container->set(static::FACADE_REFUND, function (Container $container) {
113
+        $container->set(static::FACADE_REFUND, function(Container $container) {
114 114
             return new PayoneToRefundBridge($container->getLocator()->refund()->facade());
115 115
         });
116 116
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addSalesFacade(Container $container): Container
126 126
     {
127
-        $container->set(static::FACADE_SALES, function (Container $container) {
127
+        $container->set(static::FACADE_SALES, function(Container $container) {
128 128
             return new PayoneToSalesBridge($container->getLocator()->sales()->facade());
129 129
         });
130 130
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     protected function addCalculationFacade(Container $container): Container
140 140
     {
141
-        $container->set(static::FACADE_CALCULATION, function (Container $container) {
141
+        $container->set(static::FACADE_CALCULATION, function(Container $container) {
142 142
             return new PayoneToCalculationBridge($container->getLocator()->calculation()->facade());
143 143
         });
144 144
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function addGlossaryFacade(Container $container): Container
154 154
     {
155
-        $container->set(static::FACADE_GLOSSARY, function (Container $container) {
155
+        $container->set(static::FACADE_GLOSSARY, function(Container $container) {
156 156
             return new PayoneToGlossaryFacadeBridge($container->getLocator()->glossary()->facade());
157 157
         });
158 158
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     protected function addStore(Container $container): Container
168 168
     {
169
-        $container->set(static::STORE_CONFIG, function () {
169
+        $container->set(static::STORE_CONFIG, function() {
170 170
             return Store::getInstance();
171 171
         });
172 172
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     protected function addRequestStack(Container $container): Container
182 182
     {
183
-        $container->set(static::SERVICE_REQUEST_STACK, function (Container $container) {
183
+        $container->set(static::SERVICE_REQUEST_STACK, function(Container $container) {
184 184
             return $container->getApplicationService(static::SERVICE_REQUEST_STACK);
185 185
         });
186 186
 
Please login to merge, or discard this patch.
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.