From d98032412f086563e86a6ca2e0b28b762c0424f2 Mon Sep 17 00:00:00 2001 From: Daniel Nordstrom Date: Fri, 1 Nov 2024 11:45:52 -0400 Subject: [PATCH] Updated if statements with braces --- UI/PaymentBoosterConfigProvider.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/UI/PaymentBoosterConfigProvider.php b/UI/PaymentBoosterConfigProvider.php index f348a3ad..3b2ecb69 100644 --- a/UI/PaymentBoosterConfigProvider.php +++ b/UI/PaymentBoosterConfigProvider.php @@ -88,9 +88,18 @@ public function getConfig(): array $epsGatewayId = $this->checkoutData->getEpsGatewayId(); if ($jwtToken === null || $epsAuthToken === null || $epsGatewayId === null) { $errorMsgs = []; - if ($jwtToken === null) $errorMsgs[] = '$jwtToken is null.'; - if ($epsAuthToken === null) $errorMsgs[] = '$epsAuthToken is null.'; - if ($epsGatewayId === null) $errorMsgs[] = '$epsGatewayId is null.'; + if ($jwtToken === null) { + $errorMsgs[] = '$jwtToken is null.'; + } + + if ($epsAuthToken === null) { + $errorMsgs[] = '$epsAuthToken is null.'; + } + + if ($epsGatewayId === null) { + $errorMsgs[] = '$epsGatewayId is null.'; + } + $this->logger->critical('Error in PaymentBoosterConfigProvider->getConfig(): '.implode(', ', $errorMsgs)); return []; }