private prepareAuthContext ( resource $ch ) : resource | ||
$ch | resource | |
return | resource | $ch |
private function prepareAuthContext($ch)
{
if ($this->username && $this->password) {
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);
}
return $ch;
}