mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-27 09:12:13 +05:30
Replaces array_key_exists by isset, which is faster, on ImplicitGrant.
This commit is contained in:
parent
bf7084a147
commit
170ce2fd2d
@ -95,8 +95,8 @@ class ImplicitGrant extends AbstractAuthorizeGrant
|
||||
public function canRespondToAuthorizationRequest(ServerRequestInterface $request)
|
||||
{
|
||||
return (
|
||||
array_key_exists('response_type', $request->getQueryParams())
|
||||
&& $request->getQueryParams()['response_type'] === 'token'
|
||||
isset($request->getQueryParams()['response_type'])
|
||||
&& 'token' === $request->getQueryParams()['response_type']
|
||||
&& isset($request->getQueryParams()['client_id'])
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user