Passed
Pull Request — master (#74)
by mark
13:30
created
src/SprykerEco/Yves/Payone/PayoneDependencyProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,23 +63,23 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function provideDependencies(Container $container): Container
65 65
     {
66
-        $container->set(static::CLIENT_PAYONE, function (Container $container) {
66
+        $container->set(static::CLIENT_PAYONE, function(Container $container) {
67 67
             return $container->getLocator()->payone()->client();
68 68
         });
69 69
 
70
-        $container->set(static::CLIENT_CUSTOMER, function (Container $container) {
70
+        $container->set(static::CLIENT_CUSTOMER, function(Container $container) {
71 71
             return new PayoneToCustomerBridge($container->getLocator()->customer()->client());
72 72
         });
73 73
 
74
-        $container->set(static::CLIENT_CART, function (Container $container) {
74
+        $container->set(static::CLIENT_CART, function(Container $container) {
75 75
             return new PayoneToCartBridge($container->getLocator()->cart()->client());
76 76
         });
77 77
 
78
-        $container->set(static::CLIENT_SHIPMENT, function (Container $container) {
78
+        $container->set(static::CLIENT_SHIPMENT, function(Container $container) {
79 79
             return new PayoneToShipmentBridge($container->getLocator()->shipment()->client());
80 80
         });
81 81
 
82
-        $container->set(static::CLIENT_CALCULATION, function (Container $container) {
82
+        $container->set(static::CLIENT_CALCULATION, function(Container $container) {
83 83
             return new PayoneToCalculationBridge($container->getLocator()->calculation()->client());
84 84
         });
85 85
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     protected function addQuoteClient(Container $container): Container
98 98
     {
99
-        $container->set(static::CLIENT_QUOTE, function (Container $container) {
99
+        $container->set(static::CLIENT_QUOTE, function(Container $container) {
100 100
             return new PayoneToQuoteClientBridge($container->getLocator()->quote()->client());
101 101
         });
102 102
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addClientStore(Container $container): Container
112 112
     {
113
-        $container->set(static::CLIENT_STORE, function (Container $container) {
113
+        $container->set(static::CLIENT_STORE, function(Container $container) {
114 114
             return new PayoneToStoreClientBridge(
115 115
                 $container->getLocator()->store()->client(),
116 116
             );
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
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $response = $this->getClient()->updateStatus($statusUpdateTransfer)->getResponse();
67 67
 
68
-        $callback = function () use ($response): void {
68
+        $callback = function() use ($response): void {
69 69
             echo $response;
70 70
         };
71 71
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             return $this->viewResponse(['errormessage' => $response->getCustomerErrorMessage()]);
135 135
         }
136 136
 
137
-        $callback = function () use ($response): void {
137
+        $callback = function() use ($response): void {
138 138
             echo base64_decode($response->getRawResponse());
139 139
         };
140 140
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]);
166 166
         }
167 167
 
168
-        $callback = function () use ($response): void {
168
+        $callback = function() use ($response): void {
169 169
             echo base64_decode($response->getRawResponse());
170 170
         };
171 171
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]);
197 197
         }
198 198
 
199
-        $callback = function () use ($response): void {
199
+        $callback = function() use ($response): void {
200 200
             echo base64_decode($response->getRawResponse());
201 201
         };
202 202
 
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
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
                 'required' => true,
140 140
                 'choices' => $choices,
141 141
                 'data' => '',
142
-                'choice_attr' => function ($val) {
142
+                'choice_attr' => function($val) {
143 143
                     return $val === '' ? ['disabled' => 'disabled', 'selected' => 'selected'] : ['disabled' => 'disabled'];
144 144
                 },
145 145
             ],
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
@@ -34,19 +34,19 @@
 block discarded – undo
34 34
     public function __construct()
35 35
     {
36 36
         $this->subFormsCreators = [
37
-            PayoneConstants::COUNTRY_AT => function () {
37
+            PayoneConstants::COUNTRY_AT => function() {
38 38
                 return new AtSubFormsCreator();
39 39
             },
40
-            PayoneConstants::COUNTRY_NL => function () {
40
+            PayoneConstants::COUNTRY_NL => function() {
41 41
                 return new NlSubFormsCreator();
42 42
             },
43
-            PayoneConstants::COUNTRY_DE => function () {
43
+            PayoneConstants::COUNTRY_DE => function() {
44 44
                 return new DeSubFormsCreator();
45 45
             },
46
-            PayoneConstants::COUNTRY_CH => function () {
46
+            PayoneConstants::COUNTRY_CH => function() {
47 47
                 return new ChSubFormsCreator();
48 48
             },
49
-            static::DEFAULT_COUNTRY => function () {
49
+            static::DEFAULT_COUNTRY => function() {
50 50
                 return new DefaultSubFormsCreator();
51 51
             },
52 52
         ];
Please login to merge, or discard this patch.
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/Client/Payone/PayoneDependencyProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function addZedService(Container $container): Container
44 44
     {
45
-        $container->set(static::SERVICE_ZED, function (Container $container) {
45
+        $container->set(static::SERVICE_ZED, function(Container $container) {
46 46
             return $container->getLocator()->zedRequest()->client();
47 47
         });
48 48
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function addUtilEncodingService(Container $container): Container
58 58
     {
59
-        $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) {
59
+        $container->set(static::SERVICE_UTIL_ENCODING, function(Container $container) {
60 60
             return $container->getLocator()->utilEncoding()->service();
61 61
         });
62 62
 
Please login to merge, or discard this patch.