From 034f1167fde30d45fa95408e102bc38d83ca3c9d Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 27 Apr 2023 18:51:33 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/projet/class/api_tasks.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/class/api_tasks.class.php b/htdocs/projet/class/api_tasks.class.php index c239de3709e..2fb1908ddc7 100644 --- a/htdocs/projet/class/api_tasks.class.php +++ b/htdocs/projet/class/api_tasks.class.php @@ -647,14 +647,14 @@ class Tasks extends DolibarrApi ); } - protected function _timespentRecordChecks($id, $timespent_id) { + protected function _timespentRecordChecks($id, $timespent_id) + { if ($this->task->fetch($id) <= 0) { throw new RestException(404, 'Task not found'); } if ($this->task->fetchTimeSpent($timespent_id) <= 0) { throw new RestException(404, 'Timespent not found'); - } - elseif ($this->task->id != $id) { + } elseif ($this->task->id != $id) { throw new RestException(404, 'Timespent not found in selected task'); } }