diff options
author | Andrew Dolgov <[email protected]> | 2021-11-15 06:49:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-15 06:49:46 +0300 |
commit | e721d2db4049bc3ed9fbf76c5f8c8adc5c895df6 (patch) | |
tree | 79631282f24caf81ed1c1a84f4c296a7f08d152f | |
parent | f9991e11c43d1d2fafd79c2157ddd9489a9443e0 (diff) |
fix phpstan warnings
-rw-r--r-- | init.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |