浏览代码

move phpcs:ignore

Frédéric FRANCE 6 年之前
父节点
当前提交
e4946cc8eb

+ 2 - 1
htdocs/core/class/html.formcontract.class.php

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

+ 2 - 1
htdocs/core/modules/project/mod_project_universal.php

@@ -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);
     }
 }

+ 2 - 1
htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php

@@ -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);
     }
 }

+ 2 - 1
htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php

@@ -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);
 	}
 }

+ 6 - 5
htdocs/ticket/class/actions_ticket.class.php

@@ -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);
     }