File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ This requires you to implement several methods::
174174 {
175175 /**
176176 * Called on every request to decide if this authenticator should be
177- * used for the request. Returning false will cause this authenticator
177+ * used for the request. Returning ` false` will cause this authenticator
178178 * to be skipped.
179179 */
180180 public function supports(Request $request)
@@ -194,7 +194,8 @@ This requires you to implement several methods::
194194 public function getUser($credentials, UserProviderInterface $userProvider)
195195 {
196196 if (null === $credentials) {
197- // The token header was empty, authentication fails with 401
197+ // The token header was empty, authentication fails with HTTP Status
198+ // Code 401 "Unauthorized"
198199 return null;
199200 }
200201
@@ -220,7 +221,7 @@ This requires you to implement several methods::
220221 public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
221222 {
222223 $data = [
223- // you may ant to customize or obfuscate the message first
224+ // you may want to customize or obfuscate the message first
224225 'message' => strtr($exception->getMessageKey(), $exception->getMessageData())
225226
226227 // or to translate this message
You can’t perform that action at this time.
0 commit comments