1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

[phpcs] enforce single quotes (#732)

* [phpcs] Add rule to enforce single quoted strings
This commit is contained in:
LogMANOriginal
2018-06-29 23:55:33 +02:00
committed by Teromene
parent 5ea79ac1fc
commit 193ca87afa
43 changed files with 283 additions and 279 deletions

View File

@@ -26,7 +26,7 @@ class Configuration {
die('"curl" extension not loaded. Please check "php.ini"');
// configuration checks
if(ini_get('allow_url_fopen') !== "1")
if(ini_get('allow_url_fopen') !== '1')
die('"allow_url_fopen" is not set to "1". Please check "php.ini');
// Check cache folder permissions (write permissions required)

View File

@@ -24,15 +24,15 @@ abstract class FeedExpander extends BridgeAbstract {
switch(true) {
case isset($rssContent->item[0]):
debugMessage('Detected RSS 1.0 format');
$this->feedType = "RSS_1_0";
$this->feedType = 'RSS_1_0';
break;
case isset($rssContent->channel[0]):
debugMessage('Detected RSS 0.9x or 2.0 format');
$this->feedType = "RSS_2_0";
$this->feedType = 'RSS_2_0';
break;
case isset($rssContent->entry[0]):
debugMessage('Detected ATOM format');
$this->feedType = "ATOM_1_0";
$this->feedType = 'ATOM_1_0';
break;
default:
debugMessage('Unknown feed format/version');

View File

@@ -26,7 +26,7 @@ EOD;
$bridge = Bridge::create($bridgeName);
if($bridge == false)
return "";
return '';
$HTTPSWarning = '';
if(strpos($bridge->getURI(), 'https') !== 0) {