diff options
author | 2022-07-01 02:19:47 +0200 | |
---|---|---|
committer | 2022-07-01 02:19:47 +0200 | |
commit | 9f2f1e526dccb3267aa3dbe6ccb60b3eebd58c74 (patch) | |
tree | 854d77f7b5b2ac785cc30d8bca23a484b1f4154f | |
parent | 2c7a9d7c45d3bc4dc955bb8fd5701a0df47ab3d5 (diff) | |
download | rss-bridge-9f2f1e526dccb3267aa3dbe6ccb60b3eebd58c74.tar.gz rss-bridge-9f2f1e526dccb3267aa3dbe6ccb60b3eebd58c74.tar.zst rss-bridge-9f2f1e526dccb3267aa3dbe6ccb60b3eebd58c74.zip |
[Instructables] refactor: conform to PSR2 (#2870)
-rw-r--r-- | bridges/InstructablesBridge.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bridges/InstructablesBridge.php b/bridges/InstructablesBridge.php index 878bfdbe..98987944 100644 --- a/bridges/InstructablesBridge.php +++ b/bridges/InstructablesBridge.php @@ -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(); |