From 1028456f174fa217296258285065194a0bf9fbdd Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 10 Jan 2014 22:56:22 -0800 Subject: [PATCH] Prefix private method name http_build_multi_query with an underscore --- lib/Curl.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Curl.class.php b/lib/Curl.class.php index 8ab907c..ad0dc72 100644 --- a/lib/Curl.class.php +++ b/lib/Curl.class.php @@ -162,7 +162,7 @@ class Curl { $this->_before_send = $function; } - private function http_build_multi_query($data, $key=NULL) { + private function _http_build_multi_query($data, $key=NULL) { $query = array(); if (empty($data)) { @@ -178,7 +178,7 @@ class Curl { } else if (is_array($value)) { $nested = is_null($key) ? $k : $key . '[' . $k . ']'; - $query[] = $this->http_build_multi_query($value, $nested); + $query[] = $this->_http_build_multi_query($value, $nested); } } @@ -204,7 +204,7 @@ class Curl { private function _postfields($data) { if (is_array($data)) { if (is_array_multidim($data)) { - $data = $this->http_build_multi_query($data); + $data = $this->_http_build_multi_query($data); } else { // Fix "Notice: Array to string conversion" when $value in