diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 3e9be60d81e..d9a1928d021 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2364,13 +2364,14 @@ class Product extends CommonObject * @param int $socid Id societe * @return integer Tableau des stats dans $this->stats_mo, <0 if ko >0 if ok */ - public function load_stats_mo($socid = 0) { + public function load_stats_mo($socid = 0) + { // phpcs:enable global $user, $hookmanager; $error=0; - foreach(array('toconsume','consumed','toproduce','produced') as $role) { + foreach (array('toconsume','consumed','toproduce','produced') as $role) { $this->stats_mo['customers_'.$role] = 0; $this->stats_mo['nb_'.$role] = 0; $this->stats_mo['qty_'.$role] = 0;