Passed
Push — feature/application-review-ui ( afbf92 )
by Chris
06:55
created

ForgotPasswordController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
c 0
b 0
f 0
dl 0
loc 37
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A showLinkRequestForm() 0 5 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
6
use Illuminate\Support\Facades\Lang;
7
use App\Http\Controllers\Auth\AuthController;
8
9
class ForgotPasswordController extends AuthController
10
{
11
    /*
12
    |--------------------------------------------------------------------------
13
    | Password Reset Controller
14
    |--------------------------------------------------------------------------
15
    |
16
    | This controller is responsible for handling password reset emails and
17
    | includes a trait which assists in sending these notifications from
18
    | your application to your users. Feel free to explore this trait.
19
    |
20
    */
21
22
    use SendsPasswordResetEmails;
23
24
    /**
25
     * Create a new controller instance.
26
     *
27
     * @return void
28
     */
29
    public function __construct()
30
    {
31
        $this->middleware('guest');
32
    }
33
34
    /**
35
     * OVERRIDE
36
     *
37
     * Display the form to request a password reset link.
38
     *
39
     * @return \Illuminate\Http\Response
40
     */
41
    public function showLinkRequestForm()
42
    {
43
        return view('auth.passwords.email', [
0 ignored issues
show
Bug introduced by
The function view was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
        return /** @scrutinizer ignore-call */ view('auth.passwords.email', [
Loading history...
44
            'routes' => $this->auth_routes(),
45
            'forgot_password' => Lang::get('common/auth/forgot_password'),
46
        ]);
47
    }
48
}
49