From 9099801dd702f0aaadf04d6491b3fe6b05c314c9 Mon Sep 17 00:00:00 2001 From: Philippe Bachilli Date: Mon, 7 Mar 2016 18:03:38 -0300 Subject: [PATCH] Update action method Update action() method to maintain original api_url and return action only when called --- src/Skizu/SimpleAPI/RegisterAPI.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Skizu/SimpleAPI/RegisterAPI.php b/src/Skizu/SimpleAPI/RegisterAPI.php index b89bb3e..f51c3ea 100644 --- a/src/Skizu/SimpleAPI/RegisterAPI.php +++ b/src/Skizu/SimpleAPI/RegisterAPI.php @@ -75,9 +75,7 @@ public function __construct($api, $auth = false) public function action($action) { - $this->api_url .= $action; - - return $this; + return $this->api_url . $action; } public function lookup($search = null, $method = 'GET') @@ -169,4 +167,4 @@ private function queries() { return Cache::get($this->queries_key, 0); } -} \ No newline at end of file +}