Removing Yoda condition

Removed Yoda condition from code base
This commit is contained in:
Andrew Millington 2018-02-26 19:51:03 +00:00 committed by GitHub
parent 009c109716
commit 62e06b7d3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
return ( return (
array_key_exists('response_type', $request->getQueryParams()) array_key_exists('response_type', $request->getQueryParams())
&& $request->getQueryParams()['response_type'] === 'code' && $request->getQueryParams()['response_type'] === 'code'
&& null !== $this->getClientIdFromRequest($request) && $this->getClientIdFromRequest($request) !== null
); );
} }