mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-12 19:44:12 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
class LesJoiesDuCodeBridge extends BridgeAbstract{
|
||||
|
||||
public $maintainer = "superbaillot.net";
|
||||
public $name = "Les Joies Du Code";
|
||||
public $uri = "http://lesjoiesducode.fr/";
|
||||
public $description = "LesJoiesDuCode";
|
||||
const MAINTAINER = "superbaillot.net";
|
||||
const NAME = "Les Joies Du Code";
|
||||
const URI = "http://lesjoiesducode.fr/";
|
||||
const DESCRIPTION = "LesJoiesDuCode";
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||
$html = $this->getSimpleHTMLDOM(self::URI)
|
||||
or $this->returnServerError('Could not request LesJoiesDuCode.');
|
||||
|
||||
foreach($html->find('div.blog-post') as $element) {
|
||||
|
Reference in New Issue
Block a user