From 5cbd3635970917976961a032a34db927a6586530 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Tue, 17 Oct 2017 23:30:27 +0200 Subject: [PATCH] Coding style fix Fixed the bridge to follow the project coding style --- bridges/DealabsBridge.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/bridges/DealabsBridge.php b/bridges/DealabsBridge.php index ee6bd1a..a2e9f50 100644 --- a/bridges/DealabsBridge.php +++ b/bridges/DealabsBridge.php @@ -2,9 +2,8 @@ class DealabsBridge extends BridgeAbstract { const NAME = 'Dealabs search bridge'; const URI = 'https://www.dealabs.com/'; - const DESCRIPTION = 'Return the Dealabs search result using keywords,' - . ' with/without expired deals, with/without shop deals and by' - . ' category'; + const DESCRIPTION = 'Return the Dealabs search result using keywords, + with/without expired deals, with/without shop deals and by category'; const MAINTAINER = 'sysadminstory'; const PARAMETERS = array( array ( 'q' => array( @@ -154,18 +153,15 @@ class DealabsBridge extends BridgeAbstract { } private function getCatSubcatParam($str) { - if(strlen($str) >=2) { + if(strlen($str) >= 2) { if(substr($str, 0, 1) == 'c') { $var_name = 'cat[]'; - } - else if(substr($str, 0, 1) == 's') { + } else if(substr($str, 0, 1) == 's') { $var_name = 'sub_cat[]'; } $value = substr($str, 1); return $var_name .'='. $value; - } - else - { + } else { return ''; } }