Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 32-41 (lines=10) @@
29
     *
30
     * @return \Illuminate\Http\Response
31
     */
32
    public function index($namespace, $project_path)
33
    {
34
        $project = $this->getProject($namespace, $project_path);
35
36
        return View::make('projects.issues.index')
37
            ->withProject($project)
38
            ->withIssues($project->issues)
39
            ->withActiveItem($this->active_item)
40
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
41
    }
42
43
    public function add($namespace, $project_path)
44
    {
@@ 43-51 (lines=9) @@
40
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
41
    }
42
43
    public function add($namespace, $project_path)
44
    {
45
        $project = $this->getProject($namespace, $project_path);
46
47
        return View::make('projects.issues.add')
48
            ->withProject($project)
49
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name))
50
            ->withActiveItem($this->active_item);
51
    }
52
53
    /**
54
     * Show the form for creating a new resource.