mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 21:44:01 +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:
@@ -431,11 +431,11 @@ class LeBonCoinBridge extends BridgeAbstract {
|
||||
);
|
||||
|
||||
if($this->getInput('region') != '') {
|
||||
$requestJson->filters->location['regions'] = [$this->getInput('region')];
|
||||
$requestJson->filters->location['regions'] = array($this->getInput('region'));
|
||||
}
|
||||
|
||||
if($this->getInput('department') != '') {
|
||||
$requestJson->filters->location['departments'] = [$this->getInput('department')];
|
||||
$requestJson->filters->location['departments'] = array($this->getInput('department'));
|
||||
}
|
||||
|
||||
if($this->getInput('cities') != '') {
|
||||
@@ -467,7 +467,7 @@ class LeBonCoinBridge extends BridgeAbstract {
|
||||
}
|
||||
|
||||
if($this->getInput('estate') != '') {
|
||||
$requestJson->filters->enums['real_estate_type'] = [$this->getInput('estate')];
|
||||
$requestJson->filters->enums['real_estate_type'] = array($this->getInput('estate'));
|
||||
}
|
||||
|
||||
if($this->getInput('roomsmin') != ''
|
||||
@@ -526,7 +526,7 @@ class LeBonCoinBridge extends BridgeAbstract {
|
||||
}
|
||||
|
||||
if($this->getInput('fuel') != '') {
|
||||
$requestJson->filters->enums['fuel'] = [$this->getInput('fuel')];
|
||||
$requestJson->filters->enums['fuel'] = array($this->getInput('fuel'));
|
||||
}
|
||||
|
||||
$requestJson->limit = 30;
|
||||
|
Reference in New Issue
Block a user