mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-28 03:21:28 +00:00
update phpmd ruleset to use (subset) of cleancode
fix various minor issues reported by static analysis remove redundant php closing tag from several more files
This commit is contained in:
@@ -63,18 +63,18 @@ class Af_Comics extends Plugin {
|
||||
}
|
||||
|
||||
function hook_article_filter($article) {
|
||||
$owner_uid = $article["owner_uid"];
|
||||
|
||||
foreach ($this->filters as $f) {
|
||||
if ($f->process($article))
|
||||
break;
|
||||
}
|
||||
|
||||
return $article;
|
||||
|
||||
}
|
||||
|
||||
// GoComics dropped feed support so it needs to be handled when fetching the feed.
|
||||
/**
|
||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
||||
*/
|
||||
function hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed, $last_article_timestamp, $auth_login, $auth_pass) {
|
||||
if ($auth_login || $auth_pass)
|
||||
return $feed_data;
|
||||
@@ -143,5 +143,4 @@ class Af_Comics extends Plugin {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
}
|
||||
Reference in New Issue
Block a user