Merge pull request #749 from dmelo/issue-748

Replaces array_key_exists by isset, which is faster, on ImplicitGrant.
This commit is contained in:
Andrew Millington 2017-10-20 18:28:18 +01:00 committed by GitHub
commit 63861704b6

View File

@ -95,7 +95,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
public function canRespondToAuthorizationRequest(ServerRequestInterface $request)
{
return (
array_key_exists('response_type', $request->getQueryParams())
isset($request->getQueryParams()['response_type'])
&& $request->getQueryParams()['response_type'] === 'token'
&& isset($request->getQueryParams()['client_id'])
);