diff options
| author | 2023-05-11 13:02:04 +0200 | |
|---|---|---|
| committer | 2023-05-11 13:02:04 +0200 | |
| commit | 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 (patch) | |
| tree | 7ba9f5aebb01d12045b9067a86b5060ba13dca18 /p | |
| parent | fe7d9bbcd68660a59b813346c236b61b25a51c80 (diff) | |
A few additional PHPStan rules (#5388)
A subset of
https://github.com/phpstan/phpstan-strict-rules
Diffstat (limited to 'p')
| -rw-r--r-- | p/api/greader.php | 10 |
1 files changed, 5 insertions, 5 deletions
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; } } |
