Code Duplication    Length = 9-10 lines in 3 locations

app/Http/Controllers/Dashboard/ProjectController.php 1 location

@@ 77-86 (lines=10) @@
74
     *
75
     * @return \Illuminate\View\View
76
     */
77
    public function indexAction()
78
    {
79
        $projects = Project::orderBy('created_at')->get();
80
        $this->subMenu['yours']['active'] = true;
81
82
        return View::make('dashboard.projects.index')
83
            ->withPageTitle(trans_choice('dashboard.projects.projects', 2).' - '.trans('dashboard.dashboard'))
84
            ->withProjects($projects)
85
            ->withSubMenu($this->subMenu);
86
    }
87
88
    /**
89
     * Shows the starred projects view.

app/Http/Controllers/Dashboard/GroupsController.php 1 location

@@ 61-69 (lines=9) @@
58
     *
59
     * @return \Illuminate\View\View
60
     */
61
    public function indexAction()
62
    {
63
        $this->subMenu['yours']['active'] = true;
64
65
        return View::make('dashboard.groups.index')
66
            ->withPageTitle(trans_choice('gitamin.groups.groups', 2).' - '.trans('dashboard.dashboard'))
67
            ->withGroups(Group::IsGroup()->Mine()->get())
68
            ->withSubMenu($this->subMenu);
69
    }
70
}
71

app/Http/Controllers/GroupsController.php 1 location

@@ 74-82 (lines=9) @@
71
     *
72
     * @return \Illuminate\View\View
73
     */
74
    public function indexAction()
75
    {
76
        $this->subMenu['groups']['active'] = true;
77
78
        return View::make('groups.index')
79
            ->withPageTitle(trans_choice('gitamin.groups.groups', 2).' - '.trans('dashboard.dashboard'))
80
            ->withGroups(Group::get())
81
            ->withSubMenu($this->subMenu);
82
    }
83
84
    /**
85
     * Shows the group view.