summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 06:49:46 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 06:49:46 +0300
commite721d2db4049bc3ed9fbf76c5f8c8adc5c895df6 (patch)
tree79631282f24caf81ed1c1a84f4c296a7f08d152f
parentf9991e11c43d1d2fafd79c2157ddd9489a9443e0 (diff)
fix phpstan warnings
-rw-r--r--init.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/init.php b/init.php
index 0ec62ed..014e8de 100644
--- a/init.php
+++ b/init.php
@@ -1,6 +1,5 @@
<?php
class Af_Youtube_Thumb extends Plugin {
- private $host;
function about() {
return array(null,
@@ -9,8 +8,6 @@ class Af_Youtube_Thumb extends Plugin {
}
function init($host) {
- $this->host = $host;
-
$host->add_hook($host::HOOK_RENDER_ENCLOSURE, $this);
$host->add_hook($host::HOOK_RENDER_ARTICLE, $this);
$host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this);
@@ -36,6 +33,8 @@ class Af_Youtube_Thumb extends Plugin {
</div>
</a>";
}
+
+ return "";
}
function hook_render_article($article) {
@@ -48,7 +47,7 @@ class Af_Youtube_Thumb extends Plugin {
return $this->hook_render_article_cdm($article, true);
} */
- function hook_render_article_cdm($article, $api_mode = false) {
+ function hook_render_article_cdm($article) {
$doc = new DOMDocument();
$need_saving = false;