mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-24 07:26:53 +00:00
run phpcbf on BloombergBridge
This commit is contained in:
parent
b4d0098c8a
commit
f7106c3137
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
class BloombergBridge extends BridgeAbstract {
|
||||
class BloombergBridge extends BridgeAbstract
|
||||
{
|
||||
const NAME = 'Bloomberg';
|
||||
const URI = 'https://www.bloomberg.com/';
|
||||
const DESCRIPTION = 'Trending stories from Bloomberg';
|
||||
@ -15,7 +16,8 @@ class BloombergBridge extends BridgeAbstract {
|
||||
)
|
||||
);
|
||||
|
||||
public function getName(){
|
||||
public function getName()
|
||||
{
|
||||
switch($this->queriedContext) {
|
||||
case 'Trending Stories':
|
||||
return self::NAME . ' Trending Stories';
|
||||
@ -29,7 +31,8 @@ class BloombergBridge extends BridgeAbstract {
|
||||
return parent::getName();
|
||||
}
|
||||
|
||||
public function collectData(){
|
||||
public function collectData()
|
||||
{
|
||||
switch($this->queriedContext) {
|
||||
case 'Trending Stories': // Get list of top new <article>s from the front page.
|
||||
$html = getSimpleHTMLDOMCached($this->getURI(), 300);
|
||||
|
Loading…
Reference in New Issue
Block a user