Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../vendor/eher/oauth/src/Eher/OAuth
File: Token.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Eher\OAuth;
[2] Fix | Delete
[3] Fix | Delete
class Token {
[4] Fix | Delete
// access tokens and request tokens
[5] Fix | Delete
public $key;
[6] Fix | Delete
public $secret;
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* key = the token
[10] Fix | Delete
* secret = the token secret
[11] Fix | Delete
*/
[12] Fix | Delete
function __construct($key, $secret) {
[13] Fix | Delete
$this->key = $key;
[14] Fix | Delete
$this->secret = $secret;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* generates the basic string serialization of a token that a server
[19] Fix | Delete
* would respond to request_token and access_token calls with
[20] Fix | Delete
*/
[21] Fix | Delete
function to_string() {
[22] Fix | Delete
return "oauth_token=" .
[23] Fix | Delete
Util::urlencode_rfc3986($this->key) .
[24] Fix | Delete
"&oauth_token_secret=" .
[25] Fix | Delete
Util::urlencode_rfc3986($this->secret);
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
function __toString() {
[29] Fix | Delete
return $this->to_string();
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function