mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 23:29:56 +03:00
[Instructables] refactor: conform to PSR2 (#2870)
This commit is contained in:
parent
2c7a9d7c45
commit
9f2f1e526d
1 changed files with 2 additions and 4 deletions
|
@ -269,7 +269,7 @@ class InstructablesBridge extends BridgeAbstract {
|
|||
|
||||
public function getName() {
|
||||
switch($this->queriedContext) {
|
||||
case 'Category': {
|
||||
case 'Category':
|
||||
foreach(self::PARAMETERS[$this->queriedContext]['category']['values'] as $key => $value) {
|
||||
$subcategory = array_search($this->getInput('category'), $value);
|
||||
|
||||
|
@ -283,7 +283,6 @@ class InstructablesBridge extends BridgeAbstract {
|
|||
);
|
||||
|
||||
return $subcategory . ' (' . $filter . ') - ' . static::NAME;
|
||||
} break;
|
||||
}
|
||||
|
||||
return parent::getName();
|
||||
|
@ -291,11 +290,10 @@ class InstructablesBridge extends BridgeAbstract {
|
|||
|
||||
public function getURI() {
|
||||
switch($this->queriedContext) {
|
||||
case 'Category': {
|
||||
case 'Category':
|
||||
return self::URI
|
||||
. $this->getInput('category')
|
||||
. $this->getInput('filter');
|
||||
} break;
|
||||
}
|
||||
|
||||
return parent::getURI();
|
||||
|
|
Loading…
Add table
Reference in a new issue