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 1e664f2cd8a..25feb132117 100644
--- a/htdocs/product/stock/class/entrepot.class.php
+++ b/htdocs/product/stock/class/entrepot.class.php
@@ -854,7 +854,8 @@ class Entrepot extends CommonObject
* @param int[]|int $categories Category or categories IDs
* @return void
*/
- public function setCategories($categories) {
+ public function setCategories($categories)
+ {
// Handle single category
if (! is_array($categories)) {
$categories = array($categories);
@@ -888,5 +889,4 @@ class Entrepot extends CommonObject
return;
}
-
}
|