Skip to content

Commit

Permalink
Fix phpcode sniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
andykim committed Jul 1, 2022
1 parent d947afb commit 8460c09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/gateways/xendit.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ function xendit_deactivate()
function xendit_link($params)
{
$link = new Link();
try{
try {
return $link->generatePaymentLink($params);
}catch(\Exception $e){
} catch (\Exception $e) {
return $link->errorMessage($e->getMessage());
}
}
Expand Down Expand Up @@ -197,10 +197,10 @@ function xendit_remoteinput($params)
$xenditRequest = new XenditRequest();

// Card settings
try{
try {
$cardSettings = $xenditRequest->getCardSettings();
$canUseDynamic3ds = $cardSettings['can_use_dynamic_3ds'] ?? 0;
}catch(\Exception $e){
} catch (\Exception $e) {
return (new ActionBase)->errorMessage($e->getMessage());
}

Expand Down Expand Up @@ -293,10 +293,10 @@ function xendit_remoteupdate($params)
$remoteStorageToken = $params['gatewayid'];

// Card settings
try{
try {
$cardSettings = $xenditRequest->getCardSettings();
$canUseDynamic3ds = $cardSettings['can_use_dynamic_3ds'] ?? 0;
}catch(\Exception $e){
} catch (\Exception $e) {
return (new ActionBase)->errorMessage($e->getMessage());
}

Expand Down

0 comments on commit 8460c09

Please sign in to comment.