We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
13 | trait ThrottlesLogins |
||
14 | { |
||
15 | /** |
||
16 | * Determine if the user has too many failed login attempts. |
||
17 | * |
||
18 | * @param \Illuminate\Http\Request $request |
||
19 | * @return bool |
||
20 | */ |
||
21 | protected function hasTooManyLoginAttempts(Request $request) |
||
27 | |||
28 | /** |
||
29 | * Increment the login attempts for the user. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @return void |
||
33 | */ |
||
34 | protected function incrementLoginAttempts(Request $request) |
||
40 | |||
41 | /** |
||
42 | * Redirect the user after determining they are locked out. |
||
43 | * |
||
44 | * @param \Illuminate\Http\Request $request |
||
45 | * @return void |
||
|
|||
46 | * |
||
47 | * @throws \Illuminate\Validation\ValidationException |
||
48 | */ |
||
49 | protected function sendLockoutResponse(Request $request) |
||
62 | |||
63 | /** |
||
64 | * Clear the login locks for the given user credentials. |
||
65 | * |
||
66 | * @param \Illuminate\Http\Request $request |
||
67 | * @return void |
||
68 | */ |
||
69 | protected function clearLoginAttempts(Request $request) |
||
73 | |||
74 | /** |
||
75 | * Fire an event when a lockout occurs. |
||
76 | * |
||
77 | * @param \Illuminate\Http\Request $request |
||
78 | * @return void |
||
79 | */ |
||
80 | protected function fireLockoutEvent(Request $request) |
||
84 | |||
85 | /** |
||
86 | * Get the throttle key for the given request. |
||
87 | * |
||
88 | * @param \Illuminate\Http\Request $request |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function throttleKey(Request $request) |
||
95 | |||
96 | /** |
||
97 | * Get the rate limiter instance. |
||
98 | * |
||
99 | * @return \Illuminate\Cache\RateLimiter |
||
100 | */ |
||
101 | protected function limiter() |
||
105 | |||
106 | /** |
||
107 | * Get the maximum number of attempts to allow. |
||
108 | * |
||
109 | * @return int |
||
110 | */ |
||
111 | public function maxAttempts() |
||
115 | |||
116 | /** |
||
117 | * Get the number of minutes to throttle for. |
||
118 | * |
||
119 | * @return int |
||
120 | */ |
||
121 | public function decayMinutes() |
||
125 | } |
||
126 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.