Skip to content

Commit

Permalink
task: fix code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Mar 7, 2025
1 parent 6d8e915 commit e78c6f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Core/Support/DateTimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 0 additions & 2 deletions app/Domain/Ideas/Controllers/IdeaDialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,13 @@ public function post($params)
}
}


}

$canvasItem = $this->ideaRepo->getSingleCanvasItem($id);

$this->tpl->assign('canvasTypes', $this->ideaRepo->canvasTypes);
$this->tpl->assign('canvasItem', $canvasItem);


return $this->tpl->displayPartial('ideas.ideaDialog');
}

Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Tickets/Controllers/ShowTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Tickets/Services/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e78c6f0

Please sign in to comment.