move phpcs:ignore

This commit is contained in:
Frédéric FRANCE 2018-09-03 00:03:17 +02:00
parent 9c3352d2de
commit e4946cc8eb
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
5 changed files with 14 additions and 9 deletions

View File

@ -49,6 +49,7 @@ class FormContract
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show a combo list with contracts qualified for a third party
*
@ -59,9 +60,9 @@ class FormContract
* @param int $showempty Show empty line
* @return int Nbr of project if OK, <0 if KO
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function select_contract($socid=-1, $selected='', $htmlname='contrattid', $maxlength=16, $showempty=1)
{
// phpcs:enable
global $db,$user,$conf,$langs;
$hideunselectables = false;

View File

@ -127,6 +127,7 @@ class mod_project_universal extends ModeleNumRefProjects
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return next reference not yet used as a reference
*
@ -134,9 +135,9 @@ class mod_project_universal extends ModeleNumRefProjects
* @param Project $project Object project
* @return string Next not used reference
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function project_get_num($objsoc=0,$project='')
{
// phpcs:enable
return $this->getNextValue($objsoc,$project);
}
}

View File

@ -124,6 +124,7 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return next free value
*
@ -131,9 +132,9 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments
* @param string $objforref Object for number to search
* @return string Next free value
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function commande_get_num($objsoc,$objforref)
{
// phpcs:enable
return $this->getNextValue($objsoc,$objforref);
}
}

View File

@ -138,6 +138,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Return next free value
*
@ -145,9 +146,9 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
* @param string $objforref Object for number to search
* @return string Next free value
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function payment_get_num($objsoc,$objforref)
{
// phpcs:enable
return $this->getNextValue($objsoc,$objforref);
}
}

View File

@ -39,21 +39,21 @@ class ActionsTicket
* @var DoliDB Database handler.
*/
public $db;
public $dao;
public $mesg;
/**
* @var string Error code (or message)
*/
public $error;
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
//! Numero de l'erreur
public $errno = 0;
@ -1309,6 +1309,7 @@ class ActionsTicket
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* load_previous_next_ref
*
@ -1316,9 +1317,9 @@ class ActionsTicket
* @param int $fieldid Id
* @return int 0
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function load_previous_next_ref($filter, $fieldid)
{
// phpcs:enable
$this->getInstanceDao();
return $object->load_previous_next_ref($filter, $fieldid);
}