Skip to content

Commit

Permalink
Merge pull request #33 from xendit/chore/fix-php-lint
Browse files Browse the repository at this point in the history
fix php lint
  • Loading branch information
andykim authored Oct 5, 2023
2 parents 2c4616b + 6769767 commit ab09570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gateways/xendit/lib/PaymentLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit ab09570

Please sign in to comment.