From 21ce7d9ec02b0bf7c6e0ac7c28bc7c1bb0a841c5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Apr 2017 20:57:36 +0300 Subject: 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 --- plugins/af_comics/init.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/af_comics/init.php') diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 31994176e..15af1d1a6 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -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; } -} -?> +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf