Skip to content

Commit c315c5f

Browse files
committed
Clean up syntax pursuant to PSR2
1 parent 257c255 commit c315c5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Curl.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ private function parseResponse($response)
283283
{
284284
$response_headers = '';
285285
if (!(strpos($response, "\r\n\r\n") === false)) {
286-
$response_array = (explode("\r\n\r\n", $response));
287-
for($i = count($response_array) - 1; $i>=0 ;$i--){
288-
if (stripos($response_array[$i],'HTTP') === 0){
286+
$response_array = explode("\r\n\r\n", $response);
287+
for ($i = count($response_array) - 1; $i >= 0; $i--) {
288+
if (stripos($response_array[$i], 'HTTP') === 0) {
289289
$response_header = $response_array[$i];
290-
$response = implode("\r\n\r\n", array_splice($response_array, $i+1));
290+
$response = implode("\r\n\r\n", array_splice($response_array, $i + 1));
291291
break;
292292
}
293293
}

0 commit comments

Comments
 (0)