Passed
Push — bugfix/supesc-213-is-capture-a... ( b2b98a )
by Roman
08:15
created
src/SprykerEco/Zed/Heidelpay/HeidelpayDependencyProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function addSalesFacade(Container $container): Container
70 70
     {
71
-        $container->set(static::FACADE_SALES, function (Container $container) {
71
+        $container->set(static::FACADE_SALES, function(Container $container) {
72 72
             return new HeidelpayToSalesFacadeBridge($container->getLocator()->sales()->facade());
73 73
         });
74 74
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function addCurrencyFacade(Container $container): Container
84 84
     {
85
-        $container->set(static::FACADE_CURRENCY, function (Container $container) {
85
+        $container->set(static::FACADE_CURRENCY, function(Container $container) {
86 86
             return new HeidelpayToCurrencyFacadeBridge($container->getLocator()->currency()->facade());
87 87
         });
88 88
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     protected function addMoneyFacade(Container $container): Container
98 98
     {
99
-        $container->set(static::FACADE_MONEY, function (Container $container) {
99
+        $container->set(static::FACADE_MONEY, function(Container $container) {
100 100
             return new HeidelpayToMoneyFacadeBridge($container->getLocator()->money()->facade());
101 101
         });
102 102
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addSalesQueryContainer(Container $container): Container
112 112
     {
113
-        $container->set(static::QUERY_CONTAINER_SALES, function (Container $container) {
113
+        $container->set(static::QUERY_CONTAINER_SALES, function(Container $container) {
114 114
             return new HeidelpayToSalesQueryContainerBridge($container->getLocator()->sales()->queryContainer());
115 115
         });
116 116
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addUtilEncodingService(Container $container): Container
126 126
     {
127
-        $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) {
127
+        $container->set(static::SERVICE_UTIL_ENCODING, function(Container $container) {
128 128
             return new HeidelpayToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service());
129 129
         });
130 130
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     protected function addMoneyPlugin(Container $container): Container
140 140
     {
141
-        $container->set(static::PLUGIN_MONEY, function () {
141
+        $container->set(static::PLUGIN_MONEY, function() {
142 142
             return new MoneyPlugin();
143 143
         });
144 144
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function addHeidelpayNotificationExpanderPlugins(Container $container): Container
154 154
     {
155
-        $container->set(static::PLUGINS_HEIDELPAY_NOTIFICATION_EXPANDER, function () {
155
+        $container->set(static::PLUGINS_HEIDELPAY_NOTIFICATION_EXPANDER, function() {
156 156
             return $this->getHeidelpayNotificationExpanderPlugins();
157 157
         });
158 158
 
Please login to merge, or discard this patch.
Heidelpay/Business/Processor/Notification/Expander/NotificationExpander.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,6 +236,6 @@
 block discarded – undo
236 236
      */
237 237
     protected function convertAmountToInt(string $amount): int
238 238
     {
239
-        return $this->moneyPlugin->convertDecimalToInteger((float)$amount);
239
+        return $this->moneyPlugin->convertDecimalToInteger((float) $amount);
240 240
     }
241 241
 }
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Form/InvoiceSecuredB2cSubForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getTemplatePath(): string
64 64
     {
65
-        return HeidelpayConfig::PROVIDER_NAME . DIRECTORY_SEPARATOR . static::PAYMENT_METHOD_TEMPLATE_PATH;
65
+        return HeidelpayConfig::PROVIDER_NAME.DIRECTORY_SEPARATOR.static::PAYMENT_METHOD_TEMPLATE_PATH;
66 66
     }
67 67
 
68 68
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     protected function createBirthdayConstraint(): Constraint
133 133
     {
134 134
         return new Callback([
135
-            'callback' => function ($date, ExecutionContextInterface $context) {
135
+            'callback' => function($date, ExecutionContextInterface $context) {
136 136
                 $inputDate = new DateTime($date);
137 137
                 $minBirthDate = new DateTime(static::MIN_BIRTHDAY_DATE_STRING);
138 138
                 if ($inputDate > $minBirthDate) {
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Heidelpay/Controller/DirectDebitController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
      */
222 222
     protected function streamRedirectResponse(string $redirectUrl): Response
223 223
     {
224
-        $callback = function () use ($redirectUrl) {
224
+        $callback = function() use ($redirectUrl) {
225 225
             echo $redirectUrl;
226 226
         };
227 227
 
Please login to merge, or discard this patch.
Business/Payment/DirectDebit/Registration/DirectDebitRegistrationWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         HeidelpayDirectDebitRegistrationTransfer $directDebitRegistrationTransfer
49 49
     ): HeidelpayDirectDebitRegistrationTransfer {
50 50
         return $this->getTransactionHandler()->handleTransaction(
51
-            function () use ($directDebitRegistrationTransfer) {
51
+            function() use ($directDebitRegistrationTransfer) {
52 52
                 return $this->savePaymentHeidelpayDirectDebitRegistrationEntity($directDebitRegistrationTransfer);
53 53
             }
54 54
         );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function updateDirectDebitRegistration(QuoteTransfer $quoteTransfer): HeidelpayDirectDebitRegistrationTransfer
63 63
     {
64 64
         return $this->getTransactionHandler()->handleTransaction(
65
-            function () use ($quoteTransfer) {
65
+            function() use ($quoteTransfer) {
66 66
                 $directDebitRegistrationTransfer = $this->getDirectDebitRegistration($quoteTransfer);
67 67
 
68 68
                 if ($directDebitRegistrationTransfer->getIdDirectDebitRegistration() === null) {
Please login to merge, or discard this patch.
Yves/Heidelpay/Processor/HeidelpayDirectDebitRegistrationProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function getRegistrationId(Request $request): int
173 173
     {
174
-        return (int)$request->get(static::REQUEST_PARAM_REGISTRATION_ID);
174
+        return (int) $request->get(static::REQUEST_PARAM_REGISTRATION_ID);
175 175
     }
176 176
 
177 177
     /**
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function filterResponseParameters(array $responseArray): array
240 240
     {
241
-        return array_filter($responseArray, function ($key) {
241
+        return array_filter($responseArray, function($key) {
242 242
             return !preg_match(static::RESPONSE_PARAMETERS_FILTER_PATTERN, $key);
243 243
         }, ARRAY_FILTER_USE_KEY);
244 244
     }
Please login to merge, or discard this patch.
SprykerEco/Zed/Heidelpay/Business/Adapter/Mapper/ResponseFromHeidelpay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $responseTransfer
61 61
             ->setIsPending($apiResponse->isPending())
62 62
             ->setIsSuccess($apiResponse->isSuccess())
63
-            ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId())
63
+            ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId())
64 64
             ->setIsError($apiResponse->isError())
65 65
             ->setProcessingCode($apiResponse->getProcessing()->code)
66 66
             ->setIdTransactionUnique($apiResponse->getIdentification()->getUniqueId())
Please login to merge, or discard this patch.
Payment/Transaction/Handler/DebitOnRegistrationTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class DebitOnRegistrationTransactionHandler implements DebitOnRegistrationTransactionHandlerInterface
17 17
 {
18 18
     public const ERROR_MESSAGE_DEBIT_ON_REGISTRATION_TRANSACTION_NOT_SUPPORTED =
19
-        'Attempt to call debit on registration transaction on payment method \'%s\' ' .
19
+        'Attempt to call debit on registration transaction on payment method \'%s\' '.
20 20
         'that does not support it';
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Heidelpay/Business/Payment/Transaction/Handler/RefundTransactionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class RefundTransactionHandler implements RefundTransactionHandlerInterface
17 17
 {
18 18
     public const ERROR_MESSAGE_REFUND_TRANSACTION_NOT_SUPPORTED =
19
-        'Attempt to call refund transaction on payment method \'%s\' ' .
19
+        'Attempt to call refund transaction on payment method \'%s\' '.
20 20
         'that does not support it';
21 21
 
22 22
     /**
Please login to merge, or discard this patch.