Skip to content

Commit

Permalink
Fix PHP Code Sniffer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijaIv committed Oct 14, 2024
1 parent 9617f35 commit 0133034
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Controller/StoreApi/Payment/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ private function setPaymentMethod(
$initialStateId = $this->initialStateIdLoader->get(OrderTransactionStates::STATE_MACHINE);

/** @var OrderEntity $order */
$order = $this->orderRepository->getOrder($orderId, $context, ['transactions', 'transactions.stateMachineState']);
$order = $this->orderRepository->getOrder(
$orderId,
$context,
['transactions', 'transactions.stateMachineState']
);

$context->scope(
Context::SYSTEM_SCOPE,
Expand Down Expand Up @@ -364,7 +368,11 @@ public function cancelOrderTransaction(
): JsonResponse {
$context = $salesChannelContext->getContext();
$orderId = $request->request->get('orderId');
$order = $this->orderRepository->getOrder($orderId, $context, ['transactions', 'transactions.stateMachineState']);
$order = $this->orderRepository->getOrder(
$orderId,
$context,
['transactions', 'transactions.stateMachineState']
);

$transaction = $order->getTransactions()
->filterByState(OrderTransactionStates::STATE_IN_PROGRESS)
Expand Down

0 comments on commit 0133034

Please sign in to comment.