From 7710613e6253d7d4eeb006f29d57bd0d10b4d2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 12:26:21 +0200 Subject: [PATCH] [Castorus] fix and code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/CastorusBridge.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bridges/CastorusBridge.php b/bridges/CastorusBridge.php index 453f2b55..35736b80 100644 --- a/bridges/CastorusBridge.php +++ b/bridges/CastorusBridge.php @@ -74,11 +74,8 @@ class CastorusBridge extends BridgeAbstract { } public function collectData(){ - if(isset($this->getInput('zip'))) - $zip_filter = trim($this->getInput('zip')); - - if(isset($this->getInput('city'))) - $city_filter = trim($this->getInput('city')); + $zip_filter = trim($this->getInput('zip')); + $city_filter = trim($this->getInput('city')); $html = $this->getSimpleHTMLDOM($this->uri);