]> git.mxchange.org Git - friendica.git/commitdiff
Standards
authorMichael <heluecht@pirati.ca>
Wed, 24 Nov 2021 23:24:35 +0000 (23:24 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 24 Nov 2021 23:24:35 +0000 (23:24 +0000)
src/Module/Api/Twitter/Account/VerifyCredentials.php
src/Module/Api/Twitter/Favorites.php
src/Module/Api/Twitter/Statuses/HomeTimeline.php
src/Module/Api/Twitter/Statuses/Mentions.php

index 2358d7bcdfeba0fba5ff4a0e97ca837abeb97477..1fb331300c9f5f7b1ebcef5271bb54e5b6eb0bb3 100644 (file)
@@ -25,7 +25,7 @@ use Friendica\Module\BaseApi;
 use Friendica\DI;
 
 /**
 use Friendica\DI;
 
 /**
 * Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful;
+ * Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful;
  * returns a 401 status code and an error message if not.
  *
  * @see https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
  * returns a 401 status code and an error message if not.
  *
  * @see https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
index 0f78d527f44589992a813f81316d7b752f8297c5..b90d78e5b9877248ed89b110c77c721b6cd9aecc 100644 (file)
@@ -46,9 +46,9 @@ class Favorites extends BaseApi
 
                // params
                $since_id = $_REQUEST['since_id'] ?? 0;
 
                // params
                $since_id = $_REQUEST['since_id'] ?? 0;
-               $max_id = $_REQUEST['max_id'] ?? 0;
-               $count = $_GET['count'] ?? 20;
-               $page = $_REQUEST['page'] ?? 1;
+               $max_id   = $_REQUEST['max_id'] ?? 0;
+               $count    = $_GET['count'] ?? 20;
+               $page     = $_REQUEST['page'] ?? 1;
 
                $start = max(0, ($page - 1) * $count);
 
 
                $start = max(0, ($page - 1) * $count);
 
index 2191b661f532b753a2d10259ba45afbce8d01692..b6fef00fa3e1dc85c0fbd60f32f8609e32f9a9e7 100644 (file)
@@ -43,10 +43,10 @@ class HomeTimeline extends BaseApi
                // get last network messages
 
                // params
                // get last network messages
 
                // params
-               $count = $_REQUEST['count'] ?? 20;
-               $page = $_REQUEST['page']?? 0;
-               $since_id = $_REQUEST['since_id'] ?? 0;
-               $max_id = $_REQUEST['max_id'] ?? 0;
+               $count           = $_REQUEST['count'] ?? 20;
+               $page            = $_REQUEST['page']?? 0;
+               $since_id        = $_REQUEST['since_id'] ?? 0;
+               $max_id          = $_REQUEST['max_id'] ?? 0;
                $exclude_replies = !empty($_REQUEST['exclude_replies']);
                $conversation_id = $_REQUEST['conversation_id'] ?? 0;
 
                $exclude_replies = !empty($_REQUEST['exclude_replies']);
                $conversation_id = $_REQUEST['conversation_id'] ?? 0;
 
index f041c4587eef09854096d3f13fe8b2f906c38b18..b1b50afb087ac6a36ea8061ed4c55269f7b9e94d 100644 (file)
@@ -69,7 +69,7 @@ class Mentions extends BaseApi
 
                array_unshift($condition, $query);
 
 
                array_unshift($condition, $query);
 
-               $params = ['order' => ['id' => true], 'limit' => [$start, $count]];
+               $params   = ['order' => ['id' => true], 'limit' => [$start, $count]];
                $statuses = Post::selectForUser($uid, [], $condition, $params);
 
                $include_entities = strtolower(($_REQUEST['include_entities'] ?? 'false') == 'true');
                $statuses = Post::selectForUser($uid, [], $condition, $params);
 
                $include_entities = strtolower(($_REQUEST['include_entities'] ?? 'false') == 'true');