forked from blallo/rss-bridge
[StripeAPIChangeLogBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
cf70e43f59
commit
0b482283cb
1 changed files with 2 additions and 2 deletions
|
@ -6,14 +6,14 @@ class StripeAPIChangeLogBridge extends BridgeAbstract{
|
|||
public $description = 'Returns the changes made to the stripe.com API';
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM('https://stripe.com/docs/upgrades')
|
||||
$html = $this->getSimpleHTMLDOM($this->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']='https://stripe.com/docs/upgrades#'.$item['title'];
|
||||
$item['uri']=$this->uri.'#'.$item['title'];
|
||||
$item['author']='stripe';
|
||||
$item['content']=$change->nextSibling()->outertext;
|
||||
$item['timestamp']=strtotime($item['title']);
|
||||
|
|
Loading…
Reference in a new issue