mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-26 01:34:03 +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,10 +6,10 @@ class MsnMondeBridge extends BridgeAbstract{
|
||||
$this->name = "MSN Actu Monde";
|
||||
$this->uri = "http://www.msn.com/fr-fr/actualite/monde";
|
||||
$this->description = "Returns the 10 newest posts from MSN Actualités (full text)";
|
||||
$this->update = "2016-08-03";
|
||||
$this->update = "2016-08-06";
|
||||
}
|
||||
|
||||
function MsnMondeExtractContent($url, &$item) {
|
||||
private function MsnMondeExtractContent($url, &$item) {
|
||||
$html2 = $this->file_get_html($url);
|
||||
$item->content = $html2->find('#content', 0)->find('article', 0)->find('section', 0)->plaintext;
|
||||
$item->timestamp = strtotime($html2->find('.authorinfo-txt', 0)->find('time', 0)->datetime);
|
||||
|
Reference in New Issue
Block a user