summaryrefslogtreecommitdiff
path: root/app/Subscriber/SubtaskTimeTrackingSubscriber.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Subscriber/SubtaskTimeTrackingSubscriber.php')
-rw-r--r--app/Subscriber/SubtaskTimeTrackingSubscriber.php4
1 files changed, 1 insertions, 3 deletions
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']);
}
}