aboutsummaryrefslogtreecommitdiff
path: root/formats/JsonFormat.php
diff options
context:
space:
mode:
authorGravatar Jan Tojnar <jtojnar@gmail.com> 2022-06-07 18:05:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-07 18:05:33 +0200
commitfb501652d5ef8519470fa1faa585b3668ebd2a34 (patch)
treea9603f0c09d6f4b710fbde1c10297330bac87ad1 /formats/JsonFormat.php
parente85932b1a524f88db6af66d4c3aac3a7983c169b (diff)
downloadrss-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.php8
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));
}