From afefc369ed39f7f15169797b5083eef488d45a22 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 11 Jul 2022 10:06:31 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/adherents/card.php | 4 ++-- htdocs/core/lib/payments.lib.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index cb206449a97..c60308138d2 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -2029,10 +2029,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { if ($useonlinepayment) { print '
'; - if(empty($amount)) { // Take the maximum amount among what the member is supposed to pay / has paid in the past + if (empty($amount)) { // Take the maximum amount among what the member is supposed to pay / has paid in the past $amount = price(max($adht->amount, $object->first_subscription_amount, $object->last_subscription_amount)); } - if(empty($amount)) { + if (empty($amount)) { $amount = 0; } require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php'; diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index 794c9d5da7e..809b5f8dc73 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -176,7 +176,7 @@ function getValidOnlinePaymentMethods($paymentmethod = '') * @param int $amount Amount of money to request for * @return string Url string */ -function showOnlinePaymentUrl($type, $ref, $amount='9.99') +function showOnlinePaymentUrl($type, $ref, $amount = '9.99') { global $langs; @@ -203,7 +203,7 @@ function showOnlinePaymentUrl($type, $ref, $amount='9.99') * @param int $amount Amount of money to request for * @return string Url string */ -function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount='9.99') +function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = '9.99') { $url = getOnlinePaymentUrl(0, $type, $ref, $amount); $label = $label ? $label : $url;