Skip to content

Commit

Permalink
Removed whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Jan 9, 2023
1 parent 9bcd05d commit 31ebdcb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Controller/Checkout/Finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 31ebdcb

Please sign in to comment.