diff options
author | 2022-06-07 18:05:33 +0200 | |
---|---|---|
committer | 2022-06-07 18:05:33 +0200 | |
commit | fb501652d5ef8519470fa1faa585b3668ebd2a34 (patch) | |
tree | a9603f0c09d6f4b710fbde1c10297330bac87ad1 /formats/JsonFormat.php | |
parent | e85932b1a524f88db6af66d4c3aac3a7983c169b (diff) | |
download | rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.gz rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.zst rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.zip |
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
Diffstat (limited to 'formats/JsonFormat.php')
-rw-r--r-- | formats/JsonFormat.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/formats/JsonFormat.php b/formats/JsonFormat.php index f0aa0e65..90bae863 100644 --- a/formats/JsonFormat.php +++ b/formats/JsonFormat.php @@ -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)); } |