Code Duplication    Length = 9-10 lines in 3 locations

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.

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

@@ 69-78 (lines=10) @@
66
     *
67
     * @return \Illuminate\View\View
68
     */
69
    public function indexAction()
70
    {
71
        $projects = Project::orderBy('created_at')->get();
72
        $this->subMenu['yours']['active'] = true;
73
74
        return View::make('dashboard.projects.index')
75
            ->withPageTitle(trans_choice('dashboard.projects.projects', 2).' - '.trans('dashboard.dashboard'))
76
            ->withProjects($projects)
77
            ->withSubMenu($this->subMenu);
78
    }
79
80
    /**
81
     * Shows the starred projects view.