fix travis recommendations

This commit is contained in:
John Botella 2019-06-26 10:48:22 +02:00
parent 7e14a598e2
commit ee98f3e6d7
5 changed files with 35 additions and 27 deletions

View File

@ -136,9 +136,9 @@ function _updateBtn(){
/** /**
* Print a On/Off button * Print a On/Off button
* @param $confkey * @param string $confkey the conf key
* @param bool $title * @param bool $title Title of conf
* @param string $desc * @param string $desc Description of
* @return void * @return void
*/ */
function _printOnOff($confkey, $title = false, $desc = '') function _printOnOff($confkey, $title = false, $desc = '')
@ -161,11 +161,11 @@ function _printOnOff($confkey, $title = false, $desc ='')
/** /**
* Print a form part * Print a form part
* @param $confkey * @param string $confkey the conf key
* @param bool $title * @param bool $title Title of conf
* @param string $desc * @param string $desc Description of
* @param array $metas * @param array $metas html meta
* @param string $type * @param string $type type of input textarea or input
* @param bool $help * @param bool $help
* @return void * @return void
*/ */

View File

@ -4684,7 +4684,6 @@ elseif ($id > 0 || ! empty($ref))
print $langs->trans("RetainedWarranty") . ' ('.$object->retained_warranty.'%)'; print $langs->trans("RetainedWarranty") . ' ('.$object->retained_warranty.'%)';
print !empty($object->retained_warranty_date_limit)?' '.$langs->trans("ToPayOn", dol_print_date($object->retained_warranty_date_limit, 'day')):''; print !empty($object->retained_warranty_date_limit)?' '.$langs->trans("ToPayOn", dol_print_date($object->retained_warranty_date_limit, 'day')):'';
print ' :</td><td align="right">' . price($retainedWarranty) . '</td><td>&nbsp;</td></tr>'; print ' :</td><td align="right">' . price($retainedWarranty) . '</td><td>&nbsp;</td></tr>';
} }
} }
else // Credit note else // Credit note

View File

@ -1738,8 +1738,17 @@ class pdf_sponge extends ModelePDFFactures
return ($tab2_top + ($tab2_hl * $index)); return ($tab2_top + ($tab2_hl * $index));
} }
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
public static function liste_modeles($db, $maxfilenamelength = 0) public static function liste_modeles($db, $maxfilenamelength = 0)
{ {
// phpcs:enable
return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
} }