mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-21 15:51:55 +02:00
bridges: Remove unused functions and update scopes
Many bridges implemented getDescription() which is only applicable for bridges extending RSSExpander. Functions that are not part of the abstract class or interface should be in private scope for better readability.
This commit is contained in:
@@ -6,8 +6,8 @@ class DilbertBridge extends BridgeAbstract {
|
||||
$this->maintainer = 'kranack';
|
||||
$this->name = $this->getName();
|
||||
$this->uri = $this->getURI();
|
||||
$this->description = $this->getDescription();
|
||||
$this->update = "14/05/2016";
|
||||
$this->description = 'The Unofficial Dilbert Daily Comic Strip';
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
}
|
||||
|
||||
@@ -46,10 +46,6 @@ class DilbertBridge extends BridgeAbstract {
|
||||
return 'http://dilbert.com';
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return 'The Unofficial Dilbert Daily Comic Strip';
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 21600; // 6 hours
|
||||
}
|
||||
|
Reference in New Issue
Block a user