Skip to content

Commit 2a10361

Browse files
committed
Clean up
1 parent bec3cfa commit 2a10361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Curl/Curl.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ private function parseHeaders($raw_headers)
488488
$raw_headers = preg_split('/\r\n/', $raw_headers, null, PREG_SPLIT_NO_EMPTY);
489489
$http_headers = new CaseInsensitiveArray();
490490

491-
for ($i = 1; $i < count($raw_headers); $i++) {
491+
$raw_headers_count = count($raw_headers);
492+
for ($i = 1; $i < $raw_headers_count; $i++) {
492493
list($key, $value) = explode(':', $raw_headers[$i], 2);
493494
$key = trim($key);
494495
$value = trim($value);

src/Curl/MultiCurl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function addDownload($url, $mixed_filename)
4646
$curl = new Curl();
4747
$curl->setURL($url);
4848

49-
$callback = false;
5049
if (is_callable($mixed_filename)) {
5150
$callback = $mixed_filename;
5251
$curl->download_complete_function = $callback;

0 commit comments

Comments
 (0)