From fead0448303b82c9a436d201bb02ae48c735409c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 20 Nov 2012 15:27:15 +0000 Subject: [PATCH] Spacing fixes and fixed sessionScopes() example query --- src/Oauth2/Resource/Database.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Oauth2/Resource/Database.php b/src/Oauth2/Resource/Database.php index 9c5d1b44..8408df3a 100644 --- a/src/Oauth2/Resource/Database.php +++ b/src/Oauth2/Resource/Database.php @@ -6,17 +6,17 @@ interface Database { /** * Validate an access token and return the session details. - * + * * Database query: - * + * * * SELECT id, owner_type, owner_id FROM oauth_sessions WHERE access_token = * $accessToken AND stage = 'granted' AND * access_token_expires > UNIX_TIMESTAMP(now()) * - * + * * Response: - * + * * * Array * ( @@ -25,7 +25,7 @@ interface Database * [owner_id] => (string) The session owner's ID * ) * - * + * * @param string $accessToken The access token * @return array|bool Return an array on success or false on failure */ @@ -33,16 +33,16 @@ interface Database /** * Returns the scopes that the session is authorised with. - * + * * Database query: - * + * * - * SELECT scope FROM oauth_session_scopes WHERE access_token = - * '291dca1c74900f5f252de351e0105aa3fc91b90b' + * SELECT scope FROM oauth_session_scopes WHERE session_id = + * $sessionId * - * + * * Response: - * + * * * Array * ( @@ -51,7 +51,7 @@ interface Database * ... * ) * - * + * * @param int $sessionId The session ID * @return array A list of scopes */