@@ -22,6 +22,6 @@ |
||
| 22 | 22 | ->requireCustomer() |
| 23 | 23 | ->getTotals(); |
| 24 | 24 | |
| 25 | - return sha1($quoteTransfer->getCustomer()->getEmail() . $quoteTransfer->getTotals()->getHash()); |
|
| 25 | + return sha1($quoteTransfer->getCustomer()->getEmail().$quoteTransfer->getTotals()->getHash()); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | $responseTransfer->setIsPending($apiResponse->isPending()) |
| 60 | 60 | ->setIsSuccess($apiResponse->isSuccess()) |
| 61 | - ->setIdSalesOrder((int)$apiResponse->getIdentification()->getTransactionId()) |
|
| 61 | + ->setIdSalesOrder((int) $apiResponse->getIdentification()->getTransactionId()) |
|
| 62 | 62 | ->setIsError($apiResponse->isError()) |
| 63 | 63 | ->setIdPaymentReference($apiResponse->getPaymentReferenceId()) |
| 64 | 64 | ->setProcessingCode($apiResponse->getProcessing()->code) |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $heidelpayRequestTransfer->setCustomerPurchase( |
| 79 | 79 | (new HeidelpayCustomerPurchaseTransfer()) |
| 80 | 80 | ->setAmount($this->getOrderGrandTotalInDecimal($orderTransfer)) |
| 81 | - ->setIdOrder((string)$orderTransfer->getIdSalesOrder()) |
|
| 81 | + ->setIdOrder((string) $orderTransfer->getIdSalesOrder()) |
|
| 82 | 82 | ); |
| 83 | 83 | |
| 84 | 84 | return $heidelpayRequestTransfer; |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | ->getOptionsList(); |
| 151 | 151 | |
| 152 | 152 | foreach ($paymentOptionsList as $optionTransfer) { |
| 153 | - $paymentOptions[static::PAYMENT_OPTION_TRANSLATION_PREFIX . $optionTransfer->getCode()] = |
|
| 153 | + $paymentOptions[static::PAYMENT_OPTION_TRANSLATION_PREFIX.$optionTransfer->getCode()] = |
|
| 154 | 154 | $optionTransfer->getCode(); |
| 155 | 155 | } |
| 156 | 156 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function getMerchantSandboxMode(): bool |
| 46 | 46 | { |
| 47 | - return (bool)$this->get(HeidelpayConstants::CONFIG_HEIDELPAY_SANDBOX_REQUEST); |
|
| 47 | + return (bool) $this->get(HeidelpayConstants::CONFIG_HEIDELPAY_SANDBOX_REQUEST); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function getRequestParameterObject($parameterGroup, Response $heidelpayResponse) |
| 69 | 69 | { |
| 70 | - $getParameterMethod = 'get' . ucfirst($parameterGroup); |
|
| 70 | + $getParameterMethod = 'get'.ucfirst($parameterGroup); |
|
| 71 | 71 | |
| 72 | 72 | if (!method_exists($heidelpayResponse, $getParameterMethod)) { |
| 73 | 73 | return null; |
@@ -97,6 +97,6 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function getTransactionPayloadArray($transactionPayload): array |
| 99 | 99 | { |
| 100 | - return (array)$this->utilEncoding->decodeJson($transactionPayload, true); |
|
| 100 | + return (array) $this->utilEncoding->decodeJson($transactionPayload, true); |
|
| 101 | 101 | } |
| 102 | 102 | } |
@@ -32,23 +32,23 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function provideBusinessLayerDependencies(Container $container): Container |
| 34 | 34 | { |
| 35 | - $container[static::FACADE_CURRENCY] = function (Container $container) { |
|
| 35 | + $container[static::FACADE_CURRENCY] = function(Container $container) { |
|
| 36 | 36 | return new HeidelpayToCurrencyBridge($container->getLocator()->currency()->facade()); |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | - $container[static::FACADE_MONEY] = function (Container $container) { |
|
| 39 | + $container[static::FACADE_MONEY] = function(Container $container) { |
|
| 40 | 40 | return new HeidelpayToMoneyBridge($container->getLocator()->money()->facade()); |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | - $container[self::FACADE_SALES] = function (Container $container) { |
|
| 43 | + $container[self::FACADE_SALES] = function(Container $container) { |
|
| 44 | 44 | return new HeidelpayToSalesBridge($container->getLocator()->sales()->facade()); |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | - $container[self::QUERY_CONTAINER_SALES] = function (Container $container) { |
|
| 47 | + $container[self::QUERY_CONTAINER_SALES] = function(Container $container) { |
|
| 48 | 48 | return new HeidelpayToSalesQueryContainerBridge($container->getLocator()->sales()->queryContainer()); |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | - $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 51 | + $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 52 | 52 | return new HeidelpayToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service()); |
| 53 | 53 | }; |
| 54 | 54 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function provideCommunicationLayerDependencies(Container $container): Container |
| 64 | 64 | { |
| 65 | - $container[self::FACADE_SALES] = function (Container $container) { |
|
| 65 | + $container[self::FACADE_SALES] = function(Container $container) { |
|
| 66 | 66 | return new HeidelpayToSalesBridge($container->getLocator()->sales()->facade()); |
| 67 | 67 | }; |
| 68 | 68 | |
@@ -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 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | protected function streamResponse(HeidelpayPaymentProcessingResponseTransfer $processingResultTransfer): StreamedResponse |
| 81 | 81 | { |
| 82 | - $callback = function () use ($processingResultTransfer) { |
|
| 82 | + $callback = function() use ($processingResultTransfer) { |
|
| 83 | 83 | echo $this->getCustomerRedirectUrl($processingResultTransfer); |
| 84 | 84 | }; |
| 85 | 85 | |