From 299d70ca1daf7fde1d09a3a5c6123992eaffe7ee Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Nov 2021 23:31:10 +0000 Subject: [PATCH] Standards --- src/Module/Api/Twitter/Account/VerifyCredentials.php | 2 +- src/Module/Api/Twitter/Statuses/Mentions.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Module/Api/Twitter/Account/VerifyCredentials.php b/src/Module/Api/Twitter/Account/VerifyCredentials.php index 1fb331300c..f5c0e0201f 100644 --- a/src/Module/Api/Twitter/Account/VerifyCredentials.php +++ b/src/Module/Api/Twitter/Account/VerifyCredentials.php @@ -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() diff --git a/src/Module/Api/Twitter/Statuses/Mentions.php b/src/Module/Api/Twitter/Statuses/Mentions.php index b1b50afb08..14a7f0b3f1 100644 --- a/src/Module/Api/Twitter/Statuses/Mentions.php +++ b/src/Module/Api/Twitter/Statuses/Mentions.php @@ -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); -- 2.39.2