fix travis recommendations

This commit is contained in:
John Botella 2019-06-28 16:10:41 +02:00
parent 8b7c260180
commit 75b55ac5d6
2 changed files with 4 additions and 4 deletions

View File

@ -177,7 +177,7 @@ function _printOnOff($confkey, $title = false, $desc = '')
*
* @return void
*/
function _printInputFormPart($confkey, $title = false, $desc ='', $metas = array(), $type='input', $help = false)
function _printInputFormPart($confkey, $title = false, $desc = '', $metas = array(), $type = 'input', $help = false)
{
global $var, $bc, $langs, $conf, $db, $inputCount;
$var=!$var;

View File

@ -308,7 +308,7 @@ if (empty($reshook))
dol_print_error($db, $object->error);
}
else if ($action == 'setretainedwarrantyconditions' && $user->rights->facture->creer)
elseif ($action == 'setretainedwarrantyconditions' && $user->rights->facture->creer)
{
$object->fetch($id);
$object->retained_warranty_fk_cond_reglement = 0; // To clean property
@ -323,7 +323,7 @@ if (empty($reshook))
if ($result < 0) dol_print_error($db, $object->error);
}
else if ($action == 'setretainedwarranty' && $user->rights->facture->creer)
elseif ($action == 'setretainedwarranty' && $user->rights->facture->creer)
{
$object->fetch($id);
$result = $object->setRetainedWarranty(GETPOST('retained_warranty', 'float'));
@ -331,7 +331,7 @@ if (empty($reshook))
dol_print_error($db, $object->error);
}
else if ($action == 'setretainedwarrantydatelimit' && $user->rights->facture->creer)
elseif ($action == 'setretainedwarrantydatelimit' && $user->rights->facture->creer)
{
$object->fetch($id);
$result = $object->setRetainedWarrantyDateLimit(GETPOST('retained_warranty_date_limit', 'float'));