From 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 13:02:04 +0200 Subject: A few additional PHPStan rules (#5388) A subset of https://github.com/phpstan/phpstan-strict-rules --- p/api/greader.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'p/api') diff --git a/p/api/greader.php b/p/api/greader.php index a28825eb7..b70a1f3f3 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -759,9 +759,9 @@ final class GReaderAPI { $ids = [ 0 ]; //For News+ bug https://github.com/noinnion/newsplus/issues/84#issuecomment-57834632 } $itemRefs = array(); - foreach ($ids as $id) { + foreach ($ids as $entryId) { $itemRefs[] = array( - 'id' => '' . $id, //64-bit decimal + 'id' => '' . $entryId, //64-bit decimal ); } @@ -769,9 +769,9 @@ final class GReaderAPI { 'itemRefs' => $itemRefs, ); if (count($ids) >= $count) { - $id = end($ids); - if ($id != false) { - $response['continuation'] = '' . $id; + $entryId = end($ids); + if ($entryId != false) { + $response['continuation'] = '' . $entryId; } } -- cgit v1.2.3