Code Duplication    Length = 19-19 lines in 4 locations

app/Http/Controllers/Projects/GraphsController.php 1 location

@@ 15-33 (lines=19) @@
12
use Illuminate\Support\Facades\Redirect;
13
use Illuminate\Support\Facades\View;
14
15
class GraphsController extends Controller
16
{
17
    protected $active_item = 'graphs';
18
    /**
19
     * Display a listing of the resource.
20
     *
21
     * @return \Illuminate\Http\Response
22
     */
23
    public function indexAction($namespace, $project_path)
24
    {
25
        $project = Project::findByPath($namespace, $project_path);
26
27
        return View::make('projects.graphs.index')
28
            ->withProject($project)
29
            ->withWikis([])
30
            ->withActiveItem($this->active_item)
31
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
32
    }
33
}
34

app/Http/Controllers/Projects/PullRequestsController.php 1 location

@@ 15-33 (lines=19) @@
12
use Illuminate\Support\Facades\Redirect;
13
use Illuminate\Support\Facades\View;
14
15
class PullRequestsController extends Controller
16
{
17
    protected $active_item = 'pulls';
18
    /**
19
     * Display a listing of the resource.
20
     *
21
     * @return \Illuminate\Http\Response
22
     */
23
    public function indexAction($namespace, $project_path)
24
    {
25
        $project = Project::findByPath($namespace, $project_path);
26
27
        return View::make('projects.pulls.index')
28
            ->withProject($project)
29
            ->withPullRequests([])
30
            ->withActiveItem($this->active_item)
31
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
32
    }
33
}
34

app/Http/Controllers/Projects/PulseController.php 1 location

@@ 15-33 (lines=19) @@
12
use Illuminate\Support\Facades\Redirect;
13
use Illuminate\Support\Facades\View;
14
15
class PulseController extends Controller
16
{
17
    protected $active_item = 'pulse';
18
    /**
19
     * Display a listing of the resource.
20
     *
21
     * @return \Illuminate\Http\Response
22
     */
23
    public function indexAction($namespace, $project_path)
24
    {
25
        $project = Project::findByPath($namespace, $project_path);
26
27
        return View::make('projects.pulse.index')
28
            ->withProject($project)
29
            ->withWikis([])
30
            ->withActiveItem($this->active_item)
31
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
32
    }
33
}
34

app/Http/Controllers/Projects/WikiController.php 1 location

@@ 15-33 (lines=19) @@
12
use Illuminate\Support\Facades\Redirect;
13
use Illuminate\Support\Facades\View;
14
15
class WikiController extends Controller
16
{
17
    protected $active_item = 'wiki';
18
    /**
19
     * Display a listing of the resource.
20
     *
21
     * @return \Illuminate\Http\Response
22
     */
23
    public function indexAction($namespace, $project_path)
24
    {
25
        $project = Project::findByPath($namespace, $project_path);
26
27
        return View::make('projects.wiki.index')
28
            ->withProject($project)
29
            ->withWikis([])
30
            ->withActiveItem($this->active_item)
31
            ->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name));
32
    }
33
}
34