From 03d069226886a6955cc71c6b25ddc92b9b7d47b2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Nov 2021 19:52:47 +0300 Subject: [PATCH] no need to duplicate annotations --- classes/plugin.php | 7 ++++++- plugins/share/init.php | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/plugin.php b/classes/plugin.php index 5b486d766..eae2c0c17 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -12,7 +12,7 @@ abstract class Plugin { * */ abstract function init($host); - /** @return array */ + /** @return array */ abstract function about(); // return array(1.0, "plugin", "No description", "No author", false); @@ -49,6 +49,11 @@ abstract class Plugin { return ""; } + /** @return string */ + function get_css() { + return ""; + } + /** @return string */ function get_prefs_js() { return ""; diff --git a/plugins/share/init.php b/plugins/share/init.php index 4a2a942d7..4dbc389fd 100644 --- a/plugins/share/init.php +++ b/plugins/share/init.php @@ -3,14 +3,12 @@ class Share extends Plugin { /** @var PluginHost $host */ private $host; - /** @return array */ function about() { return array(null, "Share article by unique URL", "fox"); } - /** @param PluginHost $host */ function init($host) { $this->host = $host; @@ -22,17 +20,14 @@ class Share extends Plugin { return $method == "get"; } - /** @return string */ function get_js() { return file_get_contents(__DIR__ . "/share.js"); } - /** @return string */ function get_css() { return file_get_contents(__DIR__ . "/share.css"); } - /** @return string */ function get_prefs_js() { return file_get_contents(__DIR__ . "/share_prefs.js"); }