@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -221,7 +221,7 @@ |
||
| 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 | |
@@ -48,7 +48,7 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -171,7 +171,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -60,7 +60,7 @@ |
||
| 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()) |
@@ -16,7 +16,7 @@ |
||
| 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 | /** |
@@ -16,7 +16,7 @@ |
||
| 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 | /** |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | */ |
| 107 | 107 | public function filterResponseParameters(array $responseArray): array |
| 108 | 108 | { |
| 109 | - return array_filter($responseArray, function ($key) { |
|
| 109 | + return array_filter($responseArray, function($key) { |
|
| 110 | 110 | return !preg_match(static::RESPONSE_PARAMETERS_FILTER_PATTERN, $key); |
| 111 | 111 | }, ARRAY_FILTER_USE_KEY); |
| 112 | 112 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function getTemplatePath(): string |
| 60 | 60 | { |
| 61 | - return HeidelpayConfig::PROVIDER_NAME . DIRECTORY_SEPARATOR . static::PAYMENT_METHOD_TEMPLATE_PATH; |
|
| 61 | + return HeidelpayConfig::PROVIDER_NAME.DIRECTORY_SEPARATOR.static::PAYMENT_METHOD_TEMPLATE_PATH; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |