mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-10-22 12:06:09 +02:00
[core] Apply common indentation
All files are now using tabs for indentation
This commit is contained in:
@@ -3,19 +3,18 @@
|
||||
* Json
|
||||
* Builds a JSON string from $this->items and return it to browser.
|
||||
*/
|
||||
class JsonFormat extends FormatAbstract{
|
||||
class JsonFormat extends FormatAbstract {
|
||||
|
||||
public function stringify(){
|
||||
$items = $this->getItems();
|
||||
public function stringify(){
|
||||
$items = $this->getItems();
|
||||
return json_encode($items, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
return json_encode($items, JSON_PRETTY_PRINT);
|
||||
}
|
||||
public function display(){
|
||||
$this
|
||||
->setContentType('application/json')
|
||||
->callContentType();
|
||||
|
||||
public function display(){
|
||||
$this
|
||||
->setContentType('application/json')
|
||||
->callContentType();
|
||||
|
||||
return parent::display();
|
||||
}
|
||||
return parent::display();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user