Fixing style errors.

This commit is contained in:
stickler-ci 2021-04-06 15:03:07 +00:00
parent 04cb8453f0
commit f5aa199c94

View File

@ -403,7 +403,7 @@ class Task extends CommonObject
// Close the parent project if it is open (validated) and its tasks are 100% completed // Close the parent project if it is open (validated) and its tasks are 100% completed
$project = new Project($this->db); $project = new Project($this->db);
if ($project->fetch($this->fk_project) > 0) { if ($project->fetch($this->fk_project) > 0) {
if($project->statut == Project::STATUS_VALIDATED) { if ($project->statut == Project::STATUS_VALIDATED) {
$project->getLinesArray(null); // this method does not return <= 0 if fails $project->getLinesArray(null); // this method does not return <= 0 if fails
$projectCompleted = array_reduce( $projectCompleted = array_reduce(
$project->lines, $project->lines,
@ -418,7 +418,6 @@ class Task extends CommonObject
} }
} }
} }
} else { } else {
$error++; $error++;
} }