diff options
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/ProjectActivitySubscriber.php | 1 | ||||
-rw-r--r-- | app/Subscriber/RecurringTaskSubscriber.php | 4 | ||||
-rw-r--r-- | app/Subscriber/SubtaskTimeTrackingSubscriber.php | 4 | ||||
-rw-r--r-- | app/Subscriber/TransitionSubscriber.php | 2 |
4 files changed, 3 insertions, 8 deletions
diff --git a/app/Subscriber/ProjectActivitySubscriber.php b/app/Subscriber/ProjectActivitySubscriber.php index f8d5d150..a66bbc5a 100644 --- a/app/Subscriber/ProjectActivitySubscriber.php +++ b/app/Subscriber/ProjectActivitySubscriber.php @@ -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( diff --git a/app/Subscriber/RecurringTaskSubscriber.php b/app/Subscriber/RecurringTaskSubscriber.php index 793233c6..b03ffcf8 100644 --- a/app/Subscriber/RecurringTaskSubscriber.php +++ b/app/Subscriber/RecurringTaskSubscriber.php @@ -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']); } } diff --git a/app/Subscriber/SubtaskTimeTrackingSubscriber.php b/app/Subscriber/SubtaskTimeTrackingSubscriber.php index bb522b2e..b5e0354d 100644 --- a/app/Subscriber/SubtaskTimeTrackingSubscriber.php +++ b/app/Subscriber/SubtaskTimeTrackingSubscriber.php @@ -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']); } } diff --git a/app/Subscriber/TransitionSubscriber.php b/app/Subscriber/TransitionSubscriber.php index f14590f7..35352dc7 100644 --- a/app/Subscriber/TransitionSubscriber.php +++ b/app/Subscriber/TransitionSubscriber.php @@ -23,4 +23,4 @@ class TransitionSubscriber extends \Kanboard\Core\Base implements EventSubscribe $this->transition->save($user_id, $event->getAll()); } } -}
\ No newline at end of file +} |