Skip to content

Commit

Permalink
Updated if statements with braces
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-nordstrom committed Nov 1, 2024
1 parent 88df2cd commit d980324
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions UI/PaymentBoosterConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit d980324

Please sign in to comment.