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/filters/af_comics_twp.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/af_comics/filters/af_comics_twp.php') diff --git a/plugins/af_comics/filters/af_comics_twp.php b/plugins/af_comics/filters/af_comics_twp.php index ec43c1379..712d54a1d 100644 --- a/plugins/af_comics/filters/af_comics_twp.php +++ b/plugins/af_comics/filters/af_comics_twp.php @@ -10,11 +10,8 @@ class Af_Comics_Twp extends Af_ComicFilter { if (strpos($article["link"], "threewordphrase.com") !== FALSE) { $doc = new DOMDocument(); - @$doc->loadHTML(fetch_file_contents($article["link"])); - $basenode = false; - - if ($doc) { + if (@$doc->loadHTML(fetch_file_contents($article["link"]))) { $xpath = new DOMXpath($doc); $basenode = $xpath->query("//td/center/img")->item(0); @@ -29,5 +26,4 @@ class Af_Comics_Twp extends Af_ComicFilter { return false; } -} -?> +} \ No newline at end of file -- cgit v1.2.3