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_youtube_embed/init.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/af_youtube_embed/init.php') diff --git a/plugins/af_youtube_embed/init.php b/plugins/af_youtube_embed/init.php index 782011340..16dcc926c 100644 --- a/plugins/af_youtube_embed/init.php +++ b/plugins/af_youtube_embed/init.php @@ -14,6 +14,9 @@ class Af_Youtube_Embed extends Plugin { $host->add_hook($host::HOOK_RENDER_ENCLOSURE, $this); } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_render_enclosure($entry, $hide_images) { $matches = array(); @@ -37,4 +40,3 @@ class Af_Youtube_Embed extends Plugin { } } -?> -- cgit v1.2.3-54-g00ecf