[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() {
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();