mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phan
This commit is contained in:
parent
68ffd2b6a8
commit
0b67bf4dad
|
|
@ -68,7 +68,7 @@ abstract class ModelePDFProjects extends CommonDocGenerator
|
|||
/**
|
||||
* Function to build pdf project onto disk
|
||||
*
|
||||
* @param Project $object Object source to build document
|
||||
* @param Task $object Object source to build document
|
||||
* @param Translate $outputlangs Lang output object
|
||||
* @param string $srctemplatepath Full path of source filename for generator using a template file
|
||||
* @return int<-1,1> 1 if OK, <=0 if KO
|
||||
|
|
|
|||
|
|
@ -606,6 +606,8 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||
}
|
||||
}
|
||||
|
||||
/** var Task $object */
|
||||
|
||||
// Replace tags of lines for tasks
|
||||
try {
|
||||
// Security check
|
||||
|
|
|
|||
|
|
@ -445,6 +445,7 @@ class doc_generic_myobject_odt extends ModelePDFMyObject
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var CommonObjectLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -437,6 +437,7 @@ class doc_generic_recruitmentjobposition_odt extends ModelePDFRecruitmentJobPosi
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var CommonObjectLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user