From 86f6736a18ada5f269e7066ef7fb6b2cdb74a3e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Mar 2020 18:55:47 +0100 Subject: [PATCH] Fix phpcs --- htdocs/core/class/dolgraph.class.php | 1 - htdocs/core/class/html.formother.class.php | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 6511512d2ad..d9521505216 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -1246,7 +1246,6 @@ class DolGraph $color = 'rgb('.$newcolor[0].', '.$newcolor[1].', '.$newcolor[2].', 0.9)'; $bordercolor = 'rgb('.$newcolor[0].', '.$newcolor[1].', '.$newcolor[2].')'; - } else { // We do not use a 'group by' $color = 'rgb('.$this->datacolor[$i][0].', '.$this->datacolor[$i][1].', '.$this->datacolor[$i][2].', 0.9)'; $bordercolor = $color; diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 958a5b296d7..829a3f9c72f 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -1348,7 +1348,8 @@ class FormOther * @param array $arrayofgroupby Array of groupby to fill * @return string HTML string component */ - public function selectGroupByField($object, $search_groupby, &$arrayofgroupby) { + public function selectGroupByField($object, $search_groupby, &$arrayofgroupby) + { global $langs, $extrafields, $form; $YYYY=substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1); @@ -1404,7 +1405,8 @@ class FormOther * @param array $arrayofxaxis Array of groupby to fill * @return string HTML string component */ - public function selectXAxisField($object, $search_xaxis, &$arrayofxaxis) { + public function selectXAxisField($object, $search_xaxis, &$arrayofxaxis) + { global $langs, $extrafields, $form; $YYYY=substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1).substr($langs->trans("Year"), 0, 1);