1 | <?php |
||
10 | class ResetPasswordController extends Controller |
||
11 | { |
||
12 | protected $data = []; // the information we send to the view |
||
13 | |||
14 | /* |
||
15 | |-------------------------------------------------------------------------- |
||
16 | | Password Reset Controller |
||
17 | |-------------------------------------------------------------------------- |
||
18 | | |
||
19 | | This controller is responsible for handling password reset requests |
||
20 | | and uses a simple trait to include this behavior. You're free to |
||
21 | | explore this trait and override any methods you wish to tweak. |
||
22 | | |
||
23 | */ |
||
24 | |||
25 | use ResetsPasswords; |
||
26 | |||
27 | /** |
||
28 | * Get the path the user should be redirected to after password reset. |
||
29 | * |
||
30 | * @param \Illuminate\Http\Request $request |
||
|
|||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function redirectTo() |
||
38 | |||
39 | /** |
||
40 | * Create a new controller instance. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function __construct() |
||
57 | |||
58 | // ------------------------------------------------------- |
||
59 | // Laravel overwrites for loading backpack views |
||
60 | // ------------------------------------------------------- |
||
61 | |||
62 | /** |
||
63 | * Display the password reset view for the given token. |
||
64 | * |
||
65 | * If no token is present, display the link request form. |
||
66 | * |
||
67 | * @param \Illuminate\Http\Request $request |
||
68 | * @param string|null $token |
||
69 | * |
||
70 | * @return \Illuminate\Http\Response |
||
71 | */ |
||
72 | public function showResetForm(Request $request, $token = null) |
||
80 | |||
81 | /** |
||
82 | * Get the broker to be used during password reset. |
||
83 | * |
||
84 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
85 | */ |
||
86 | public function broker() |
||
92 | |||
93 | /** |
||
94 | * Get the guard to be used during password reset. |
||
95 | * |
||
96 | * @return \Illuminate\Contracts\Auth\StatefulGuard |
||
97 | */ |
||
98 | protected function guard() |
||
102 | } |
||
103 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.