[CORE] FIX Travis phpcs (#incoterm).

This commit is contained in:
phf 2015-02-23 11:19:00 +01:00
parent 52441914de
commit 11a0624e39
3 changed files with 9 additions and 8 deletions

View File

@ -2418,7 +2418,7 @@ abstract class CommonObject
*/
function getIncotermsForPDF()
{
$sql = 'SELECT code FROM '.MAIN_DB_PREFIX.'c_incoterms WHERE rowid = '.(int)$this->fk_incoterms;
$sql = 'SELECT code FROM '.MAIN_DB_PREFIX.'c_incoterms WHERE rowid = '.(int) $this->fk_incoterms;
$resql = $this->db->query($sql);
if ($resql)
{

View File

@ -561,11 +561,14 @@ class Form
/**
* Return select list of incoterms
*
* @param string $selected Id or Code of preselected incoterm
* @param string $htmlname Name of html select object
* @param string $htmloption Options html on select object
* @param string $maxlength Max length for labels (0=no limit)
* @return string HTML string with select
* @param string $selected Id or Code of preselected incoterm
* @param string $location_incoterms Value of input location
* @param string $page Defined the form action
* @param string $htmlname Name of html select object
* @param string $htmloption Options html on select object
* @param int $forcecombo Force to use combo box
* @param array $events Event options to run on change. Example: array(array('method'=>'getContacts', 'url'=>dol_buildpath('/core/ajax/contacts.php',1), 'htmlname'=>'contactid', 'params'=>array('add-customer-contact'=>'disabled')))
* @return string HTML string with select and input
*/
function select_incoterms($selected='', $location_incoterms='', $page='',$htmlname='incoterm_id',$htmloption='', $forcecombo=0, $events=array())
{

View File

@ -138,5 +138,3 @@ class modIncoterm extends DolibarrModules
return $this->_remove($sql, $options);
}
}
?>