Passed
Pull Request — master (#492)
by John
10:55
created

ForgotPasswordController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use App\Http\Controllers\Controller;
6
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7
8
class ForgotPasswordController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Password Reset Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller is responsible for handling password reset emails and
16
    | includes a trait which assists in sending these notifications from
17
    | your application to your users. Feel free to explore this trait.
18
    |
19
    */
20
21
    use SendsPasswordResetEmails;
22
23
    /**
24
     * Create a new controller instance.
25
     *
26
     * @return void
27
     */
28
    public function __construct()
29
    {
30
        $this->middleware('guest');
31
    }
32
33
    /**
34
     * Display the form to request a password reset link.
35
     *
36
     * @return \Illuminate\Http\Response
37
     */
38
    public function showLinkRequestForm()
39
    {
40
        return view('auth.passwords.email',[
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('auth.passwo...igation' => 'Account')) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
41
            'page_title'=>"Reset Password",
42
            'site_title'=>config("app.name"),
43
            'navigation' => "Account"
44
        ]);
45
    }
46
}
47