[Instructables] refactor: conform to PSR2 (#2870)

This commit is contained in:
Dag 2022-07-01 02:19:47 +02:00 committed by GitHub
parent 2c7a9d7c45
commit 9f2f1e526d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -269,7 +269,7 @@ class InstructablesBridge extends BridgeAbstract {
public function getName() { public function getName() {
switch($this->queriedContext) { switch($this->queriedContext) {
case 'Category': { case 'Category':
foreach(self::PARAMETERS[$this->queriedContext]['category']['values'] as $key => $value) { foreach(self::PARAMETERS[$this->queriedContext]['category']['values'] as $key => $value) {
$subcategory = array_search($this->getInput('category'), $value); $subcategory = array_search($this->getInput('category'), $value);
@ -283,7 +283,6 @@ class InstructablesBridge extends BridgeAbstract {
); );
return $subcategory . ' (' . $filter . ') - ' . static::NAME; return $subcategory . ' (' . $filter . ') - ' . static::NAME;
} break;
} }
return parent::getName(); return parent::getName();
@ -291,11 +290,10 @@ class InstructablesBridge extends BridgeAbstract {
public function getURI() { public function getURI() {
switch($this->queriedContext) { switch($this->queriedContext) {
case 'Category': { case 'Category':
return self::URI return self::URI
. $this->getInput('category') . $this->getInput('category')
. $this->getInput('filter'); . $this->getInput('filter');
} break;
} }
return parent::getURI(); return parent::getURI();