1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

bridges: Put name/uri directly in bridge metadata

Some bridges used getName() and getURI() to put information into the
metadatas. Instead the metadatas should be initialized with data and
(not yet done) returned by default via getName() and getURI().
This commit is contained in:
logmanoriginal
2016-08-06 17:55:29 +02:00
parent 5ad157d2fd
commit 5432cabef5
11 changed files with 45 additions and 45 deletions

View File

@@ -3,8 +3,8 @@ class NakedSecurityBridge extends BridgeAbstract {
public function loadMetadatas() {
$this->maintainer = 'ORelio';
$this->name = $this->getName();
$this->uri = $this->getURI();
$this->name = 'Naked Security';
$this->uri = 'https://nakedsecurity.sophos.com/';
$this->description = 'Returns the newest articles.';
$this->update = '2016-08-06';
}
@@ -71,10 +71,10 @@ class NakedSecurityBridge extends BridgeAbstract {
}
public function getName() {
return 'Naked Security';
return $this->name;
}
public function getURI() {
return 'https://nakedsecurity.sophos.com/';
return $this->uri;
}
}