--- /tmp/dsg/dolibarr/htdocs/core/modules/payment/github_19.0.3_mod_payment_ant.php
+++ /tmp/dsg/dolibarr/htdocs/core/modules/payment/client_mod_payment_ant.php
@@ -34,3 +34,3 @@
-	 * Dolibarr version of the loaded document

-	 * @var string

-	 */

+     * Dolibarr version of the loaded document

+     * @var string

+     */

@@ -57,9 +57,8 @@
-	/**

-	 *  Returns the description of the numbering model

-	 *

-	 *	@param	Translate	$langs      Lang object to use for output

-	 *  @return string      			Descriptive text

-	 */

-	public function info($langs)

-	{

-		global $db, $langs;

+    /**

+     *  Returns the description of the numbering model

+     *

+     *  @return     string      Texte descripif

+     */

+    public function info()

+    {

+    	global $db, $conf, $langs;

@@ -86 +85 @@
-		$texte .= '<td class="right">'.$form->textwithpicto('<input type="text" class="flat minwidth175" name="maskpayment" value="'.getDolGlobalString('PAYMENT_ANT_MASK').'">', $tooltip, 1, 1).'</td>';

+		$texte .= '<td class="right">'.$form->textwithpicto('<input type="text" class="flat" size="24" name="maskpayment" value="'.$conf->global->PAYMENT_ANT_MASK.'">', $tooltip, 1, 1).'</td>';

@@ -88 +87 @@
-		$texte .= '<td class="left" rowspan="2">&nbsp; <input type="submit" class="button button-edit reposition smallpaddingimp" name="Button"value="'.$langs->trans("Modify").'"></td>';

+		$texte .= '<td class="left" rowspan="2">&nbsp; <input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button"></td>';

@@ -96 +95 @@
-	}

+    }

@@ -98,8 +97,8 @@
-	/**

-	 *  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;

@@ -107,3 +106,3 @@
-		$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, '');

@@ -112 +111,2 @@
-		if (!$numExample) {

+		if (!$numExample)

+		{

@@ -116 +116 @@
-	}

+    }

@@ -125,2 +125,2 @@
-	public function getNextValue($objsoc, $object)

-	{

+    public function getNextValue($objsoc, $object)

+    {

@@ -132 +132 @@
-		$mask = getDolGlobalString('PAYMENT_ANT_MASK');

+		$mask = $conf->global->PAYMENT_ANT_MASK;

@@ -134 +134,2 @@
-		if (!$mask) {

+		if (!$mask)

+		{

@@ -145 +146 @@
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps

+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps

@@ -152,6 +153,6 @@
-	 */

-	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_19.0.3_mod_payment_cicada.php
+++ /tmp/dsg/dolibarr/htdocs/core/modules/payment/client_mod_payment_cicada.php
@@ -61,2 +61 @@
-	 *	@param	Translate	$langs      Lang object to use for output

-	 *  @return string      			Descriptive text

+	 *  @return     string      Text with description

@@ -64 +63 @@
-	public function info($langs)

+	public function info()

@@ -67 +66 @@
-		return $langs->trans("SimpleNumRefModelDesc", $this->prefix);

+	  	return $langs->trans("SimpleNumRefModelDesc", $this->prefix);

@@ -86,2 +85 @@
-	 *  @param  Object		$object		Object we need next value for

-	 *  @return boolean     			false if conflict, true if ok

+	 *  @return     boolean     false if conflict, true if ok

@@ -89 +87 @@
-	public function canBeActivated($object)

+	public function canBeActivated()

@@ -93,2 +91 @@
-		$payyymm = '';

-		$max = '';

+		$payyymm = ''; $max = '';

@@ -103 +100,2 @@
-		if ($resql) {

+		if ($resql)

+		{

@@ -105,4 +103 @@
-			if ($row) {

-				$payyymm = substr($row[0], 0, 6);

-				$max = $row[0];

-			}

+			if ($row) { $payyymm = substr($row[0], 0, 6); $max = $row[0]; }

@@ -110 +105,2 @@
-		if ($payyymm && !preg_match('/'.$this->prefix.'[0-9][0-9][0-9][0-9]/i', $payyymm)) {

+		if ($payyymm && !preg_match('/'.$this->prefix.'[0-9][0-9][0-9][0-9]/i', $payyymm))

+		{

@@ -138 +134,2 @@
-		if ($resql) {

+		if ($resql)

+		{

@@ -140,6 +137,5 @@
-			if ($obj) {

-				$max = intval($obj->max);

-			} else {

-				$max = 0;

-			}

-		} else {

+			if ($obj) $max = intval($obj->max);

+			else $max = 0;

+		}

+		else

+		{

@@ -152 +148 @@
-		$yymm = dol_print_date($date, "%y%m");

+		$yymm = strftime("%y%m", $date);

@@ -154,5 +150,2 @@
-		if ($max >= (pow(10, 4) - 1)) {

-			$num = $max + 1; // If counter > 9999, we do not format on 4 chars, we take number as it is

-		} else {

-			$num = sprintf("%04s", $max + 1);

-		}

+		if ($max >= (pow(10, 4) - 1)) $num = $max + 1; // If counter > 9999, we do not format on 4 chars, we take number as it is

+		else $num = sprintf("%04s", $max + 1);