mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
global: Fix code violations
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
* http://tools.ietf.org/html/rfc4287
|
||||
*/
|
||||
class AtomFormat extends FormatAbstract{
|
||||
|
||||
public function stringify(){
|
||||
$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '';
|
||||
$httpHost = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
|
||||
|
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
class HtmlFormat extends FormatAbstract {
|
||||
|
||||
public function stringify(){
|
||||
$extraInfos = $this->getExtraInfos();
|
||||
$title = htmlspecialchars($extraInfos['name']);
|
||||
|
@@ -4,7 +4,6 @@
|
||||
* Builds a JSON string from $this->items and return it to browser.
|
||||
*/
|
||||
class JsonFormat extends FormatAbstract {
|
||||
|
||||
public function stringify(){
|
||||
$items = $this->getItems();
|
||||
$toReturn = json_encode($items, JSON_PRETTY_PRINT);
|
||||
|
@@ -4,7 +4,6 @@
|
||||
* Documentation Source http://www.rssboard.org/media-rss
|
||||
*/
|
||||
class MrssFormat extends FormatAbstract {
|
||||
|
||||
public function stringify(){
|
||||
$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '';
|
||||
$httpHost = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
|
||||
|
@@ -4,7 +4,6 @@
|
||||
* Returns $this->items as raw php data.
|
||||
*/
|
||||
class PlaintextFormat extends FormatAbstract {
|
||||
|
||||
public function stringify(){
|
||||
$items = $this->getItems();
|
||||
$toReturn = print_r($items, true);
|
||||
|
Reference in New Issue
Block a user