diff options
author | Andrew Dolgov <[email protected]> | 2017-04-26 20:57:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-26 20:57:36 +0300 |
commit | 21ce7d9ec02b0bf7c6e0ac7c28bc7c1bb0a841c5 (patch) | |
tree | 2a784cf4c91abe828b42e79a886c2cc0f80df5e2 /plugins/close_button/init.php | |
parent | ea79a0e033e40057279a7f464c9464145eedc932 (diff) |
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
Diffstat (limited to 'plugins/close_button/init.php')
-rw-r--r-- | plugins/close_button/init.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/close_button/init.php b/plugins/close_button/init.php index 7911642c3..66d2af679 100644 --- a/plugins/close_button/init.php +++ b/plugins/close_button/init.php @@ -14,6 +14,9 @@ class Close_Button extends Plugin { "fox"); } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_article_button($line) { if (!get_pref("COMBINED_DISPLAY_MODE")) { $rv = "<img src=\"plugins/close_button/button.png\" @@ -29,5 +32,4 @@ class Close_Button extends Plugin { return 2; } -} -?> +}
\ No newline at end of file |