Skip to content

Commit

Permalink
csfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mandan2 committed Nov 14, 2023
1 parent 6524e3a commit c945551
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/front/webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ protected function executeWebhook(string $transactionId): void
if (!$cartId) {
// TODO webhook structure will change, no need to create custom exception for one time usage

throw new \Exception(
sprintf('Missing Cart ID. Transaction ID: [%s]', $transactionId),
HttpStatusCode::HTTP_NOT_FOUND
);
throw new \Exception(sprintf('Missing Cart ID. Transaction ID: [%s]', $transactionId), HttpStatusCode::HTTP_NOT_FOUND);
}

$this->setContext($cartId);
Expand Down

0 comments on commit c945551

Please sign in to comment.