@@ -17,7 +17,7 @@ |
||
| 17 | 17 | class DebitTransactionHandler implements DebitTransactionHandlerInterface |
| 18 | 18 | { |
| 19 | 19 | public const ERROR_MESSAGE_DEBIT_TRANSACTION_NOT_SUPPORTED = |
| 20 | - 'Attempt to call debit transaction on payment method \'%s\' ' . |
|
| 20 | + 'Attempt to call debit transaction on payment method \'%s\' '. |
|
| 21 | 21 | 'that does not support it'; |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | class ExternalResponseTransactionHandler implements ExternalResponseTransactionHandlerInterface |
| 20 | 20 | { |
| 21 | 21 | public const ERROR_MESSAGE_EXTERNAL_RESPONSE_TRANSACTION_NOT_SUPPORTED = |
| 22 | - 'Attempt to call external response transaction on payment method \'%s\' ' . |
|
| 22 | + 'Attempt to call external response transaction on payment method \'%s\' '. |
|
| 23 | 23 | 'that does not support it'; |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class ReservationTransactionHandler implements ReservationTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_RESERVATION_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call reservation transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call reservation transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class InitializeTransactionHandler implements InitializeTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_INITIALIZE_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call initialize transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call initialize transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class FinalizeTransactionHandler implements FinalizeTransactionHandlerInterface |
| 17 | 17 | { |
| 18 | 18 | public const ERROR_MESSAGE_FINALIZE_TRANSACTION_NOT_SUPPORTED = |
| 19 | - 'Attempt to call finalize transaction on payment method \'%s\' ' . |
|
| 19 | + 'Attempt to call finalize transaction on payment method \'%s\' '. |
|
| 20 | 20 | 'that does not support it'; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -61,13 +61,13 @@ |
||
| 61 | 61 | ->setAmortisationText($responseAsArray[static::EASYCREDIT_AMORTISATION_TEXT]) |
| 62 | 62 | ->setPreContractionInformationUrl($responseAsArray[static::EASYCREDIT_PRECONTRACT_INFORMATION_URL]) |
| 63 | 63 | ->setAccruingInterest( |
| 64 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST]) |
|
| 64 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_ACCRUING_INTEREST]) |
|
| 65 | 65 | ) |
| 66 | 66 | ->setTotalAmount( |
| 67 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT]) |
|
| 67 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_AMOUNT]) |
|
| 68 | 68 | ) |
| 69 | 69 | ->setTotalOrderAmount( |
| 70 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT]) |
|
| 70 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray[static::EASYCREDIT_TOTAL_ORDER_AMOUNT]) |
|
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | 73 | $quoteTransfer->setPayment($paymentTransfer); |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | $heidelpayRequestTransfer->setRiskInformation( |
| 91 | 91 | (new HeidelpayRiskInformationTransfer()) |
| 92 | - ->setIsCustomerGuest((bool)$quoteTransfer->getCustomer()->getIsGuest()) |
|
| 92 | + ->setIsCustomerGuest((bool) $quoteTransfer->getCustomer()->getIsGuest()) |
|
| 93 | 93 | ->setCustomerSince($customerRegistrationDate) |
| 94 | 94 | ->setCustomerId($quoteTransfer->getCustomer()->getIdCustomer()) |
| 95 | 95 | ); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, SaveOrderTransfer $saveOrderTransfer): void |
| 50 | 50 | { |
| 51 | - $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer, $saveOrderTransfer) { |
|
| 51 | + $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer, $saveOrderTransfer) { |
|
| 52 | 52 | $this->executeSavePaymentForOrderAndItemsTransaction($quoteTransfer, $saveOrderTransfer); |
| 53 | 53 | }); |
| 54 | 54 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | protected function addEasyCreditFee(QuoteTransfer $quoteTransfer, SpyPaymentHeidelpay $paymentEntity): SpyPaymentHeidelpay |
| 168 | 168 | { |
| 169 | 169 | $paymentEntity->setEasyCreditFee( |
| 170 | - (int)$quoteTransfer->getPayment()->getHeidelpayEasyCredit()->getAccruingInterest() |
|
| 170 | + (int) $quoteTransfer->getPayment()->getHeidelpayEasyCredit()->getAccruingInterest() |
|
| 171 | 171 | ); |
| 172 | 172 | |
| 173 | 173 | return $paymentEntity; |
@@ -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 | /** |