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/no_iframes/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/no_iframes/init.php') diff --git a/plugins/no_iframes/init.php b/plugins/no_iframes/init.php index 35f7187f5..18cc3ba17 100644 --- a/plugins/no_iframes/init.php +++ b/plugins/no_iframes/init.php @@ -14,6 +14,9 @@ class No_Iframes extends Plugin { $host->add_hook($host::HOOK_SANITIZE, $this); } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes) { $xpath = new DOMXpath($doc); @@ -31,5 +34,4 @@ class No_Iframes extends Plugin { return 2; } -} -?> +} \ No newline at end of file -- cgit v1.2.3