mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-20 23:31:37 +02:00
bridges: Fix default return values and function scopes
getURI and getName should fall back to parent::getURI or parent::getName respectively if it cannot build propper return values. Functions defined by bridges should be made private to prevent confusion with inherited functions
This commit is contained in:
@@ -122,6 +122,8 @@ class IsoHuntBridge extends BridgeAbstract{
|
||||
if($category!=='movies')
|
||||
$uri .= '&ihq=' . urlencode($this->getInput('search_name'));
|
||||
break;
|
||||
|
||||
default: parent::getURI();
|
||||
}
|
||||
|
||||
return $uri;
|
||||
@@ -155,6 +157,8 @@ class IsoHuntBridge extends BridgeAbstract{
|
||||
);
|
||||
$name = 'Search: "' . $this->getInput('search_name') . '" in category: ' . $categoryName . ' - ' . self::NAME;
|
||||
break;
|
||||
|
||||
default: return parent::getName();
|
||||
}
|
||||
|
||||
return $name;
|
||||
|
Reference in New Issue
Block a user