From 8b7c260180edbba3324cbd3cc6472c5e16ba018d Mon Sep 17 00:00:00 2001 From: John Botella Date: Wed, 26 Jun 2019 12:13:52 +0200 Subject: [PATCH] fix travis recommendations --- htdocs/admin/facture_situation.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/htdocs/admin/facture_situation.php b/htdocs/admin/facture_situation.php index c6fcf57ea22..4907aaf2fea 100644 --- a/htdocs/admin/facture_situation.php +++ b/htdocs/admin/facture_situation.php @@ -107,8 +107,8 @@ _printInputFormPart('INVOICE_SITUATION_DEFAULT_RETAINED_WARRANTY_PERCENT', $lang $inputCount = empty($inputCount)?1:($inputCount+1); print ''; print ''.$langs->trans('PaymentConditionsShortRetainedWarranty').''; -print ' '; -print ''; +print ' '; +print ''; print ''; $form->select_conditions_paiements($conf->global->INVOICE_SITUATION_DEFAULT_RETAINED_WARRANTY_COND_ID, 'value'.$inputCount, -1, 1); print ''; @@ -154,12 +154,12 @@ function _printOnOff($confkey, $title = false, $desc = '') $var=!$var; print ''; print ''.($title?$title:$langs->trans($confkey)); - if(!empty($desc)){ + if (!empty($desc)) { print '
'.$langs->trans($desc).''; } print ''; - print ' '; - print ''; + print ' '; + print ''; print ajax_constantonoff($confkey); print ''; } @@ -188,7 +188,7 @@ function _printInputFormPart($confkey, $title = false, $desc ='', $metas = array 'name' => 'value'.$inputCount ); - if($type!='textarea'){ + if ($type!='textarea') { $defaultMetas['type'] = 'text'; $defaultMetas['value'] = $conf->global->{$confkey}; } @@ -196,32 +196,32 @@ function _printInputFormPart($confkey, $title = false, $desc ='', $metas = array $metas = array_merge($defaultMetas, $metas); $metascompil = ''; - foreach ($metas as $key => $values){ + foreach ($metas as $key => $values) { $metascompil .= ' '.$key.'="'.$values.'" '; } print ''; print ''; - if(!empty($help)){ + if (!empty($help)) { print $form->textwithtooltip(($title?$title:$langs->trans($confkey)), $langs->trans($help), 2, 1, img_help(1, '')); - }else{ + } else { print $title?$title:$langs->trans($confkey); } - if(!empty($desc)){ + if (!empty($desc)) { print '
'.$langs->trans($desc).''; } print ''; - print ' '; - print ''; + print ' '; + print ''; print ''; print ''; - if($type=='textarea'){ + if ($type=='textarea') { print ''; - }else{ + } else { print ''; } print '';