@@ -33,9 +33,9 @@ |
||
| 33 | 33 | public function to_string() : string |
| 34 | 34 | { |
| 35 | 35 | return 'oauth_token='. |
| 36 | - OAuthUtil::urlencode_rfc3986($this->key). |
|
| 37 | - '&oauth_token_secret='. |
|
| 38 | - OAuthUtil::urlencode_rfc3986($this->secret); |
|
| 36 | + OAuthUtil::urlencode_rfc3986($this->key). |
|
| 37 | + '&oauth_token_secret='. |
|
| 38 | + OAuthUtil::urlencode_rfc3986($this->secret); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | class OAuthServer |
| 6 | 6 | { |
| 7 | 7 | protected $timestamp_threshold = 300; // in seconds, five minutes |
| 8 | - protected $version = 1.0; // hi blaine |
|
| 8 | + protected $version = 1.0; // hi blaine |
|
| 9 | 9 | protected $signature_methods = []; |
| 10 | 10 | |
| 11 | 11 | protected $data_store; |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | ? 'http' |
| 30 | 30 | : 'https'; |
| 31 | 31 | @$http_url or $http_url = $scheme. |
| 32 | - '://'.$_SERVER['HTTP_HOST']. |
|
| 33 | - ':'. |
|
| 34 | - $_SERVER['SERVER_PORT']. |
|
| 35 | - $_SERVER['REQUEST_URI']; |
|
| 32 | + '://'.$_SERVER['HTTP_HOST']. |
|
| 33 | + ':'. |
|
| 34 | + $_SERVER['SERVER_PORT']. |
|
| 35 | + $_SERVER['REQUEST_URI']; |
|
| 36 | 36 | @$http_method or $http_method = $_SERVER['REQUEST_METHOD']; |
| 37 | 37 | |
| 38 | 38 | // We weren't handed any parameters, so let's find the ones relevant to |