diff --git a/src/Grant/PasswordGrant.php b/src/Grant/PasswordGrant.php index dc27f212..2bce9d03 100644 --- a/src/Grant/PasswordGrant.php +++ b/src/Grant/PasswordGrant.php @@ -155,13 +155,9 @@ class PasswordGrant extends AbstractGrant */ public function canRespondToRequest(ServerRequestInterface $request) { - if ( + return ( isset($request->getParsedBody()['grant_type']) && $request->getParsedBody()['grant_type'] === 'password' - ) { - return true; - } - - return false; + ); } }