From de89a6bc89f433d39c0fde4ecd789c22312c4bdc Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 12 Jan 2016 23:03:38 +0000 Subject: [PATCH] Code tidy --- src/Grant/PasswordGrant.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; + ); } }