diff --git a/app/Core/Support/DateTimeHelper.php b/app/Core/Support/DateTimeHelper.php index e7d7a54d8..49baa5e29 100644 --- a/app/Core/Support/DateTimeHelper.php +++ b/app/Core/Support/DateTimeHelper.php @@ -93,8 +93,8 @@ public function parseUserDateTime(string $userDate, string $userTime = ''): Carb DateTime::W3C, ]; - //Added in PHP 8.2 - if(defined('DateTime::ISO8601_EXPANDED')) { + // Added in PHP 8.2 + if (defined('DateTime::ISO8601_EXPANDED')) { $standardFormats[] = DateTime::ISO8601_EXPANDED; } diff --git a/app/Domain/Ideas/Controllers/IdeaDialog.php b/app/Domain/Ideas/Controllers/IdeaDialog.php index 53e6dc0f4..cbd133450 100644 --- a/app/Domain/Ideas/Controllers/IdeaDialog.php +++ b/app/Domain/Ideas/Controllers/IdeaDialog.php @@ -259,7 +259,6 @@ public function post($params) } } - } $canvasItem = $this->ideaRepo->getSingleCanvasItem($id); @@ -267,7 +266,6 @@ public function post($params) $this->tpl->assign('canvasTypes', $this->ideaRepo->canvasTypes); $this->tpl->assign('canvasItem', $canvasItem); - return $this->tpl->displayPartial('ideas.ideaDialog'); } diff --git a/app/Domain/Tickets/Controllers/ShowTicket.php b/app/Domain/Tickets/Controllers/ShowTicket.php index 3aefaef50..025a8d416 100644 --- a/app/Domain/Tickets/Controllers/ShowTicket.php +++ b/app/Domain/Tickets/Controllers/ShowTicket.php @@ -218,7 +218,7 @@ public function post($params): Response try { $result = $this->timesheetService->logTime($id, $params); $this->tpl->setNotification($this->language->__('notifications.time_logged_success'), 'success'); - }catch (\Exception $e) { + } catch (\Exception $e) { $this->tpl->setNotification($e->getMessage(), 'error'); } diff --git a/app/Domain/Tickets/Services/Tickets.php b/app/Domain/Tickets/Services/Tickets.php index 5a4fc0dfe..c9fd86db6 100644 --- a/app/Domain/Tickets/Services/Tickets.php +++ b/app/Domain/Tickets/Services/Tickets.php @@ -724,7 +724,7 @@ public function getOpenUserTicketsThisWeekAndLater($userId, $projectId, bool $in try { $dbDueDate = dtHelper()->parseDbDateTime($row['dateToFinish']); - }catch(\Exception $e){ + } catch (\Exception $e) { Log::warning('Error in DB Due date parsing: '.$e->getMessage()); $dbDueDate = dtHelper()->userNow()->addYears(); }