mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-15 21:06:33 +00:00
Remove foreach loops
This commit is contained in:
@@ -746,15 +746,13 @@ class MultiCurl
|
||||
$curl->complete($this->completeFunction);
|
||||
}
|
||||
|
||||
foreach ($this->options as $option => $value) {
|
||||
$curl->setOpt($option, $value);
|
||||
}
|
||||
foreach ($this->headers as $key => $value) {
|
||||
$curl->setHeader($key, $value);
|
||||
}
|
||||
$curl->setOpts($this->options);
|
||||
$curl->setHeaders($this->headers);
|
||||
|
||||
foreach ($this->cookies as $key => $value) {
|
||||
$curl->setCookie($key, $value);
|
||||
}
|
||||
|
||||
$curl->setJsonDecoder($this->jsonDecoder);
|
||||
$curl->setXmlDecoder($this->xmlDecoder);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ if ($request_method === 'POST') {
|
||||
$test = '';
|
||||
if (isset($_SERVER['HTTP_X_DEBUG_TEST'])) {
|
||||
$test = $_SERVER['HTTP_X_DEBUG_TEST'];
|
||||
} else if (isset($_GET['test'])) {
|
||||
} elseif (isset($_GET['test'])) {
|
||||
$test = $_GET['test'];
|
||||
}
|
||||
$key = isset($data_values['key']) ? $data_values['key'] : '';
|
||||
|
||||
Reference in New Issue
Block a user