From 946a0744ed6da6ef313537756c87ac204ae48d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Thu, 25 Aug 2016 00:33:25 +0200 Subject: [PATCH] [GiphyBridge] merge parameters context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/GiphyBridge.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php index 16c8f8c8..0ad0f910 100644 --- a/bridges/GiphyBridge.php +++ b/bridges/GiphyBridge.php @@ -10,16 +10,14 @@ class GiphyBridge extends BridgeAbstract{ $this->uri = "http://giphy.com/"; $this->description = "Bridge for giphy.com"; - $this->parameters["By tag"] = array( - 's'=>array('name'=>'search tag') + $this->parameters[] = array( + 's'=>array('name'=>'search tag'), + 'n'=>array( + 'name'=>'max number of returned items', + 'type'=>'number' + ) ); - $this->parameters["Without tag"] = array( - 'n'=>array( - 'name'=>'max number of returned items', - 'type'=>'number' - ) - ); } public function collectData(array $param){