Code Duplication    Length = 3-3 lines in 2 locations

app/Services/Formatter/TaskGanttFormatter.php 1 location

@@ 53-55 (lines=3) @@
50
     */
51
    private function formatTask(array $task)
52
    {
53
        if (!isset($this->columns[$task['project_id']])) {
54
            $this->columns[$task['project_id']] = $this->columnModel->getList($task['project_id']);
55
        }
56
57
        $start = $task['date_started'] ?: time();
58
        $end = $task['date_due'] ?: $start;

app/Helpers/TaskHelper.php 1 location

@@ 444-446 (lines=3) @@
441
     */
442
    public function getProgress($task)
443
    {
444
        if (!isset($this->columns[$task['project_id']])) {
445
            $this->columns[$task['project_id']] = $this->columnModel->getList($task['project_id']);
446
        }
447
448
        return $this->taskModel->getProgress($task, $this->columns[$task['project_id']]);
449
    }