Code Duplication    Length = 9-10 lines in 4 locations

app/Http/Controllers/Projects/IssuesController.php 4 locations

@@ 33-42 (lines=10) @@
30
     *
31
     * @return \Illuminate\Http\Response
32
     */
33
    public function indexAction($namespace, $project_path)
34
    {
35
        $project = Project::findByPath($namespace, $project_path);
36
37
        return View::make('projects.issues.index')
38
            ->withProject($project)
39
            ->withIssues($project->issues)
40
            ->withActiveItem($this->active_item)
41
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
42
    }
43
44
    public function showAction($owner_path, $project_path, $issue)
45
    {
@@ 44-53 (lines=10) @@
41
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
42
    }
43
44
    public function showAction($owner_path, $project_path, $issue)
45
    {
46
        $project = Project::findByPath($owner_path, $project_path);
47
48
        return View::make('projects.issues.show')
49
            ->withProject($project)
50
            ->withIssue($issue)
51
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name))
52
            ->withActiveItem($this->active_item);
53
    }
54
55
    public function newAction($namespace, $project_path)
56
    {
@@ 55-63 (lines=9) @@
52
            ->withActiveItem($this->active_item);
53
    }
54
55
    public function newAction($namespace, $project_path)
56
    {
57
        $project = Project::findByPath($namespace, $project_path);
58
59
        return View::make('projects.issues.new')
60
            ->withProject($project)
61
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name))
62
            ->withActiveItem($this->active_item);
63
    }
64
65
    /**
66
     * Show the form for creating a new resource.
@@ 90-99 (lines=10) @@
87
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.issues.new.success')));
88
    }
89
90
    public function editAction($owner_path, $project_path, Issue $issue)
91
    {
92
        $project = Project::findByPath($owner_path, $project_path);
93
94
        return View::make('projects.issues.edit')
95
            ->withProject($project)
96
            ->withIssue($issue)
97
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name))
98
            ->withActiveItem($this->active_item);
99
    }
100
101
    public function updateAction($owner_path, $project_path, Issue $issue)
102
    {