--- /tmp/dsg/dolibarr/htdocs/core/modules/payment/github_mod_payment_ant.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/payment/client_mod_payment_ant.php @@ -31,9 +31,9 @@ class mod_payment_ant extends ModeleNumRefPayments { /** - * Dolibarr version of the loaded document - * @var string - */ + * Dolibarr version of the loaded document + * @var string + */ public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' /** @@ -54,14 +54,14 @@ public $name = 'Ant'; - /** - * Returns the description of the numbering model - * - * @return string Texte descripif - */ - public function info() - { - global $db, $conf, $langs; + /** + * Returns the description of the numbering model + * + * @return string Texte descripif + */ + public function info() + { + global $db, $conf, $langs; $langs->load("bills"); @@ -92,20 +92,20 @@ $texte .= ''; return $texte; - } + } - /** - * Return an example of numbering - * - * @return string Example - */ - public function getExample() - { - global $conf, $langs, $mysoc; + /** + * Return an example of numbering + * + * @return string Example + */ + public function getExample() + { + global $conf, $langs, $mysoc; - $old_code_client = $mysoc->code_client; - $mysoc->code_client = 'CCCCCCCCCC'; - $numExample = $this->getNextValue($mysoc, ''); + $old_code_client = $mysoc->code_client; + $mysoc->code_client = 'CCCCCCCCCC'; + $numExample = $this->getNextValue($mysoc, ''); $mysoc->code_client = $old_code_client; if (!$numExample) @@ -113,7 +113,7 @@ $numExample = $langs->trans('NotConfigured'); } return $numExample; - } + } /** * Return next free value @@ -122,8 +122,8 @@ * @param Object $object Object we need next value for * @return string Value if KO, <0 if KO */ - public function getNextValue($objsoc, $object) - { + public function getNextValue($objsoc, $object) + { global $db, $conf; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; @@ -143,17 +143,17 @@ } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Return next free value * * @param Societe $objsoc Object third party * @param string $objforref Object for number to search * @return string Next free value - */ - public function commande_get_num($objsoc, $objforref) - { - // phpcs:enable - return $this->getNextValue($objsoc, $objforref); - } + */ + public function commande_get_num($objsoc, $objforref) + { + // phpcs:enable + return $this->getNextValue($objsoc, $objforref); + } } --- /tmp/dsg/dolibarr/htdocs/core/modules/payment/github_mod_payment_cicada.php +++ /tmp/dsg/dolibarr/htdocs/core/modules/payment/client_mod_payment_cicada.php @@ -136,7 +136,9 @@ $obj = $db->fetch_object($resql); if ($obj) $max = intval($obj->max); else $max = 0; - } else { + } + else + { dol_syslog(__METHOD__, LOG_DEBUG); return -1; }