ForgotPasswordController::showLinkRequestForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers\Back\Auth;
4
5
use Auth;
6
use Password;
7
use App\Http\Controllers\Controller;
8
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
9
10 View Code Duplication
class ForgotPasswordController extends Controller
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
{
12
    use SendsPasswordResetEmails;
13
14
    /**
15
     * Create a new controller instance.
16
     */
17
    public function __construct()
18
    {
19
        $this->middleware('guest');
20
    }
21
22
    /**
23
     * Display the form to request a password reset link.
24
     *
25
     * @return \Illuminate\Http\Response
26
     */
27
    public function showLinkRequestForm()
28
    {
29
        return view('back.auth.forgotPassword');
30
    }
31
32
    protected function guard()
33
    {
34
        return Auth::guard('back');
35
    }
36
37
    /**
38
     * Get the broker to be used during password reset.
39
     *
40
     * @return \Illuminate\Contracts\Auth\PasswordBroker
41
     */
42
    public function broker()
43
    {
44
        return Password::broker('back');
45
    }
46
}
47