From 5093eadfca6aed9b44325b11c13729697f7c5ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 23:24:30 +0200 Subject: [PATCH] [TheCodingLoveBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/TheCodingLoveBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/TheCodingLoveBridge.php b/bridges/TheCodingLoveBridge.php index b42690f..c97f83c 100644 --- a/bridges/TheCodingLoveBridge.php +++ b/bridges/TheCodingLoveBridge.php @@ -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();