@@ -356,8 +356,6 @@ class Contact extends CommonObject
*/
public function __construct($db)
{
- global $conf, $langs;
-
$this->db = $db;
$this->statut = 1; // By default, status is enabled
@@ -1738,8 +1738,6 @@ abstract class CommonObject
public function fetch_thirdparty($force_thirdparty_id = 0)
// phpcs:enable
- global $conf;
if (empty($this->socid) && empty($this->fk_soc) && empty($force_thirdparty_id)) {
return 0;
}
@@ -276,8 +276,6 @@ trait CommonPeople
public function setUpperOrLowerCase()
if (getDolGlobalString('MAIN_FIRST_TO_UPPER')) {
$this->lastname = dol_ucwords(dol_strtolower($this->lastname));
$this->firstname = dol_ucwords(dol_strtolower($this->firstname));
@@ -888,7 +888,7 @@ class Societe extends CommonObject
public function create(User $user, $notrigger = 0)
- global $langs, $conf, $mysoc;
+ global $langs, $conf;
$error = 0;