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:
@@ -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']);
|
||||
|
Reference in New Issue
Block a user