mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-07 00:56:34 +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 TheCodingLoveBridge extends BridgeAbstract{
|
||||
|
||||
public $maintainer = "superbaillot.net";
|
||||
public $name = "The Coding Love";
|
||||
public $uri = "http://thecodinglove.com/";
|
||||
public $description = "The Coding Love";
|
||||
const MAINTAINER = "superbaillot.net";
|
||||
const NAME = "The Coding Love";
|
||||
const URI = "http://thecodinglove.com/";
|
||||
const DESCRIPTION = "The Coding Love";
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||
$html = $this->getSimpleHTMLDOM(self::URI)
|
||||
or $this->returnServerError('Could not request The Coding Love.');
|
||||
|
||||
foreach($html->find('div.post') as $element) {
|
||||
|
Reference in New Issue
Block a user