From c1b4f7ec288f6d504bd6c114d881dceb88fc76a6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 May 2020 21:24:46 +0200 Subject: [PATCH] Fix phpcs --- htdocs/multicurrency/class/multicurrency.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/multicurrency/class/multicurrency.class.php b/htdocs/multicurrency/class/multicurrency.class.php index 513c4537358..5426546e927 100644 --- a/htdocs/multicurrency/class/multicurrency.class.php +++ b/htdocs/multicurrency/class/multicurrency.class.php @@ -556,8 +556,6 @@ class MultiCurrency extends CommonObject */ public static function getAmountConversionFromInvoiceRate($fk_facture, $amount, $way = 'dolibarr', $table = 'facture') { - global $db; - $multicurrency_tx = self::getInvoiceRate($fk_facture, $table); if ($multicurrency_tx) @@ -592,10 +590,11 @@ class MultiCurrency extends CommonObject } /** - * With free account we can't set source then recalcul all rates to force another source + * With free account we can't set source then recalcul all rates to force another source. + * This modify the array &$TRate. * * @param stdClass $TRate Object containing all currencies rates - * @return -1 if KO, 0 if nothing, 1 if OK + * @return int -1 if KO, 0 if nothing, 1 if OK */ public static function recalculRates(&$TRate) {