diff options
Diffstat (limited to 'app/Formatter')
-rw-r--r-- | app/Formatter/ProjectGanttFormatter.php | 4 | ||||
-rw-r--r-- | app/Formatter/TaskFilterICalendarFormatter.php | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/app/Formatter/ProjectGanttFormatter.php b/app/Formatter/ProjectGanttFormatter.php index b629bdfa..17496088 100644 --- a/app/Formatter/ProjectGanttFormatter.php +++ b/app/Formatter/ProjectGanttFormatter.php @@ -31,9 +31,7 @@ class ProjectGanttFormatter extends Project implements FormatterInterface { if (empty($project_ids)) { $this->projects = array(); - } - else { - + } else { $this->projects = $this->db ->table(self::TABLE) ->asc('start_date') diff --git a/app/Formatter/TaskFilterICalendarFormatter.php b/app/Formatter/TaskFilterICalendarFormatter.php index bdf6b6c2..25b3aea0 100644 --- a/app/Formatter/TaskFilterICalendarFormatter.php +++ b/app/Formatter/TaskFilterICalendarFormatter.php @@ -56,7 +56,6 @@ class TaskFilterICalendarFormatter extends TaskFilterCalendarEvent implements Fo public function addDateTimeEvents() { foreach ($this->query->findAll() as $task) { - $start = new DateTime; $start->setTimestamp($task[$this->startColumn]); @@ -82,7 +81,6 @@ class TaskFilterICalendarFormatter extends TaskFilterCalendarEvent implements Fo public function addFullDayEvents() { foreach ($this->query->findAll() as $task) { - $date = new DateTime; $date->setTimestamp($task[$this->startColumn]); |