From 1db9040ea844017931751dbd9659b09f1ec78d47 Mon Sep 17 00:00:00 2001 From: Jasper van Rijbroek Date: Sat, 20 Jan 2018 15:46:04 +0100 Subject: [PATCH 1/2] Allow for extendibility. --- src/Client.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Client.php b/src/Client.php index 7f1c1dd..a014362 100755 --- a/src/Client.php +++ b/src/Client.php @@ -24,11 +24,11 @@ class Client /** * private properties */ - private $baseurl = 'https://127.0.0.1:8443'; - private $site = 'default'; - private $version = '5.4.16'; - private $debug = false; - private $is_loggedin = false; + protected $baseurl = 'https://127.0.0.1:8443'; + protected $site = 'default'; + protected $version = '5.4.16'; + protected $debug = false; + protected $is_loggedin = false; private $cookies = ''; private $request_type = 'POST'; private $connect_timeout = 10; @@ -1972,7 +1972,7 @@ class Client /** * Process regular responses where output is the content of the data array */ - private function process_response($response_json) + protected function process_response($response_json) { $response = json_decode($response_json); $this->catch_json_last_error(); @@ -1998,7 +1998,7 @@ class Client /** * Process responses where output should be boolean (true/false) */ - private function process_response_boolean($response_json) + protected function process_response_boolean($response_json) { $response = json_decode($response_json); $this->catch_json_last_error(); @@ -2122,7 +2122,7 @@ class Client /** * Execute the cURL request */ - private function exec_curl($path, $data = '') + protected function exec_curl($path, $data = '') { $url = $this->baseurl.$path; From dcf7d2059c6b30b1041b663be45a77bdbc827655 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Mon, 29 Jan 2018 13:36:13 +0100 Subject: [PATCH 2/2] removed some spaces for cosmetic reasons only --- src/Client.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Client.php b/src/Client.php index a014362..16818ea 100755 --- a/src/Client.php +++ b/src/Client.php @@ -24,11 +24,11 @@ class Client /** * private properties */ - protected $baseurl = 'https://127.0.0.1:8443'; - protected $site = 'default'; - protected $version = '5.4.16'; - protected $debug = false; - protected $is_loggedin = false; + protected $baseurl = 'https://127.0.0.1:8443'; + protected $site = 'default'; + protected $version = '5.4.16'; + protected $debug = false; + protected $is_loggedin = false; private $cookies = ''; private $request_type = 'POST'; private $connect_timeout = 10;