1
0
Fork 0
forked from blallo/rss-bridge

[BlaguesDeMerdeBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 11:59:34 +02:00
parent 1068f31303
commit 88521f188e

View file

@ -8,7 +8,8 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://www.blaguesdemerde.fr/') or $this->returnServerError('Could not request BDM.');
$html = $this->getSimpleHTMLDOM($this->uri)
or $this->returnServerError('Could not request BDM.');
foreach($html->find('article.joke_contener') as $element) {
$item = array();