Code Duplication    Length = 11-12 lines in 2 locations

app/Http/Controllers/ActivityController.php 1 location

@@ 36-47 (lines=12) @@
33
    /**
34
     * Display task activities.
35
     */
36
    public function task()
37
    {
38
        $task = $this->getTask();
39
40
        $this->response->html($this->helper->layout->task('activity/task', [
41
            'title'   => $task['title'],
42
            'task'    => $task,
43
            'project' => $this->projectModel->getById($task['project_id']),
44
            'events'  => $this->helper->projectActivity->getTaskEvents($task['id']),
45
            'tags'    => $this->taskTagModel->getList($task['id']),
46
        ]));
47
    }
48
}
49

app/Http/Controllers/Task/TaskController.php 1 location

@@ 188-198 (lines=11) @@
185
    /**
186
     * Display the task transitions.
187
     */
188
    public function transitions()
189
    {
190
        $task = $this->getTask();
191
192
        $this->response->html($this->helper->layout->task('task/transitions', [
193
            'task'        => $task,
194
            'project'     => $this->projectModel->getById($task['project_id']),
195
            'transitions' => $this->transitionModel->getAllByTask($task['id']),
196
            'tags'        => $this->taskTagModel->getList($task['id']),
197
        ]));
198
    }
199
200
    /**
201
     * Display a form to create a new task.