mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 12:04:09 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
class LichessBridge extends HttpCachingBridgeAbstract
|
||||
{
|
||||
public $maintainer = 'AmauryCarrade';
|
||||
public $name = 'Lichess Blog';
|
||||
public $uri = 'http://fr.lichess.org/blog';
|
||||
public $description = 'Returns the 5 newest posts from the Lichess blog (full text)';
|
||||
const MAINTAINER = 'AmauryCarrade';
|
||||
const NAME = 'Lichess Blog';
|
||||
const URI = 'http://fr.lichess.org/blog';
|
||||
const DESCRIPTION = 'Returns the 5 newest posts from the Lichess blog (full text)';
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$xml_feed = $this->getSimpleHTMLDOM($this->uri.'.atom')
|
||||
$xml_feed = $this->getSimpleHTMLDOM(self::URI.'.atom')
|
||||
or $this->returnServerError('Could not retrieve Lichess blog feed.');
|
||||
|
||||
$posts_loaded = 0;
|
||||
|
Reference in New Issue
Block a user