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

ConfirmPasswordController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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