1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:45:56 +00:00

use self:: in some places to invoke static methods from the same class

This commit is contained in:
Andrew Dolgov
2020-09-22 14:54:15 +03:00
parent b5710baf34
commit 6811d0bde2
14 changed files with 127 additions and 127 deletions

View File

@@ -57,7 +57,7 @@ class Labels
$pdo = Db::pdo();
if ($force)
Labels::clear_cache($id);
self::clear_cache($id);
if (!$labels)
$labels = Article::get_article_labels($id);
@@ -82,7 +82,7 @@ class Labels
static function remove_article($id, $label, $owner_uid) {
$label_id = Labels::find_id($label, $owner_uid);
$label_id = self::find_id($label, $owner_uid);
if (!$label_id) return;
@@ -95,12 +95,12 @@ class Labels
$sth->execute([$label_id, $id]);
Labels::clear_cache($id);
self::clear_cache($id);
}
static function add_article($id, $label, $owner_uid) {
$label_id = Labels::find_id($label, $owner_uid);
$label_id = self::find_id($label, $owner_uid);
if (!$label_id) return;
@@ -123,7 +123,7 @@ class Labels
$sth->execute([$label_id, $id]);
}
Labels::clear_cache($id);
self::clear_cache($id);
}