From 774ec5a27406e1a6307eec6dfa08700ab54e8d89 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 19 Sep 2019 14:30:23 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/product/stock/card.php | 4 ++-- htdocs/product/stock/class/entrepot.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index 2d6d5698d61..28df15dfda4 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -454,7 +454,7 @@ else // Categories if($conf->categorie->enabled) { print ''.$langs->trans("Categories").''; - print $form->showCategories($object->id,'stock',1); + print $form->showCategories($object->id, 'stock', 1); print ""; } print ""; @@ -734,7 +734,7 @@ else print ''.$langs->trans("Categories").''; $cate_arbo = $form->select_all_categories(Categorie::TYPE_STOCK, '', 'parent', 64, 0, 1); $c = new Categorie($db); - $cats = $c->containing($object->id,Categorie::TYPE_STOCK); + $cats = $c->containing($object->id, Categorie::TYPE_STOCK); $arrayselected=array(); foreach($cats as $cat) { $arrayselected[] = $cat->id; diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 716c34f6077..2333511027b 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -853,7 +853,8 @@ class Entrepot extends CommonObject * * @param int[]|int $categories Category or categories IDs */ - public function setCategories($categories) { + public function setCategories($categories) + { // Handle single category if (! is_array($categories)) { $categories = array($categories); @@ -887,5 +888,4 @@ class Entrepot extends CommonObject return; } - }