mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan
This commit is contained in:
parent
c8e3dfb995
commit
09a953d18f
|
|
@ -3,6 +3,7 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -708,7 +709,7 @@ if (count($output_phan_json) != 0) {
|
|||
$tmpphan .= '<td class="">';
|
||||
$tmpphan .= '<a href="'.$code_url_attr.'" target="_blank">'.$line_range_txt.'</a>';
|
||||
$tmpphan .= '</td>';
|
||||
$tmpphan .= '<td class="tdoverflowmax300">'.dolPrintLabel($notice['description']).'</td>';
|
||||
$tmpphan .= '<td class="tdoverflowmax300" title="'.dolPrintHTMLForAttribute($notice['description']).'">'.dolPrintLabel($notice['description']).'</td>';
|
||||
$tmpphan .= '</tr>';
|
||||
$tmpphan .= "\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -161,11 +161,11 @@ class Evaluation extends CommonObject
|
|||
// */
|
||||
// protected $childtables = array();
|
||||
|
||||
// /**
|
||||
// * @var array List of child tables. To know object to delete on cascade.
|
||||
// * If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
|
||||
// * call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
// */
|
||||
/**
|
||||
* @var array List of child tables. To know object to delete on cascade.
|
||||
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
|
||||
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
*/
|
||||
protected $childtablesoncascade = array('@EvaluationLine:hrm/class/evaluationdet.class.php:fk_evaluation');
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -122,8 +122,6 @@ class Job extends CommonObject
|
|||
public $date_creation;
|
||||
|
||||
public $deplacement;
|
||||
public $note_public;
|
||||
public $note_private;
|
||||
public $fk_user_creat;
|
||||
public $fk_user_modif;
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
|
@ -136,9 +134,9 @@ class Job extends CommonObject
|
|||
// */
|
||||
// public $table_element_line = 'hrm_jobline';
|
||||
|
||||
// /**
|
||||
// * @var string Field with ID of parent key if this object has a parent
|
||||
// */
|
||||
/**
|
||||
* @var string Field with ID of parent key if this object has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_job';
|
||||
|
||||
// /**
|
||||
|
|
@ -146,16 +144,19 @@ class Job extends CommonObject
|
|||
// */
|
||||
// public $class_element_line = 'Jobline';
|
||||
|
||||
// /**
|
||||
// * @var string[] List of child tables. To test if we can delete object.
|
||||
// */
|
||||
protected $childtables = array('hrm_evaluation', 'hrm_job_user');
|
||||
/**
|
||||
* @var array<string,string[]> List of child tables. To test if we can delete object.
|
||||
*/
|
||||
protected $childtables = array(
|
||||
'hrm_evaluation' => ['name' => 'Evaluation'],
|
||||
'hrm_job_user' => ['name' => 'Job'],
|
||||
);
|
||||
|
||||
// /**
|
||||
// * @var array List of child tables. To know object to delete on cascade.
|
||||
// * If name matches '@ClassNAme:FilePathClass:ParentFkFieldName' it will
|
||||
// * call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
// */
|
||||
/**
|
||||
* @var string[] List of child tables. To know object to delete on cascade.
|
||||
* If name matches '@ClassNAme:FilePathClass:ParentFkFieldName' it will
|
||||
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
*/
|
||||
protected $childtablesoncascade = array("@SkillRank:hrm/class/skillrank.class.php:fk_object:(objecttype:=:'job')");
|
||||
|
||||
// /**
|
||||
|
|
|
|||
|
|
@ -133,8 +133,6 @@ class Skill extends CommonObject
|
|||
public $date_validite;
|
||||
public $temps_theorique;
|
||||
public $skill_type;
|
||||
public $note_public;
|
||||
public $note_private;
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
|
|
@ -145,9 +143,9 @@ class Skill extends CommonObject
|
|||
// */
|
||||
// public $table_element_line = 'hrm_skillline';
|
||||
|
||||
// /**
|
||||
// * @var string Field with ID of parent key if this object has a parent
|
||||
// */
|
||||
/**
|
||||
* @var string Field with ID of parent key if this object has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_skill';
|
||||
|
||||
// /**
|
||||
|
|
@ -155,16 +153,19 @@ class Skill extends CommonObject
|
|||
// */
|
||||
// public $class_element_line = 'Skillline';
|
||||
|
||||
// /**
|
||||
// * @var array List of child tables. To test if we can delete object.
|
||||
// */
|
||||
protected $childtables = array('hrm_skillrank', 'hrm_evaluationdet');
|
||||
/**
|
||||
* @var array<string,string[]> List of child tables. To test if we can delete object.
|
||||
*/
|
||||
protected $childtables = array(
|
||||
'hrm_skillrank' => ['name' => 'SkillRank'],
|
||||
'hrm_evaluationdet' => ['name' => 'EvaluationDet'],
|
||||
);
|
||||
|
||||
// /**
|
||||
// * @var array List of child tables. To know object to delete on cascade.
|
||||
// * If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
|
||||
// * call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
// */
|
||||
/**
|
||||
* @var string[] List of child tables. To know object to delete on cascade.
|
||||
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
|
||||
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
|
||||
*/
|
||||
protected $childtablesoncascade = array('hrm_skilldet');
|
||||
|
||||
// /**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user