ForgotPasswordController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A showLinkRequestForm() 0 3 1
1
<?php
2
3
namespace Yeelight\Http\Controllers\BackendAuth;
4
5
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
6
use Yeelight\Http\Controllers\Controller;
7
8
/**
9
 * Class ForgotPasswordController
10
 *
11
 * @category Yeelight
12
 *
13
 * @package Yeelight\Http\Controllers\BackendAuth
14
 *
15
 * @author Sheldon Lee <[email protected]>
16
 *
17
 * @license https://opensource.org/licenses/MIT MIT
18
 *
19
 * @link https://www.yeelight.com
20
 */
21
class ForgotPasswordController extends Controller
22
{
23
    /*
24
    |--------------------------------------------------------------------------
25
    | Password Reset Controller
26
    |--------------------------------------------------------------------------
27
    |
28
    | This controller is responsible for handling password reset emails and
29
    | includes a trait which assists in sending these notifications from
30
    | your application to your users. Feel free to explore this trait.
31
    |
32
    */
33
34
    use SendsPasswordResetEmails;
35
36
    /**
37
     * Create a new controller instance.
38
     *
39
     * @return void
40
     */
41
    public function __construct()
42
    {
43
        $this->middleware('guest');
44
    }
45
46
    /**
47
     * Display the form to request a password reset link.
48
     *
49
     * @return \Illuminate\Http\Response
50
     */
51
    public function showLinkRequestForm()
52
    {
53
        return view('angulr.auth.passwords.email');
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('angulr.auth.passwords.email') returns the type Illuminate\View\View|Ill...\Contracts\View\Factory which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
54
    }
55
}
56