Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2021-10-23 22:12:57 +02:00
parent fc4c6d2b03
commit a503a4dcc6
3 changed files with 4 additions and 6 deletions

View File

@ -759,8 +759,6 @@ class Categorie extends CommonObject
}
return -1;
}
return 0;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
@ -816,8 +814,6 @@ class Categorie extends CommonObject
$this->error = $this->db->lasterror();
return -1;
}
return 0;
}
/**

View File

@ -384,7 +384,7 @@ class Skill extends CommonObject
/**
* Load object lines in memory from the database
*
* @return int | array <0 if KO, 0 if not found, array if OK
* @return array|int <0 if KO, 0 if not found, array if OK
*/
public function fetchLines()
{

View File

@ -284,7 +284,9 @@ if (empty($reshook)) {
if (!$error && GETPOST('idwarehousetoproduce-'.$line->id.'-'.$i) > 0) {
// Record stock movement
$id_product_batch = 0;
$stockmove->origin = $object;
$stockmove->origin_type = $object->element;
$stockmove->origin_id = $object->id;
$idstockmove = $stockmove->reception($user, $line->fk_product, GETPOST('idwarehousetoproduce-'.$line->id.'-'.$i), $qtytoprocess, $pricetoprocess, $labelmovement, '', '', GETPOST('batchtoproduce-'.$line->id.'-'.$i), dol_now(), $id_product_batch, $codemovement);
if ($idstockmove < 0) {
$error++;