summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-10-22 13:49:08 +0300
committerAndrew Dolgov <[email protected]>2021-10-22 13:49:08 +0300
commit9f734c90506a6e5916589d7c8f39c45ff40f6273 (patch)
treefc75d5462141e6f10558932f1ab003c3010b8115 /classes/api.php
parent3b70d1f62275752c966e778dec0c20e67d176f03 (diff)
minor phpstan tweaks
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 5f825e551..033aa8654 100755
--- a/classes/api.php
+++ b/classes/api.php
@@ -307,6 +307,7 @@ class API extends Handler {
$article_ids = explode(',', clean($_REQUEST['article_id'] ?? ''));
$sanitize_content = self::_param_to_bool($_REQUEST['sanitize'] ?? true);
+ // @phpstan-ignore-next-line
if (count($article_ids)) {
$entries = ORM::for_table('ttrss_entries')
->table_alias('e')
@@ -369,7 +370,6 @@ class API extends Handler {
}
$this->_wrap(self::STATUS_OK, $articles);
- // @phpstan-ignore-next-line
} else {
$this->_wrap(self::STATUS_ERR, ['error' => self::E_INCORRECT_USAGE]);
}