ConfirmPasswordController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A showConfirmForm() 0 4 1
1
<?php
2
3
namespace Torralbodavid\DuckFunkCore\Http\Controllers\Auth;
4
5
use Illuminate\Foundation\Auth\ConfirmsPasswords;
6
use Illuminate\Routing\Controller;
7
8
class ConfirmPasswordController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Confirm Password Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller is responsible for handling password confirmations
16
    | and uses a simple trait to include this behavior. You're free to
17
    | explore this trait and override any methods you wish to tweak.
18
    |
19
    */
20
    use ConfirmsPasswords;
21
    /**
22
     * Where to redirect users when the intended url fails.
23
     *
24
     * @var string
25
     */
26
    protected $redirectTo = '/home';
27
28
    /**
29
     * Create a new controller instance.
30
     */
31
    public function __construct()
32
    {
33
        $this->middleware('auth');
34
    }
35
36
    public function showConfirmForm()
37
    {
38
        return view('auth::passwords.confirm');
39
    }
40
}
41