Run php-cs-fixer on the code base

This commit is contained in:
Frederic Guillot
2015-10-17 10:09:03 -04:00
parent b40190ee9f
commit 8c532efd5f
147 changed files with 465 additions and 772 deletions

View File

@@ -32,7 +32,6 @@ class ProjectActivitySubscriber extends \Kanboard\Core\Base implements EventSubs
{
// Executed only when someone is logged
if ($this->userSession->isLogged() && isset($event['task_id'])) {
$values = $this->getValues($event);
$this->projectActivity->createEvent(

View File

@@ -19,11 +19,9 @@ class RecurringTaskSubscriber extends \Kanboard\Core\Base implements EventSubscr
public function onMove(TaskEvent $event)
{
if ($event['recurrence_status'] == Task::RECURRING_STATUS_PENDING) {
if ($event['recurrence_trigger'] == Task::RECURRING_TRIGGER_FIRST_COLUMN && $this->board->getFirstColumn($event['project_id']) == $event['src_column_id']) {
$this->taskDuplication->duplicateRecurringTask($event['task_id']);
}
else if ($event['recurrence_trigger'] == Task::RECURRING_TRIGGER_LAST_COLUMN && $this->board->getLastColumn($event['project_id']) == $event['dst_column_id']) {
} elseif ($event['recurrence_trigger'] == Task::RECURRING_TRIGGER_LAST_COLUMN && $this->board->getLastColumn($event['project_id']) == $event['dst_column_id']) {
$this->taskDuplication->duplicateRecurringTask($event['task_id']);
}
}

View File

@@ -30,7 +30,6 @@ class SubtaskTimeTrackingSubscriber extends \Kanboard\Core\Base implements Event
public function logStartEnd(SubtaskEvent $event)
{
if (isset($event['status']) && $this->config->get('subtask_time_tracking') == 1) {
$subtask = $this->subtask->getById($event['id']);
if (empty($subtask['user_id'])) {
@@ -39,8 +38,7 @@ class SubtaskTimeTrackingSubscriber extends \Kanboard\Core\Base implements Event
if ($subtask['status'] == Subtask::STATUS_INPROGRESS) {
return $this->subtaskTimeTracking->logStartTime($subtask['id'], $subtask['user_id']);
}
else {
} else {
return $this->subtaskTimeTracking->logEndTime($subtask['id'], $subtask['user_id']);
}
}

View File

@@ -23,4 +23,4 @@ class TransitionSubscriber extends \Kanboard\Core\Base implements EventSubscribe
$this->transition->save($user_id, $event->getAll());
}
}
}
}