Fix phpcs
This commit is contained in:
parent
eb0f4d9765
commit
625aab34d6
@ -1645,7 +1645,7 @@ class Product extends CommonObject
|
||||
|
||||
$testExit = array('multiprices','multiprices_ttc','multiprices_base_type','multiprices_min','multiprices_min_ttc','multiprices_tva_tx','multiprices_recuperableonly');
|
||||
|
||||
foreach ($testExit as $field){
|
||||
foreach ($testExit as $field) {
|
||||
if (!isset($this->$field[$level])) {
|
||||
return array();
|
||||
}
|
||||
|
||||
@ -3363,7 +3363,7 @@ class Societe extends CommonObject
|
||||
* @param int $counter Counter to protect against infinite loops
|
||||
* @return int <0 if KO, 0 if OK or 1 if at some level a parent company was the child to compare to
|
||||
*/
|
||||
public function validateFamilyTree($idparent, $idchild, $counter = 0)
|
||||
public function validateFamilyTree($idparent, $idchild, $counter = 0)
|
||||
{
|
||||
if ($counter > 100) {
|
||||
dol_syslog("Too high level of parent - child for company. May be an infinite loop ?", LOG_WARNING);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user