Fix scrutinizer warnings

This commit is contained in:
Laurent Destailleur 2019-06-18 20:01:28 +02:00
parent f3703c8805
commit 525598f6aa
4 changed files with 6 additions and 8 deletions

View File

@ -183,14 +183,14 @@ class Adherent extends CommonObject
* @var integer * @var integer
*/ */
public $datec; public $datec;
/** /**
* Date modification record (tms) * Date modification record (tms)
* *
* @var integer * @var integer
*/ */
public $datem; public $datem;
public $datevalid; public $datevalid;
public $gender; public $gender;
@ -1268,7 +1268,7 @@ class Adherent extends CommonObject
$this->ref = $obj->rowid; $this->ref = $obj->rowid;
$this->id = $obj->rowid; $this->id = $obj->rowid;
$this->ref_ext = $obj->ref_ext; $this->ref_ext = $obj->ref_ext;
$this->civility_id = $obj->civility_code; // Bad. Kept for backard compatibility $this->civility_id = $obj->civility_code; // Bad. Kept for backard compatibility
$this->civility_code = $obj->civility_code; $this->civility_code = $obj->civility_code;
$this->civility = $obj->civility_code?($langs->trans("Civility".$obj->civility_code) != ("Civility".$obj->civility_code) ? $langs->trans("Civility".$obj->civility_code) : $obj->civility_code):''; $this->civility = $obj->civility_code?($langs->trans("Civility".$obj->civility_code) != ("Civility".$obj->civility_code) ? $langs->trans("Civility".$obj->civility_code) : $obj->civility_code):'';
@ -2465,7 +2465,7 @@ class Adherent extends CommonObject
* *
* @return array Tableau info des attributs * @return array Tableau info des attributs
*/ */
private function _load_ldap_info() public function _load_ldap_info()
{ {
// phpcs:enable // phpcs:enable
global $conf,$langs; global $conf,$langs;

View File

@ -525,7 +525,7 @@ class Contact extends CommonObject
* *
* @return array Tableau info des attributs * @return array Tableau info des attributs
*/ */
private function _load_ldap_info() public function _load_ldap_info()
{ {
// phpcs:enable // phpcs:enable
global $conf, $langs; global $conf, $langs;

View File

@ -2300,7 +2300,6 @@ class User extends CommonObject
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0; if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0;
$result=''; $label=''; $result=''; $label='';
$link=''; $linkstart=''; $linkend='';
if (! empty($this->photo)) if (! empty($this->photo))
{ {

View File

@ -867,7 +867,6 @@ class UserGroup extends CommonObject
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpicto) $withpicto=0; if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpicto) $withpicto=0;
$result=''; $label=''; $result=''; $label='';
$link=''; $linkstart=''; $linkend='';
$label.= '<div class="centpercent">'; $label.= '<div class="centpercent">';
$label.= '<u>' . $langs->trans("Group") . '</u><br>'; $label.= '<u>' . $langs->trans("Group") . '</u><br>';
@ -957,7 +956,7 @@ class UserGroup extends CommonObject
public function _load_ldap_info() public function _load_ldap_info()
{ {
// phpcs:enable // phpcs:enable
global $conf,$langs; global $conf;
$info=array(); $info=array();