mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
phpcs: Always use long array syntax
Most of the code in RSS-Bridge uses the long array syntax. This commit adds a check to enforce using this syntax over the short array syntax. All failures have been fixed.
This commit is contained in:
@@ -53,7 +53,7 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f
|
||||
$cache->setScope('server');
|
||||
$cache->purgeCache(86400); // 24 hours (forced)
|
||||
|
||||
$params = [$url];
|
||||
$params = array($url);
|
||||
$cache->setKey($params);
|
||||
|
||||
$retVal = array(
|
||||
@@ -304,7 +304,7 @@ function getSimpleHTMLDOMCached($url,
|
||||
$cache->setScope('pages');
|
||||
$cache->purgeCache(86400); // 24 hours (forced)
|
||||
|
||||
$params = [$url];
|
||||
$params = array($url);
|
||||
$cache->setKey($params);
|
||||
|
||||
// Determine if cached file is within duration
|
||||
|
Reference in New Issue
Block a user