summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 21:35:20 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 21:35:20 +0300
commitf53a72b9c0fa6894fa808220f196eb1481cbe245 (patch)
tree93971e73d0e2cc650172e3b4e769242095cad6dd
parente51869d56d21396e36b0438fba588bc8b0abba6b (diff)
fix phpstan warnings
-rw-r--r--init.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/init.php b/init.php
index 1df795c..ed9292d 100644
--- a/init.php
+++ b/init.php
@@ -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() {