Code Duplication    Length = 11-11 lines in 2 locations

app/Http/Controllers/Dashboard/ProjectController.php 2 locations

@@ 123-133 (lines=11) @@
120
     *
121
     * @return \Illuminate\View\View
122
     */
123
    public function showProject(Project $project)
124
    {
125
        $teams = ProjectTeam::all();
126
127
        $pageTitle = sprintf('"%s" - %s - %s', $project->name, trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
128
129
        return View::make('dashboard.projects.show')
130
            ->withPageTitle($pageTitle)
131
            ->withProject($project)
132
            ->withTeams($teams);
133
    }
134
135
    /**
136
     * Shows the edit project view.
@@ 142-152 (lines=11) @@
139
     *
140
     * @return \Illuminate\View\View
141
     */
142
    public function showEditProject(Project $project)
143
    {
144
        $teams = ProjectTeam::all();
145
146
        $pageTitle = sprintf('"%s" - %s - %s', $project->name, trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
147
148
        return View::make('dashboard.projects.edit')
149
            ->withPageTitle($pageTitle)
150
            ->withProject($project)
151
            ->withTeams($teams);
152
    }
153
154
    /**
155
     * Updates a project.