]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/FKOAuthDataStore.php
Remove code parameter from HTTPException constructor
[friendica.git] / src / Network / FKOAuthDataStore.php
index 44e14f2156b0cc6267ba5f307ffb094c3242260f..d1f43172b651f2d4f40503417718987198e7b6ec 100644 (file)
@@ -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)
        {