@@ -17,7 +17,7 @@ |
||
| 17 | 17 | class AuthorizeTransactionHandler implements AuthorizeTransactionHandlerInterface |
| 18 | 18 | { |
| 19 | 19 | public const ERROR_MESSAGE_AUTHORIZE_TRANSACTION_NOT_SUPPORTED = |
| 20 | - 'Attempt to call authorize transaction on payment method \'%s\' ' . |
|
| 20 | + 'Attempt to call authorize transaction on payment method \'%s\' '. |
|
| 21 | 21 | 'that does not support it'; |
| 22 | 22 | /** |
| 23 | 23 | * @var \SprykerEco\Zed\Heidelpay\Business\Payment\Transaction\AuthorizeTransactionInterface |
@@ -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 | /** |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, SaveOrderTransfer $saveOrderTransfer): void |
| 49 | 49 | { |
| 50 | - $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer, $saveOrderTransfer) { |
|
| 50 | + $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer, $saveOrderTransfer) { |
|
| 51 | 51 | $this->executeSavePaymentForOrderAndItemsTransaction($quoteTransfer, $saveOrderTransfer); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -100,8 +100,8 @@ |
||
| 100 | 100 | ->setAccountVerification($creditCardInfo->getAccountVerification()) |
| 101 | 101 | ->setAccountNumber($creditCardInfo->getAccountNumber()) |
| 102 | 102 | ->setAccountHolder($creditCardInfo->getAccountHolder()) |
| 103 | - ->setAccountExpiryYear((int)$creditCardInfo->getAccountExpiryYear()) |
|
| 104 | - ->setAccountExpiryMonth((int)$creditCardInfo->getAccountExpiryMonth()) |
|
| 103 | + ->setAccountExpiryYear((int) $creditCardInfo->getAccountExpiryYear()) |
|
| 104 | + ->setAccountExpiryMonth((int) $creditCardInfo->getAccountExpiryMonth()) |
|
| 105 | 105 | ->setAccountBrand($creditCardInfo->getAccountBrand()) |
| 106 | 106 | ->setRegistrationNumber($creditCardPayment->getRegistrationNumber()); |
| 107 | 107 | } |
@@ -61,6 +61,6 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function getTemplatePath(): string |
| 63 | 63 | { |
| 64 | - return static::PAYMENT_PROVIDER . '/' . static::PAYMENT_METHOD_TEMPLATE_PATH; |
|
| 64 | + return static::PAYMENT_PROVIDER.'/'.static::PAYMENT_METHOD_TEMPLATE_PATH; |
|
| 65 | 65 | } |
| 66 | 66 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | protected function addHeidelpayClient(Container $container): Container |
| 49 | 49 | { |
| 50 | - $container[static::CLIENT_HEIDELPAY] = function (Container $container) { |
|
| 50 | + $container[static::CLIENT_HEIDELPAY] = function(Container $container) { |
|
| 51 | 51 | return $container->getLocator()->heidelpay()->client(); |
| 52 | 52 | }; |
| 53 | 53 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function addQuoteClient(Container $container): Container |
| 63 | 63 | { |
| 64 | - $container[static::CLIENT_QUOTE] = function (Container $container) { |
|
| 64 | + $container[static::CLIENT_QUOTE] = function(Container $container) { |
|
| 65 | 65 | return new HeidelpayToQuoteClientBridge($container->getLocator()->quote()->client()); |
| 66 | 66 | }; |
| 67 | 67 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function addCalculationClient(Container $container): Container |
| 77 | 77 | { |
| 78 | - $container[static::CLIENT_CALCULATION] = function (Container $container) { |
|
| 78 | + $container[static::CLIENT_CALCULATION] = function(Container $container) { |
|
| 79 | 79 | return new HeidelpayToCalculationClientBridge($container->getLocator()->calculation()->client()); |
| 80 | 80 | }; |
| 81 | 81 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | protected function addPriceClient(Container $container): Container |
| 91 | 91 | { |
| 92 | - $container[static::CLIENT_PRICE] = function (Container $container) { |
|
| 92 | + $container[static::CLIENT_PRICE] = function(Container $container) { |
|
| 93 | 93 | return new HeidelpayToPriceClientBridge($container->getLocator()->price()->client()); |
| 94 | 94 | }; |
| 95 | 95 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function addMoneyPlugin(Container $container): Container |
| 105 | 105 | { |
| 106 | - $container[static::PLUGIN_MONEY] = function () { |
|
| 106 | + $container[static::PLUGIN_MONEY] = function() { |
|
| 107 | 107 | return new HeidelpayToMoneyPluginBridge(new MoneyPlugin()); |
| 108 | 108 | }; |
| 109 | 109 | |
@@ -53,10 +53,10 @@ |
||
| 53 | 53 | ->setIdPaymentReference($responseAsArray['IDENTIFICATION_UNIQUEID']) |
| 54 | 54 | ->setAmortisationText($responseAsArray['CRITERION_EASYCREDIT_AMORTISATIONTEXT']) |
| 55 | 55 | ->setAccruingInterest( |
| 56 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray['CRITERION_EASYCREDIT_ACCRUINGINTEREST']) |
|
| 56 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray['CRITERION_EASYCREDIT_ACCRUINGINTEREST']) |
|
| 57 | 57 | ) |
| 58 | 58 | ->setTotalAmount( |
| 59 | - $this->moneyPlugin->convertDecimalToInteger((float)$responseAsArray['CRITERION_EASYCREDIT_TOTALAMOUNT']) |
|
| 59 | + $this->moneyPlugin->convertDecimalToInteger((float) $responseAsArray['CRITERION_EASYCREDIT_TOTALAMOUNT']) |
|
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | $quoteTransfer->setPayment($paymentTransfer); |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $container = parent::provideServiceLayerDependencies($container); |
| 32 | 32 | |
| 33 | - $container[static::CLIENT_LOCALE] = function (Container $container) { |
|
| 33 | + $container[static::CLIENT_LOCALE] = function(Container $container) { |
|
| 34 | 34 | return new HeidelpayToLocaleClientBridge($container->getLocator()->locale()->client()); |
| 35 | 35 | }; |
| 36 | 36 | |
| 37 | - $container[static::CLIENT_QUOTE] = function (Container $container) { |
|
| 37 | + $container[static::CLIENT_QUOTE] = function(Container $container) { |
|
| 38 | 38 | return new HeidelpayToQuoteSessionClientBridge($container->getLocator()->quote()->client()); |
| 39 | 39 | }; |
| 40 | 40 | |
| 41 | - $container[static::CLIENT_ZED_REQUEST] = function (Container $container) { |
|
| 41 | + $container[static::CLIENT_ZED_REQUEST] = function(Container $container) { |
|
| 42 | 42 | return $container->getLocator()->zedRequest()->client(); |
| 43 | 43 | }; |
| 44 | 44 | |