Skip to content
Snippets Groups Projects
Commit d17b7931 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

set missing annotations in af_comics

parent afdb4b00
No related branches found
No related tags found
No related merge requests found
<?php
abstract class Af_ComicFilter {
/** @return array<string> */
public abstract function supported();
/**
* @param array<string,mixed> $article
* @return bool
*/
public abstract function process(&$article);
public function __construct(/*PluginHost $host*/) {
}
/**
* @param string $url
* @return string|false
*/
public function on_subscribe($url) {
return false;
}
/**
* @param string $url
* @return array{"title": string, "site_url": string}|false
*/
public function on_basic_info($url) {
return false;
}
/**
* @param string $url
* @return string|false
*/
public function on_fetch($url) {
return false;
}
......
......@@ -12,7 +12,7 @@ class Af_Comics_Tfd extends Af_ComicFilter {
false, false, 0,
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
if (!$res) return $article;
if (!$res) return false;
$doc = new DOMDocument();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment