mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +02:00
global: Fix code violations
This commit is contained in:
parent
ce65f51d91
commit
e7d3a006c8
52 changed files with 5 additions and 62 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue