X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FFKOAuthDataStore.php;h=d1f43172b651f2d4f40503417718987198e7b6ec;hb=8eba329111e832d7efdacf4f6a6fa85b0f7abbf3;hp=44e14f2156b0cc6267ba5f307ffb094c3242260f;hpb=2f28c2ebbfd8f66093d7081d40b1d48f65fcff20;p=friendica.git diff --git a/src/Network/FKOAuthDataStore.php b/src/Network/FKOAuthDataStore.php index 44e14f2156..d1f43172b6 100644 --- a/src/Network/FKOAuthDataStore.php +++ b/src/Network/FKOAuthDataStore.php @@ -19,8 +19,6 @@ use OAuthToken; define('REQUEST_TOKEN_DURATION', 300); define('ACCESS_TOKEN_DURATION', 31536000); -require_once 'include/dba.php'; - /** * @brief OAuthDataStore class */ @@ -37,6 +35,7 @@ class FKOAuthDataStore extends OAuthDataStore /** * @param string $consumer_key key * @return mixed + * @throws \Exception */ public function lookup_consumer($consumer_key) { @@ -57,6 +56,7 @@ class FKOAuthDataStore extends OAuthDataStore * @param string $token_type type * @param string $token token * @return mixed + * @throws \Exception */ public function lookup_token($consumer, $token_type, $token) { @@ -82,6 +82,7 @@ class FKOAuthDataStore extends OAuthDataStore * @param string $nonce nonce * @param string $timestamp timestamp * @return mixed + * @throws \Exception */ public function lookup_nonce($consumer, $token, $nonce, $timestamp) { @@ -97,6 +98,7 @@ class FKOAuthDataStore extends OAuthDataStore * @param string $consumer consumer * @param string $callback optional, default null * @return mixed + * @throws \Exception */ public function new_request_token($consumer, $callback = null) { @@ -132,6 +134,7 @@ class FKOAuthDataStore extends OAuthDataStore * @param string $consumer consumer * @param string $verifier optional, defult null * @return object + * @throws HTTPException\InternalServerErrorException */ public function new_access_token($token, $consumer, $verifier = null) {