@@ -49,13 +49,13 @@ public function send( $json )
49
49
50
50
if ( $ stream = @fopen ( $ url , 'r ' , false , $ context ) )
51
51
{
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 );
54
54
fclose ( $ stream );
55
55
56
- if ( !empty ($ raw_response ) )
56
+ if ( !empty ($ rawResponse ) )
57
57
{
58
- $ response = $ this ->buildResponse ( $ response , $ raw_response );
58
+ $ response = $ this ->buildResponse ( $ response , $ rawResponse );
59
59
}
60
60
}
61
61
else
@@ -94,12 +94,12 @@ private function sendWithCurl( $url, $payload )
94
94
);
95
95
curl_setopt ( $ curl , CURLOPT_CUSTOMREQUEST , 'POST ' );
96
96
curl_setopt ( $ curl , CURLOPT_POSTFIELDS , $ payload );
97
- $ raw_response = curl_exec ( $ curl );
97
+ $ rawResponse = curl_exec ( $ curl );
98
98
99
99
$ status = curl_getinfo ( $ curl , CURLINFO_HTTP_CODE );
100
- if ( !empty ($ raw_response ) )
100
+ if ( !empty ($ rawResponse ) )
101
101
{
102
- $ response = $ this ->buildResponse ( $ response , $ raw_response );
102
+ $ response = $ this ->buildResponse ( $ response , $ rawResponse );
103
103
}
104
104
else
105
105
{
0 commit comments