Fix warnings

This commit is contained in:
Laurent Destailleur 2023-05-01 18:12:59 +02:00
parent 2d17e77ff7
commit a1ba425765
5 changed files with 7 additions and 24 deletions

View File

@ -1336,6 +1336,7 @@ class Account extends CommonObject
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Charge indicateurs this->nb de tableau de bord * Charge indicateurs this->nb de tableau de bord
*
* @param int $filteraccountid To get info for a particular account id * @param int $filteraccountid To get info for a particular account id
* @return int <0 if ko, >0 if ok * @return int <0 if ko, >0 if ok
*/ */

View File

@ -702,28 +702,6 @@ class ConferenceOrBooth extends ActionComm
$this->initAsSpecimenCommon(); $this->initAsSpecimenCommon();
} }
/**
* Create an array of lines
*
* @return array|int array of lines if OK, <0 if KO
*/
/*public function getLinesArray()
{
$this->lines = array();
$objectline = new ConferenceOrBoothLine($this->db);
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_conferenceorbooth = '.((int) $this->id)));
if (is_numeric($result)) {
$this->error = $objectline->error;
$this->errors = $objectline->errors;
return $result;
} else {
$this->lines = $result;
return $this->lines;
}
}*/
/** /**
* Create a document onto disk according to template module. * Create a document onto disk according to template module.
* *

View File

@ -927,6 +927,8 @@ class SkillRank extends CommonObject
return $this->lines; return $this->lines;
} }
*/ */
return $this->lines;
} }
/** /**

View File

@ -1383,6 +1383,7 @@ class Mo extends CommonObject
/** /**
* Create an array of lines * Create an array of lines
*
* @param string $rolefilter string lines role filter * @param string $rolefilter string lines role filter
* @return array|int array of lines if OK, <0 if KO * @return array|int array of lines if OK, <0 if KO
*/ */

View File

@ -2356,6 +2356,7 @@ class Project extends CommonObject
$taskstatic = new Task($this->db); $taskstatic = new Task($this->db);
$this->lines = $taskstatic->getTasksArray(0, $user, $this->id, 0, 0, '', '-1', '', 0, 0, array(), 0, array(), 0, $loadRoleMode); $this->lines = $taskstatic->getTasksArray(0, $user, $this->id, 0, 0, '', '-1', '', 0, 0, array(), 0, array(), 0, $loadRoleMode);
return 1;
} }
/** /**