src/Request.php
private function addRequestAuth(&$curlOptions) {
        $username = $this->getOption(self::USERNAME_KEY);
        $password = $this->getOption(self::PASSWORD_KEY);
        if ((!is_null($username)) && (!is_null($password))) {
            $curlOptions[CURLOPT_USERPWD] = sprintf("%s:%s", $username, $password);
        }
    }
private function addRequestAuth(&$curlOptions) {
        $username = $this->getOption(self::USERNAME_KEY);
        $password = $this->getOption(self::PASSWORD_KEY);
        if ((!is_null($username)) && (!is_null($password))) {
            $curlOptions[CURLOPT_USERPWD] = sprintf("%s:%s", $username, $password);
        }
    }
private function addRequestAuth ( & $ curlOptions ) { $ username = $ this -> getOption ( self :: USERNAME_KEY ) ; $ password = $ this -> getOption ( self :: PASSWORD_KEY ) ; if ( ( ! is_null ( $ username ) ) && ( ! is_null ( $ password ) ) ) { $ curlOptions [ CURLOPT_USERPWD ] = sprintf ( "%s:%s" , $ username , $ password ) ; } }
Add authentication to curl options

@param array &$curlOptions
Add authentication to curl options