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

index 1fb331300c9f5f7b1ebcef5271bb54e5b6eb0bb3..f5c0e0201ff53827e33ed7caed46d1f85f974e5d 100644 (file)
@@ -29,7 +29,7 @@ use Friendica\DI;
  * 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
-*/
+ */
 class VerifyCredentials extends BaseApi
 {
        public function rawContent()
index b1b50afb087ac6a36ea8061ed4c55269f7b9e94d..14a7f0b3f16332833099faab1dfad8c4e6d03442 100644 (file)
@@ -42,10 +42,10 @@ class Mentions extends BaseApi
                // get last network messages
 
                // params
-               $since_id = intval($_REQUEST['since_id'] ?? 0);
-               $max_id   = intval($_REQUEST['max_id']   ?? 0);
-               $count    = intval($_REQUEST['count']    ?? 20);
-               $page     = intval($_REQUEST['page']     ?? 1);
+               $since_id = $_REQUEST['since_id'] ?? 0;
+               $max_id   = $_REQUEST['max_id']   ?? 0;
+               $count    = $_REQUEST['count']    ?? 20;
+               $page     = $_REQUEST['page']     ?? 1;
 
                $start = max(0, ($page - 1) * $count);