mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:15:55 +00:00
no need to duplicate annotations
This commit is contained in:
@@ -12,7 +12,7 @@ abstract class Plugin {
|
|||||||
* */
|
* */
|
||||||
abstract function init($host);
|
abstract function init($host);
|
||||||
|
|
||||||
/** @return array<float|string|bool> */
|
/** @return array<null|float|string|bool> */
|
||||||
abstract function about();
|
abstract function about();
|
||||||
// return array(1.0, "plugin", "No description", "No author", false);
|
// return array(1.0, "plugin", "No description", "No author", false);
|
||||||
|
|
||||||
@@ -49,6 +49,11 @@ abstract class Plugin {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @return string */
|
||||||
|
function get_css() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function get_prefs_js() {
|
function get_prefs_js() {
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
@@ -3,14 +3,12 @@ class Share extends Plugin {
|
|||||||
/** @var PluginHost $host */
|
/** @var PluginHost $host */
|
||||||
private $host;
|
private $host;
|
||||||
|
|
||||||
/** @return array<float|string|null> */
|
|
||||||
function about() {
|
function about() {
|
||||||
return array(null,
|
return array(null,
|
||||||
"Share article by unique URL",
|
"Share article by unique URL",
|
||||||
"fox");
|
"fox");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param PluginHost $host */
|
|
||||||
function init($host) {
|
function init($host) {
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
|
|
||||||
@@ -22,17 +20,14 @@ class Share extends Plugin {
|
|||||||
return $method == "get";
|
return $method == "get";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return string */
|
|
||||||
function get_js() {
|
function get_js() {
|
||||||
return file_get_contents(__DIR__ . "/share.js");
|
return file_get_contents(__DIR__ . "/share.js");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return string */
|
|
||||||
function get_css() {
|
function get_css() {
|
||||||
return file_get_contents(__DIR__ . "/share.css");
|
return file_get_contents(__DIR__ . "/share.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return string */
|
|
||||||
function get_prefs_js() {
|
function get_prefs_js() {
|
||||||
return file_get_contents(__DIR__ . "/share_prefs.js");
|
return file_get_contents(__DIR__ . "/share_prefs.js");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user