From 62e06b7d3a5c7a1b468373ad8f982102f5233f98 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Mon, 26 Feb 2018 19:51:03 +0000 Subject: [PATCH] Removing Yoda condition Removed Yoda condition from code base --- src/Grant/AuthCodeGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index 08c78c8a..424834cd 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -225,7 +225,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant return ( array_key_exists('response_type', $request->getQueryParams()) && $request->getQueryParams()['response_type'] === 'code' - && null !== $this->getClientIdFromRequest($request) + && $this->getClientIdFromRequest($request) !== null ); }