@@ -209,12 +209,12 @@ discard block |
||
209 | 209 | */ |
210 | 210 | private function authorise() |
211 | 211 | { |
212 | - $url = $this->getOption('authoriseURL') . '?oauth_token=' . $this->token['key']; |
|
212 | + $url = $this->getOption('authoriseURL').'?oauth_token='.$this->token['key']; |
|
213 | 213 | |
214 | 214 | if ($this->getOption('scope')) |
215 | 215 | { |
216 | 216 | $scope = \is_array($this->getOption('scope')) ? implode(' ', $this->getOption('scope')) : $this->getOption('scope'); |
217 | - $url .= '&scope=' . urlencode($scope); |
|
217 | + $url .= '&scope='.urlencode($scope); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | if ($this->getOption('sendheaders')) |
@@ -358,11 +358,11 @@ discard block |
||
358 | 358 | { |
359 | 359 | if (!strcmp($header, 'OAuth ')) |
360 | 360 | { |
361 | - $header .= $key . '="' . $this->safeEncode($value) . '"'; |
|
361 | + $header .= $key.'="'.$this->safeEncode($value).'"'; |
|
362 | 362 | } |
363 | 363 | else |
364 | 364 | { |
365 | - $header .= ', ' . $key . '="' . $value . '"'; |
|
365 | + $header .= ', '.$key.'="'.$value.'"'; |
|
366 | 366 | } |
367 | 367 | } |
368 | 368 | |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | $url .= '&'; |
397 | 397 | } |
398 | 398 | |
399 | - $url .= $key . '=' . $v; |
|
399 | + $url .= $key.'='.$v; |
|
400 | 400 | } |
401 | 401 | } |
402 | 402 | else |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $url .= '&'; |
416 | 416 | } |
417 | 417 | |
418 | - $url .= $key . '=' . $value; |
|
418 | + $url .= $key.'='.$value; |
|
419 | 419 | } |
420 | 420 | } |
421 | 421 | |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | public static function generateNonce() |
537 | 537 | { |
538 | 538 | // The md5s look nicer than numbers. |
539 | - return md5(microtime() . random_bytes(16)); |
|
539 | + return md5(microtime().random_bytes(16)); |
|
540 | 540 | } |
541 | 541 | |
542 | 542 | /** |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | */ |
549 | 549 | private function prepareSigningKey(): string |
550 | 550 | { |
551 | - return $this->safeEncode($this->getOption('consumer_secret')) . '&' . $this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
551 | + return $this->safeEncode($this->getOption('consumer_secret')).'&'.$this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
552 | 552 | } |
553 | 553 | |
554 | 554 | /** |