Code Duplication    Length = 9-9 lines in 4 locations

app/Http/Controllers/RepositoryController.php 4 locations

@@ 84-92 (lines=9) @@
81
            ->withFiles($files->output());
82
    }
83
84
    public function showBlob($repo, $path)
85
    {
86
        $pageTitle = sprintf('"%s" - %s - %s', 'project title', trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
87
88
        return View::make('dashboard.repositories.blob')
89
            ->withPageTitle($pageTitle)
90
            ->withProject([])
91
            ->withGroups([]);
92
    }
93
94
    public function showCommits($repo, $path)
95
    {
@@ 94-102 (lines=9) @@
91
            ->withGroups([]);
92
    }
93
94
    public function showCommits($repo, $path)
95
    {
96
        $pageTitle = sprintf('"%s" - %s - %s', 'project title', trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
97
98
        return View::make('dashboard.repositories.commits')
99
            ->withPageTitle($pageTitle)
100
            ->withProject([])
101
            ->withGroups([]);
102
    }
103
104
    public function showRaw($repo, $path)
105
    {
@@ 104-112 (lines=9) @@
101
            ->withGroups([]);
102
    }
103
104
    public function showRaw($repo, $path)
105
    {
106
        $pageTitle = sprintf('"%s" - %s - %s', 'project title', trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
107
108
        return View::make('dashboard.repositories.raw')
109
            ->withPageTitle($pageTitle)
110
            ->withProject([])
111
            ->withGroups([]);
112
    }
113
114
    public function showBlame($repo, $path)
115
    {
@@ 114-122 (lines=9) @@
111
            ->withGroups([]);
112
    }
113
114
    public function showBlame($repo, $path)
115
    {
116
        $pageTitle = sprintf('"%s" - %s - %s', 'project title', trans('dashboard.projects.edit.title'), trans('dashboard.dashboard'));
117
118
        return View::make('dashboard.repositories.blame')
119
            ->withPageTitle($pageTitle)
120
            ->withProject([])
121
            ->withGroups([]);
122
    }
123
124
    public function getRepositoryFromName($paths, $repo)
125
    {