From e721d2db4049bc3ed9fbf76c5f8c8adc5c895df6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Nov 2021 06:49:46 +0300 Subject: fix phpstan warnings --- init.php | 7 +++---- 1 file 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 @@ 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 { "; } + + 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; -- cgit v1.2.3