Code tidy

This commit is contained in:
Alex Bilbie 2016-01-12 23:03:38 +00:00
parent e03ad0d52f
commit de89a6bc89

View File

@ -155,13 +155,9 @@ class PasswordGrant extends AbstractGrant
*/ */
public function canRespondToRequest(ServerRequestInterface $request) public function canRespondToRequest(ServerRequestInterface $request)
{ {
if ( return (
isset($request->getParsedBody()['grant_type']) isset($request->getParsedBody()['grant_type'])
&& $request->getParsedBody()['grant_type'] === 'password' && $request->getParsedBody()['grant_type'] === 'password'
) { );
return true;
}
return false;
} }
} }