From 6769767bb85d34335fb254fc99ace6089fe060de Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 5 Oct 2023 10:33:22 +0700 Subject: [PATCH] fix php lint --- modules/gateways/xendit/lib/PaymentLink.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gateways/xendit/lib/PaymentLink.php b/modules/gateways/xendit/lib/PaymentLink.php index f5c3376..f606981 100644 --- a/modules/gateways/xendit/lib/PaymentLink.php +++ b/modules/gateways/xendit/lib/PaymentLink.php @@ -62,7 +62,7 @@ protected function invoiceUrl($invoiceId, string $systemurl): string */ protected function isRefererUrlFromCart(): bool { - if(!$this->isViewInvoicePage() || empty($_SERVER) || empty($_SERVER["HTTP_REFERER"])){ + if (!$this->isViewInvoicePage() || empty($_SERVER) || empty($_SERVER["HTTP_REFERER"])) { return false; } @@ -75,7 +75,7 @@ protected function isRefererUrlFromCart(): bool */ protected function isViewInvoicePage(): bool { - if(empty($_SERVER) || empty($_SERVER["SCRIPT_NAME"])){ + if (empty($_SERVER) || empty($_SERVER["SCRIPT_NAME"])) { return false; }