1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-01 06:10:22 +02:00

[bridges] use constants instead of variable members

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière
2016-08-30 11:23:55 +02:00
parent 556b8a2452
commit 9a0da733ef
129 changed files with 834 additions and 834 deletions

View File

@@ -1,19 +1,19 @@
<?php
class StripeAPIChangeLogBridge extends BridgeAbstract{
public $maintainer = 'Pierre Mazière';
public $name = 'Stripe API Changelog';
public $uri = 'https://stripe.com/docs/upgrades';
public $description = 'Returns the changes made to the stripe.com API';
const MAINTAINER = 'Pierre Mazière';
const NAME = 'Stripe API Changelog';
const URI = 'https://stripe.com/docs/upgrades';
const DESCRIPTION = 'Returns the changes made to the stripe.com API';
public function collectData(){
$html = $this->getSimpleHTMLDOM($this->uri)
$html = $this->getSimpleHTMLDOM(self::URI)
or $this->returnServerError('No results for Stripe API Changelog');
foreach($html->find('h3') as $change){
$item=array();
$item['title']=trim($change->plaintext);
$item['uri']=$this->uri.'#'.$item['title'];
$item['uri']=self::URI.'#'.$item['title'];
$item['author']='stripe';
$item['content']=$change->nextSibling()->outertext;
$item['timestamp']=strtotime($item['title']);