mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 23:57:29 +02:00
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
This commit is contained in:
@@ -122,14 +122,6 @@ class JsonFormat extends FormatAbstract {
|
||||
return $json;
|
||||
}
|
||||
|
||||
public function display(){
|
||||
$this
|
||||
->setContentType(self::MIME_TYPE . '; charset=' . $this->getCharset())
|
||||
->callContentType();
|
||||
|
||||
return parent::display();
|
||||
}
|
||||
|
||||
private function isHTML($text) {
|
||||
return (strlen(strip_tags($text)) != strlen($text));
|
||||
}
|
||||
|
Reference in New Issue
Block a user