@@ -49,13 +49,13 @@ public function send( $json )
4949
5050 if ( $ stream = @fopen ( $ url , 'r ' , false , $ context ) )
5151 {
52- $ meta = stream_get_meta_data ( $ stream );
53- $ raw_response = implode ( "\r\n" , $ meta ['wrapper_data ' ] ) . "\r\n\r\n" . stream_get_contents ( $ stream );
52+ $ meta = stream_get_meta_data ( $ stream );
53+ $ rawResponse = implode ( "\r\n" , $ meta ['wrapper_data ' ] ) . "\r\n\r\n" . stream_get_contents ( $ stream );
5454 fclose ( $ stream );
5555
56- if ( !empty ($ raw_response ) )
56+ if ( !empty ($ rawResponse ) )
5757 {
58- $ response = $ this ->buildResponse ( $ response , $ raw_response );
58+ $ response = $ this ->buildResponse ( $ response , $ rawResponse );
5959 }
6060 }
6161 else
@@ -94,12 +94,12 @@ private function sendWithCurl( $url, $payload )
9494 );
9595 curl_setopt ( $ curl , CURLOPT_CUSTOMREQUEST , 'POST ' );
9696 curl_setopt ( $ curl , CURLOPT_POSTFIELDS , $ payload );
97- $ raw_response = curl_exec ( $ curl );
97+ $ rawResponse = curl_exec ( $ curl );
9898
9999 $ status = curl_getinfo ( $ curl , CURLINFO_HTTP_CODE );
100- if ( !empty ($ raw_response ) )
100+ if ( !empty ($ rawResponse ) )
101101 {
102- $ response = $ this ->buildResponse ( $ response , $ raw_response );
102+ $ response = $ this ->buildResponse ( $ response , $ rawResponse );
103103 }
104104 else
105105 {
0 commit comments