mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-09 21:44:37 +02:00
[core] Apply common indentation
All files are now using tabs for indentation
This commit is contained in:
parent
32ce2b6541
commit
62eec43980
19 changed files with 1365 additions and 1250 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue