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/af_zz_imgproxy/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/af_zz_imgproxy/init.php')
-rw-r--r-- | plugins/af_zz_imgproxy/init.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 86f79c694..c85ec6427 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -80,7 +80,7 @@ class Af_Zz_ImgProxy extends Plugin { if (function_exists("imagecreate") && !isset($_REQUEST["text"])) { $img = imagecreate(450, 75); - $bg = imagecolorallocate($img, 255, 255, 255); + /*$bg =*/ imagecolorallocate($img, 255, 255, 255); $textcolor = imagecolorallocate($img, 255, 0, 0); imagerectangle($img, 0, 0, 450-1, 75-1, $textcolor); @@ -143,6 +143,9 @@ class Af_Zz_ImgProxy extends Plugin { return $url; } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_render_article_cdm($article, $api_mode = false) { $need_saving = false; |