summaryrefslogtreecommitdiff
path: root/app/Formatter
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
commit8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch)
tree289222e21420b8d0092f06de097090f179202f6b /app/Formatter
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Formatter')
-rw-r--r--app/Formatter/ProjectGanttFormatter.php4
-rw-r--r--app/Formatter/TaskFilterICalendarFormatter.php2
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]);