mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 04:34:27 +00:00
Clean up syntax pursuant to PSR2
This commit is contained in:
+4
-4
@@ -283,11 +283,11 @@ class Curl
|
||||
{
|
||||
$response_headers = '';
|
||||
if (!(strpos($response, "\r\n\r\n") === false)) {
|
||||
$response_array = (explode("\r\n\r\n", $response));
|
||||
for($i = count($response_array) - 1; $i>=0 ;$i--){
|
||||
if (stripos($response_array[$i],'HTTP') === 0){
|
||||
$response_array = explode("\r\n\r\n", $response);
|
||||
for ($i = count($response_array) - 1; $i >= 0; $i--) {
|
||||
if (stripos($response_array[$i], 'HTTP') === 0) {
|
||||
$response_header = $response_array[$i];
|
||||
$response = implode("\r\n\r\n", array_splice($response_array, $i+1));
|
||||
$response = implode("\r\n\r\n", array_splice($response_array, $i + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user