diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index ed371cc1e23..93b17669c2c 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -58,6 +58,7 @@ class FormOther
}
+ // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return HTML select list of export models
*
@@ -68,13 +69,13 @@ class FormOther
* @param int $fk_user Utilisateur créant le modèle
* @return void
*/
- // phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_export_model($selected='', $htmlname='exportmodelid', $type='', $useempty=0, $fk_user=null)
{
+ // phpcs:enable
$sql = "SELECT rowid, label";
$sql.= " FROM ".MAIN_DB_PREFIX."export_model";
$sql.= " WHERE type = '".$type."'";
- if(!empty($fk_user))$sql.=" AND fk_user=".$fk_user;
+ if (!empty($fk_user)) $sql.=" AND fk_user=".$fk_user;
$sql.= " ORDER BY rowid";
$result = $this->db->query($sql);
if ($result)
@@ -110,6 +111,7 @@ class FormOther
}
+ // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return list of export models
*
@@ -119,9 +121,9 @@ class FormOther
* @param int $useempty Affiche valeur vide dans liste
* @return void
*/
- // phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_import_model($selected='', $htmlname='importmodelid', $type='', $useempty=0)
{
+ // phpcs:enable
$sql = "SELECT rowid, label";
$sql.= " FROM ".MAIN_DB_PREFIX."import_model";
$sql.= " WHERE type = '".$type."'";
@@ -160,6 +162,7 @@ class FormOther
}
+ // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return list of ecotaxes with label
*
@@ -167,9 +170,9 @@ class FormOther
* @param string $htmlname Name of combo list
* @return integer
*/
- // phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_ecotaxes($selected='', $htmlname='ecotaxe_id')
{
+ // phpcs:enable
global $langs;
$sql = "SELECT e.rowid, e.code, e.label, e.price, e.organization,";
@@ -217,6 +220,7 @@ class FormOther
}
+ // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return list of revenue stamp for country
*
@@ -225,9 +229,9 @@ class FormOther
* @param string $country_code Country Code
* @return string HTML select list
*/
- // phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_revenue_stamp($selected='', $htmlname='revenuestamp', $country_code='')
{
+ // phpcs:enable
global $langs;
$out='';
@@ -275,6 +279,7 @@ class FormOther
}
+ // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return a HTML select list to select a percent
*
@@ -287,9 +292,9 @@ class FormOther
* @param int $showempty Add also an empty line
* @return string HTML select string
*/
- // phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_percent($selected=0,$htmlname='percent',$disabled=0,$increment=5,$start=0,$end=100,$showempty=0)
{
+ // phpcs:enable
$return = '