@@ -22,7 +22,7 @@ |
||
22 | 22 | $responseTransfer = $quoteTransfer->getPayment()->getComputopIdeal()->getIdealInitResponse(); |
23 | 23 | $this->setPaymentEntity($responseTransfer->getHeader()->getTransId()); |
24 | 24 | if ($responseTransfer->getHeader()->getIsSuccess()) { |
25 | - $this->handleDatabaseTransaction(function () use ($responseTransfer) { |
|
25 | + $this->handleDatabaseTransaction(function() use ($responseTransfer) { |
|
26 | 26 | $this->savePaymentComputopEntity($responseTransfer); |
27 | 27 | $this->savePaymentComputopDetailEntity($responseTransfer); |
28 | 28 | $this->savePaymentComputopOrderItemsEntities(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $responseTransfer = $quoteTransfer->getPayment()->getComputopPayNow()->getPayNowInitResponse(); |
23 | 23 | $this->setPaymentEntity($responseTransfer->getHeader()->getTransId()); |
24 | 24 | if ($responseTransfer->getHeader()->getIsSuccess()) { |
25 | - $this->handleDatabaseTransaction(function () use ($responseTransfer) { |
|
25 | + $this->handleDatabaseTransaction(function() use ($responseTransfer) { |
|
26 | 26 | $this->savePaymentComputopEntity($responseTransfer); |
27 | 27 | $this->savePaymentComputopDetailEntity($responseTransfer); |
28 | 28 | $this->savePaymentComputopOrderItemsEntities(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $responseTransfer = $quoteTransfer->getPayment()->getComputopCreditCard()->getCreditCardInitResponse(); |
23 | 23 | $this->setPaymentEntity($responseTransfer->getHeader()->getTransId()); |
24 | 24 | if ($responseTransfer->getHeader()->getIsSuccess()) { |
25 | - $this->handleDatabaseTransaction(function () use ($responseTransfer) { |
|
25 | + $this->handleDatabaseTransaction(function() use ($responseTransfer) { |
|
26 | 26 | $this->savePaymentComputopEntity($responseTransfer); |
27 | 27 | $this->savePaymentComputopDetailEntity($responseTransfer); |
28 | 28 | $this->savePaymentComputopOrderItemsEntities(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $responseTransfer = $quoteTransfer->getPayment()->getComputopSofort()->getSofortInitResponse(); |
23 | 23 | $this->setPaymentEntity($responseTransfer->getHeader()->getTransId()); |
24 | 24 | if ($responseTransfer->getHeader()->getIsSuccess()) { |
25 | - $this->handleDatabaseTransaction(function () use ($responseTransfer) { |
|
25 | + $this->handleDatabaseTransaction(function() use ($responseTransfer) { |
|
26 | 26 | $this->savePaymentComputopEntity($responseTransfer); |
27 | 27 | $this->savePaymentComputopDetailEntity($responseTransfer); |
28 | 28 | $this->savePaymentComputopOrderItemsEntities(); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function save(TransferInterface $responseTransfer, OrderTransfer $orderTransfer) |
28 | 28 | { |
29 | - $this->handleDatabaseTransaction(function () use ($responseTransfer, $orderTransfer) { |
|
29 | + $this->handleDatabaseTransaction(function() use ($responseTransfer, $orderTransfer) { |
|
30 | 30 | $this->saveComputopDetails($responseTransfer, $orderTransfer); |
31 | 31 | }); |
32 | 32 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function getUrlToComputop($merchantId, $data, $length) |
61 | 61 | { |
62 | - return $this->getActionUrl() . '?' . http_build_query([ |
|
62 | + return $this->getActionUrl().'?'.http_build_query([ |
|
63 | 63 | ComputopApiConfig::MERCHANT_ID => $merchantId, |
64 | 64 | ComputopApiConfig::DATA => $data, |
65 | 65 | ComputopApiConfig::LENGTH => $length, |
@@ -113,7 +113,7 @@ |
||
113 | 113 | $paymentSelection = $quoteTransfer->getPayment()->getPaymentSelection(); |
114 | 114 | |
115 | 115 | $paymentMethod = ucfirst($paymentSelection); |
116 | - $method = 'get' . $paymentMethod; |
|
116 | + $method = 'get'.$paymentMethod; |
|
117 | 117 | $paymentTransfer = $quoteTransfer->getPayment(); |
118 | 118 | |
119 | 119 | if (!method_exists($paymentTransfer, $method) || ($quoteTransfer->getPayment()->$method() === null)) { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $this->computopTransfer = $this->activeMapper->getComputopTransfer($quoteTransfer->getPayment()); |
101 | 101 | $this->computopResponseTransfer = $this->activeMapper->getComputopResponseTransfer($quoteTransfer->getPayment()); |
102 | 102 | |
103 | - $this->handleDatabaseTransaction(function () use ($quoteTransfer, $checkoutResponseTransfer) { |
|
103 | + $this->handleDatabaseTransaction(function() use ($quoteTransfer, $checkoutResponseTransfer) { |
|
104 | 104 | |
105 | 105 | $paymentEntity = $this->savePaymentForOrder( |
106 | 106 | $quoteTransfer->getPayment(), |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | protected function addZedRequestClient(Container $container) |
35 | 35 | { |
36 | - $container[static::CLIENT_ZED_REQUEST] = function (Container $container) { |
|
36 | + $container[static::CLIENT_ZED_REQUEST] = function(Container $container) { |
|
37 | 37 | return $container->getLocator()->zedRequest()->client(); |
38 | 38 | }; |
39 | 39 |