From 58a26156499cdd1f2a36b1c78f6d94f52121729b Mon Sep 17 00:00:00 2001 From: Aminul Islam Date: Mon, 12 Oct 2020 22:05:31 +0600 Subject: [PATCH] coding standards --- composer.json | 47 ++++++++++--------- modules/gateways/callback/bkashlegacy.php | 8 ++-- whmcs.json | 56 +++++++++++------------ 3 files changed, 57 insertions(+), 54 deletions(-) diff --git a/composer.json b/composer.json index 12d2326..44354b3 100644 --- a/composer.json +++ b/composer.json @@ -1,25 +1,28 @@ { - "name": "aminulbd/bkash-merchant-for-whmcs", - "description": "bKash Merchant Payment Gateway for WHMCS", - "keywords": [ - "whmcs", - "bkash", - "bkash merchant", - "gateway module" - ], - "homepage": "http://www.aminul.net/project/bkash-merchant-for-whmcs", - "license": "MIT", - "authors": [ - { - "name": "Aminul Islam", - "email": "me@aminul.net", - "homepage": "https://aminul.net/", - "role": "Developer" - } - ], - "support": { - "email": "me@aminul.net", - "forum": "https://aminul.net/", - "wiki": "https://aminul.net/" + "name": "aminulbd/bkash-merchant-for-whmcs", + "description": "bKash Merchant Payment Gateway for WHMCS", + "keywords": [ + "whmcs", + "bkash", + "bkash merchant", + "gateway module" + ], + "homepage": "http://www.aminul.net/project/bkash-merchant-for-whmcs", + "license": "MIT", + "authors": [ + { + "name": "Aminul Islam", + "email": "me@aminul.net", + "homepage": "https://aminul.net/", + "role": "Developer" } + ], + "support": { + "email": "me@aminul.net", + "forum": "https://aminul.net/", + "wiki": "https://aminul.net/" + }, + "require": { + "ext-json": "*" + } } diff --git a/modules/gateways/callback/bkashlegacy.php b/modules/gateways/callback/bkashlegacy.php index 39b77b7..6f65219 100644 --- a/modules/gateways/callback/bkashlegacy.php +++ b/modules/gateways/callback/bkashlegacy.php @@ -163,13 +163,13 @@ private function setCurrency() { $this->gatewayCurrency = (int)$this->gatewayParams['convertto']; $this->customerCurrency = Capsule::table('tblclients') - ->where('id', '=', $this->invoice['userid']) - ->value('currency'); + ->where('id', '=', $this->invoice['userid']) + ->value('currency'); if (!empty($this->gatewayCurrency) && ($this->customerCurrency !== $this->gatewayCurrency)) { $this->convoRate = Capsule::table('tblcurrencies') - ->where('id', '=', $this->gatewayCurrency) - ->value('rate'); + ->where('id', '=', $this->gatewayCurrency) + ->value('rate'); } else { $this->convoRate = 1; } diff --git a/whmcs.json b/whmcs.json index 05e4843..11b5659 100644 --- a/whmcs.json +++ b/whmcs.json @@ -1,31 +1,31 @@ { - "schema": "1.0.2", - "type": "whmcs-gateways", - "name": "bkash-merchant", - "license": "MIT", - "category": "gateway", - "description": { - "name": "bKash Merchant Payment Gateway", - "tagline": "Easily collect your payment by using bKash merchant in your WHMCS Billing.", - "long": "", - "features": [ - "WHMCS 8 Support" - ] - }, - "logo": { - "filename": "logo.png" - }, - "support": { - "homepage": "https://aminul.net/project/bkash-merchant-for-whmcs/", - "learn_more": "https://aminul.net/project/bkash-merchant-for-whmcs/", - "email": "me@aminul.net", - "support_url": "https://aminul.net/project/bkash-merchant-for-whmcs/", - "docs_url": "https://aminul.net/project/bkash-merchant-for-whmcs/" - }, - "authors": [ - { - "name": "Aminul Islam", - "homepage": "https://aminul.net/" - } + "schema": "1.0.2", + "type": "whmcs-gateways", + "name": "bkash-merchant", + "license": "MIT", + "category": "gateway", + "description": { + "name": "bKash Merchant Payment Gateway", + "tagline": "Easily collect your payment by using bKash merchant in your WHMCS Billing.", + "long": "", + "features": [ + "WHMCS 8 Support" ] + }, + "logo": { + "filename": "logo.png" + }, + "support": { + "homepage": "https://aminul.net/project/bkash-merchant-for-whmcs/", + "learn_more": "https://aminul.net/project/bkash-merchant-for-whmcs/", + "email": "me@aminul.net", + "support_url": "https://aminul.net/project/bkash-merchant-for-whmcs/", + "docs_url": "https://aminul.net/project/bkash-merchant-for-whmcs/" + }, + "authors": [ + { + "name": "Aminul Islam", + "homepage": "https://aminul.net/" + } + ] }