PSR: CamelCaps
This commit is contained in:
@@ -18,7 +18,7 @@ class HttpResponse
|
|||||||
public function __construct($code, $raw_body, $headers, $json_decode_assoc = false)
|
public function __construct($code, $raw_body, $headers, $json_decode_assoc = false)
|
||||||
{
|
{
|
||||||
$this->code = $code;
|
$this->code = $code;
|
||||||
$this->headers = $this->get_headers_from_curl_response($headers);
|
$this->headers = $this->GetHeadersFromCurlResponse($headers);
|
||||||
$this->raw_body = $raw_body;
|
$this->raw_body = $raw_body;
|
||||||
$this->body = $raw_body;
|
$this->body = $raw_body;
|
||||||
$json = json_decode($raw_body, $json_decode_assoc);
|
$json = json_decode($raw_body, $json_decode_assoc);
|
||||||
@@ -60,7 +60,7 @@ class HttpResponse
|
|||||||
* @param string $headers header string from cURL response
|
* @param string $headers header string from cURL response
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
private function get_headers_from_curl_response($headers)
|
private function GetHeadersFromCurlResponse($headers)
|
||||||
{
|
{
|
||||||
$result = array();
|
$result = array();
|
||||||
$headers = explode("\r\n", $headers);
|
$headers = explode("\r\n", $headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user