Code Duplication    Length = 14-14 lines in 3 locations

src/Controllers/AuthController.php 3 locations

@@ 47-60 (lines=14) @@
44
     *
45
     * @return View
46
     */
47
    public function getSignin()
48
    {
49
        // Is the user logged in?
50
        if (Sentinel::check())
51
        {
52
            if (Sentinel::inRole('admin'))
53
                return Redirect::route('home');
54
            else
55
                return Redirect::route('user.home');
56
        }
57
58
        // Show the page
59
        return View('auth.login');
60
    }
61
62
    /**
63
     * Account sign up.
@@ 67-80 (lines=14) @@
64
     *
65
     * @return View
66
     */
67
    public function getSignup()
68
    {
69
        // Is the user logged in?
70
        if (Sentinel::check())
71
        {
72
            if (Sentinel::inRole('admin'))
73
                return Redirect::route('home');
74
            else
75
                return Redirect::route('user.home');
76
        }
77
78
        // Show the page
79
        return View('auth.register');
80
    }
81
82
    /**
83
     * Account sign up.
@@ 87-100 (lines=14) @@
84
     *
85
     * @return View
86
     */
87
    public function getLostPassword()
88
    {
89
        // Is the user logged in?
90
        if (Sentinel::check())
91
        {
92
            if (Sentinel::inRole('admin'))
93
                return Redirect::route('home');
94
            else
95
                return Redirect::route('user.home');
96
        }
97
98
        // Show the page
99
        return View('auth.forgot-password');
100
    }
101
102
    /**
103
     * Forgot Password Confirmation page.