mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-06-24 13:39:40 +02:00
Fix lint
This commit is contained in:
parent
a73fa23a76
commit
153752e81d
|
@ -83,10 +83,10 @@ class CurlLinkChecker implements LinkChecker
|
||||||
// Add headers
|
// Add headers
|
||||||
$headers = (array) $this->config()->get('headers');
|
$headers = (array) $this->config()->get('headers');
|
||||||
if (!empty($headers)) {
|
if (!empty($headers)) {
|
||||||
array_walk($headers, function(&$value, $header) {
|
array_walk($headers, function (&$value, $header) {
|
||||||
$value = "$header: $value";
|
$value = "$header: $value";
|
||||||
});
|
});
|
||||||
curl_setopt($handle, CURLOPT_HTTPHEADER , $headers);
|
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve http code
|
// Retrieve http code
|
||||||
|
|
Loading…
Reference in New Issue
Block a user