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/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.