We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
10 | trait AuthenticatesUsers |
||
11 | { |
||
12 | use RedirectsUsers, ThrottlesLogins; |
||
13 | |||
14 | /** |
||
15 | * Show the application's login form. |
||
16 | * |
||
17 | * @return \Illuminate\Http\Response |
||
|
|||
18 | */ |
||
19 | public function showLoginForm() |
||
26 | |||
27 | /** |
||
28 | * Handle a login request to the application. |
||
29 | * |
||
30 | * @param \Illuminate\Http\Request $request |
||
31 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\Response|\Illuminate\Http\JsonResponse |
||
32 | * |
||
33 | * @throws \Illuminate\Validation\ValidationException |
||
34 | */ |
||
35 | public function login(Request $request) |
||
60 | |||
61 | /** |
||
62 | * Validate the user login request. |
||
63 | * |
||
64 | * @param \Illuminate\Http\Request $request |
||
65 | * @return void |
||
66 | * |
||
67 | * @throws \Illuminate\Validation\ValidationException |
||
68 | */ |
||
69 | protected function validateLogin(Request $request) |
||
76 | |||
77 | /** |
||
78 | * Attempt to log the user into the application. |
||
79 | * |
||
80 | * @param \Illuminate\Http\Request $request |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function attemptLogin(Request $request) |
||
89 | |||
90 | /** |
||
91 | * Get the needed authorization credentials from the request. |
||
92 | * |
||
93 | * @param \Illuminate\Http\Request $request |
||
94 | * @return array |
||
95 | */ |
||
96 | protected function credentials(Request $request) |
||
100 | |||
101 | /** |
||
102 | * Send the response after the user was authenticated. |
||
103 | * |
||
104 | * @param \Illuminate\Http\Request $request |
||
105 | * @return \Illuminate\Http\Response |
||
106 | */ |
||
107 | protected function sendLoginResponse(Request $request) |
||
121 | |||
122 | /** |
||
123 | * The user has been authenticated. |
||
124 | * |
||
125 | * @param \Illuminate\Http\Request $request |
||
126 | * @param mixed $user |
||
127 | * @return mixed |
||
128 | */ |
||
129 | protected function authenticated(Request $request, $user) |
||
133 | |||
134 | /** |
||
135 | * Get the failed login response instance. |
||
136 | * |
||
137 | * @param \Illuminate\Http\Request $request |
||
138 | * @return \Symfony\Component\HttpFoundation\Response |
||
139 | * |
||
140 | * @throws \Illuminate\Validation\ValidationException |
||
141 | */ |
||
142 | protected function sendFailedLoginResponse(Request $request) |
||
148 | |||
149 | /** |
||
150 | * Get the login username to be used by the controller. |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | public function username() |
||
158 | |||
159 | /** |
||
160 | * Log the user out of the application. |
||
161 | * |
||
162 | * @param \Illuminate\Http\Request $request |
||
163 | * @return \Illuminate\Http\Response |
||
164 | */ |
||
165 | public function logout(Request $request) |
||
181 | |||
182 | /** |
||
183 | * The user has logged out of the application. |
||
184 | * |
||
185 | * @param \Illuminate\Http\Request $request |
||
186 | * @return mixed |
||
187 | */ |
||
188 | protected function loggedOut(Request $request) |
||
192 | |||
193 | /** |
||
194 | * Get the guard to be used during authentication. |
||
195 | * |
||
196 | * @return \Illuminate\Contracts\Auth\StatefulGuard |
||
197 | */ |
||
198 | protected function guard() |
||
202 | } |
||
203 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.