From d128b723c07a78f5ff31e0ea610762aff93fca24 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 26 Nov 2021 21:54:25 +0000 Subject: [PATCH] Code standards --- src/Module/Api/Twitter/Blocks/Ids.php | 8 ++++---- src/Module/Api/Twitter/Blocks/Lists.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Module/Api/Twitter/Blocks/Ids.php b/src/Module/Api/Twitter/Blocks/Ids.php index bd785ea37..c733d7d64 100644 --- a/src/Module/Api/Twitter/Blocks/Ids.php +++ b/src/Module/Api/Twitter/Blocks/Ids.php @@ -40,14 +40,14 @@ class Ids extends ContactEndpoint $cursor = filter_input(INPUT_GET, 'cursor' , FILTER_VALIDATE_INT, ['options' => ['default' => -1]]); $stringify_ids = filter_input(INPUT_GET, 'stringify_ids', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]); $count = filter_input(INPUT_GET, 'count' , FILTER_VALIDATE_INT, ['options' => [ - 'default' => self::DEFAULT_COUNT, + 'default' => self::DEFAULT_COUNT, 'min_range' => 1, 'max_range' => self::MAX_COUNT, ]]); // Friendica-specific - $since_id = filter_input(INPUT_GET, 'since_id' , FILTER_VALIDATE_INT); - $max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT); - $min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT); + $since_id = filter_input(INPUT_GET, 'since_id', FILTER_VALIDATE_INT); + $max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT); + $min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT); $params = ['order' => ['cid' => true], 'limit' => $count]; diff --git a/src/Module/Api/Twitter/Blocks/Lists.php b/src/Module/Api/Twitter/Blocks/Lists.php index 5b611b16a..4eb03a920 100644 --- a/src/Module/Api/Twitter/Blocks/Lists.php +++ b/src/Module/Api/Twitter/Blocks/Lists.php @@ -41,14 +41,14 @@ class Lists extends ContactEndpoint $skip_status = filter_input(INPUT_GET, 'skip_status' , FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]); $include_user_entities = filter_input(INPUT_GET, 'include_user_entities', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]); $count = filter_input(INPUT_GET, 'count' , FILTER_VALIDATE_INT, ['options' => [ - 'default' => self::DEFAULT_COUNT, + 'default' => self::DEFAULT_COUNT, 'min_range' => 1, 'max_range' => self::MAX_COUNT, ]]); // Friendica-specific - $since_id = filter_input(INPUT_GET, 'since_id', FILTER_VALIDATE_INT); - $max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT); - $min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT); + $since_id = filter_input(INPUT_GET, 'since_id', FILTER_VALIDATE_INT); + $max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT); + $min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT); $params = ['order' => ['cid' => true], 'limit' => $count];