[TheCodingLoveBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 23:24:30 +02:00
parent 3212c33770
commit 5093eadfca

View file

@ -7,7 +7,8 @@ class TheCodingLoveBridge extends BridgeAbstract{
public $description = "The Coding Love";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://thecodinglove.com/') or $this->returnServerError('Could not request The Coding Love.');
$html = $this->getSimpleHTMLDOM($this->uri)
or $this->returnServerError('Could not request The Coding Love.');
foreach($html->find('div.post') as $element) {
$item = array();