From 75b55ac5d6406a6559e5650e7b2fe850f2b66606 Mon Sep 17 00:00:00 2001 From: John Botella Date: Fri, 28 Jun 2019 16:10:41 +0200 Subject: [PATCH] fix travis recommendations --- htdocs/admin/facture_situation.php | 2 +- htdocs/compta/facture/card.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/facture_situation.php b/htdocs/admin/facture_situation.php index 4907aaf2fea..0e62029e8f2 100644 --- a/htdocs/admin/facture_situation.php +++ b/htdocs/admin/facture_situation.php @@ -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; diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 340527f16ae..df753c1b5ac 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -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'));