Completed
Push — master ( 41a1c8...e65970 )
by Mohamed
03:30 queued 15s
created

ConfirmPasswordController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A redirectTo() 0 4 1
A __construct() 0 4 1
A showConfirmForm() 0 4 1
1
<?php
2
3
namespace Microboard\Http\Controllers\Auth;
4
5
use Microboard\Http\Controllers\Controller;
6
use Illuminate\Foundation\Auth\ConfirmsPasswords;
7
8
class ConfirmPasswordController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Confirm Password Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller is responsible for handling password confirmations and
16
    | uses a simple trait to include the behavior. You're free to explore
17
    | this trait and override any functions that require customization.
18
    |
19
    */
20
21
    use ConfirmsPasswords;
22
23
    /**
24
     * Where to redirect users when the intended url fails.
25
     */
26
    protected function redirectTo()
27
    {
28
        return url(config('microboard.routes.prefix'));
29
    }
30
31
    /**
32
     * Create a new controller instance.
33
     *
34
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
35
     */
36
    public function __construct()
37
    {
38
        $this->middleware('auth');
39
    }
40
41
    /**
42
     * Display the password confirmation view.
43
     *
44
     * @return \Illuminate\View\View
45
     */
46
    public function showConfirmForm()
47
    {
48
        return view('microboard::auth.passwords.confirm');
49
    }
50
}
51