@@ -217,12 +217,12 @@ discard block |
||
| 217 | 217 | */ |
| 218 | 218 | private function authorise() |
| 219 | 219 | { |
| 220 | - $url = $this->getOption('authoriseURL') . '?oauth_token=' . $this->token['key']; |
|
| 220 | + $url = $this->getOption('authoriseURL').'?oauth_token='.$this->token['key']; |
|
| 221 | 221 | |
| 222 | 222 | if ($this->getOption('scope')) |
| 223 | 223 | { |
| 224 | 224 | $scope = \is_array($this->getOption('scope')) ? implode(' ', $this->getOption('scope')) : $this->getOption('scope'); |
| 225 | - $url .= '&scope=' . urlencode($scope); |
|
| 225 | + $url .= '&scope='.urlencode($scope); |
|
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | if ($this->getOption('sendheaders')) |
@@ -370,11 +370,11 @@ discard block |
||
| 370 | 370 | { |
| 371 | 371 | if (!strcmp($header, 'OAuth ')) |
| 372 | 372 | { |
| 373 | - $header .= $key . '="' . $this->safeEncode($value) . '"'; |
|
| 373 | + $header .= $key.'="'.$this->safeEncode($value).'"'; |
|
| 374 | 374 | } |
| 375 | 375 | else |
| 376 | 376 | { |
| 377 | - $header .= ', ' . $key . '="' . $value . '"'; |
|
| 377 | + $header .= ', '.$key.'="'.$value.'"'; |
|
| 378 | 378 | } |
| 379 | 379 | } |
| 380 | 380 | |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | public static function generateNonce() |
| 514 | 514 | { |
| 515 | 515 | // The md5s look nicer than numbers. |
| 516 | - return md5(microtime() . random_bytes(16)); |
|
| 516 | + return md5(microtime().random_bytes(16)); |
|
| 517 | 517 | } |
| 518 | 518 | |
| 519 | 519 | /** |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | */ |
| 526 | 526 | private function prepareSigningKey(): string |
| 527 | 527 | { |
| 528 | - return $this->safeEncode($this->getOption('consumer_secret')) . '&' . $this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
| 528 | + return $this->safeEncode($this->getOption('consumer_secret')).'&'.$this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
| 529 | 529 | } |
| 530 | 530 | |
| 531 | 531 | /** |