From 31ebdcba7c542e59d6f6a97715a73451c213e6c5 Mon Sep 17 00:00:00 2001 From: woutse Date: Mon, 9 Jan 2023 14:37:34 +0100 Subject: [PATCH] Removed whitespaces --- Controller/Checkout/Finish.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Controller/Checkout/Finish.php b/Controller/Checkout/Finish.php index bd10d30c..28605911 100644 --- a/Controller/Checkout/Finish.php +++ b/Controller/Checkout/Finish.php @@ -152,10 +152,10 @@ public function execute() if ($isPinTransaction && $pinStatus->getTransactionState() !== 'approved') { $this->messageManager->addNoticeMessage(__('Order has been made and the payment is pending.')); } - $this->deactivateCart($order, $magOrderId, $payOrderId); + $this->deactivateCart($order, $payOrderId); } elseif ($bPending) { $resultRedirect->setPath(Config::PENDING_PAY); - $this->deactivateCart($order, $magOrderId, $payOrderId); + $this->deactivateCart($order, $payOrderId); } else { $cancelMessage = $bDenied ? __('Payment denied') : __('Payment canceled'); $this->messageManager->addNoticeMessage($cancelMessage); @@ -197,15 +197,14 @@ private function handlePin(string $hash, Order $order) /** * @param Order $order - * @param integer $magOrderId * @param string $payOrderId * @return void */ - private function deactivateCart(Order $order, int $magOrderId, string $payOrderId) + private function deactivateCart(Order $order, string $payOrderId) { # Make the cart inactive - $session = $this->checkoutSession; - + $session = $this->checkoutSession; + $this->checkSession($order, $payOrderId, $session); $quote = $session->getQuote();