From b5ac78d9a0532eac0961437adaf0ae05dc5a820f Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Wed, 19 May 2021 16:56:52 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/societe/class/societe.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 3c7d642c23f..a1950bd5214 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -3120,8 +3120,7 @@ class Societe extends CommonObject setEventMessages('la maison mère choisie est déjà filiale de ce tiers', null, 'warnings'); return -1; } // elseif ($sameparent == 1) - else - { + else { $sql = 'UPDATE '.MAIN_DB_PREFIX.'societe SET parent = '.($id > 0 ? $id : 'null').' WHERE rowid = '.$this->id; dol_syslog(get_class($this).'::set_parent', LOG_DEBUG); $resql = $this->db->query($sql); @@ -3130,7 +3129,7 @@ class Societe extends CommonObject $this->parent = $id; return 1; } // if ($resql) - else return -1; + else return -1; } // else // elseif ($sameparent == 1) } // if ($this->id) else return -1; @@ -3157,10 +3156,10 @@ class Societe extends CommonObject if ($obj->parent == '') return 0; elseif ($obj->parent == $idchild) return 1; - else $sameparent = $this->get_parents($obj->parent, $idchild); + else $sameparent = $this->get_parents($obj->parent, $idchild); return $sameparent; } // if ($resql) - else return -1; + else return -1; } // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps