mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
[WordPress] Fix indentation and remove empty lines
This commit is contained in:
parent
455b98757c
commit
d944558a3d
@ -21,7 +21,6 @@ class WordPressBridge extends BridgeAbstract {
|
||||
"identifier" : "url"
|
||||
}
|
||||
]';
|
||||
|
||||
}
|
||||
|
||||
// Returns the content type for a given html dom
|
||||
@ -73,10 +72,10 @@ class WordPressBridge extends BridgeAbstract {
|
||||
else
|
||||
$posts = $html->find('entry');
|
||||
|
||||
|
||||
if(!empty($posts) ) {
|
||||
$this->name = $html->find('title', 0)->plaintext;
|
||||
$i=0;
|
||||
|
||||
foreach ($posts as $article) {
|
||||
if($i < 3) {
|
||||
|
||||
@ -110,8 +109,7 @@ class WordPressBridge extends BridgeAbstract {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$this->returnError("Sorry, {$this->url} doesn't seem to be a Wordpress blog.", 404);
|
||||
}
|
||||
}
|
||||
@ -138,6 +136,4 @@ class WordPressBridge extends BridgeAbstract {
|
||||
private function processParams($param) {
|
||||
$this->url = $param['url'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user