summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 06:55:05 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 06:55:05 +0300
commit617c94efcd123c0ba3e7ff4b8acb4f0914c4e8cb (patch)
treeae211f5a755e386c72c5a2c1aef2093f86d13843
parent06d4b31d1ae7458a0295d2dfff9c929a4edcd9e8 (diff)
fix phpstan warnings
-rw-r--r--init.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/init.php b/init.php
index 514daac..83aaf20 100644
--- a/init.php
+++ b/init.php
@@ -1,6 +1,5 @@
<?php
class MailTo extends Plugin {
- private $host;
function about() {
return array(null,
@@ -9,8 +8,6 @@ class MailTo extends Plugin {
}
function init($host) {
- $this->host = $host;
-
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
$host->add_hook($host::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM, $this);
}
@@ -29,7 +26,7 @@ class MailTo extends Plugin {
title='".__('Forward by email (mailto:)')."'>mail_outline</i>";
}
- function emailArticle() {
+ function emailArticle() : void {
$ids = explode(",", clean($_REQUEST['ids']));
$ids_qmarks = arr_qmarks($ids);