mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-09-01 04:11:54 +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:
@@ -77,7 +77,7 @@ class AtmoNouvelleAquitaineBridge extends BridgeAbstract {
|
||||
|
||||
private function getLegendIndexes() {
|
||||
$rawIndexes = $this->dom->find('.prevision-legend .prevision-legend-label');
|
||||
$indexes = [];
|
||||
$indexes = array();
|
||||
for ($i = 0; $i < count($rawIndexes); $i++) {
|
||||
if ($rawIndexes[$i]->hasAttribute('data-color')) {
|
||||
$indexes[$rawIndexes[$i]->getAttribute('data-color')] = $rawIndexes[$i]->innertext;
|
||||
|
Reference in New Issue
Block a user