diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 21:35:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 21:35:20 +0300 |
commit | f53a72b9c0fa6894fa808220f196eb1481cbe245 (patch) | |
tree | 93971e73d0e2cc650172e3b4e769242095cad6dd | |
parent | e51869d56d21396e36b0438fba588bc8b0abba6b (diff) |
fix phpstan warnings
-rw-r--r-- | init.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,11 +1,7 @@ <?php class Close_Button extends Plugin { - private $host; - function init($host) { - $this->host = $host; - - $host->add_hook($this->host::HOOK_ARTICLE_BUTTON, $this); + $this->host->add_hook($this->host::HOOK_ARTICLE_BUTTON, $this); } function about() { @@ -24,6 +20,7 @@ class Close_Button extends Plugin { style='cursor : pointer' onclick='Article.close()' title='".__('Close article')."'>close</i>"; } + return ""; } function api_version() { |