PasswordController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 31
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php namespace WITR\Http\Controllers\Auth;
2
3
use WITR\Http\Controllers\Controller;
4
use Illuminate\Contracts\Auth\Guard;
5
use Illuminate\Contracts\Auth\PasswordBroker;
6
use Illuminate\Foundation\Auth\ResetsPasswords;
7
8
class PasswordController extends Controller {
9
10
	/*
11
	|--------------------------------------------------------------------------
12
	| Password Reset Controller
13
	|--------------------------------------------------------------------------
14
	|
15
	| This controller is responsible for handling password reset requests
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
21
	use ResetsPasswords;
22
23
	/**
24
	 * Create a new password controller instance.
25
	 *
26
	 * @param  \Illuminate\Contracts\Auth\Guard  $auth
27
	 * @param  \Illuminate\Contracts\Auth\PasswordBroker  $passwords
28
	 * @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...
29
	 */
30
	public function __construct(Guard $auth, PasswordBroker $passwords)
31
	{
32
		$this->auth = $auth;
33
		$this->passwords = $passwords;
34
35
		$this->middleware('guest');
36
	}
37
38
}
39