@@ -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')) |
@@ -354,11 +354,11 @@ discard block |
||
354 | 354 | { |
355 | 355 | if (!strcmp($header, 'OAuth ')) |
356 | 356 | { |
357 | - $header .= $key . '="' . $this->safeEncode($value) . '"'; |
|
357 | + $header .= $key.'="'.$this->safeEncode($value).'"'; |
|
358 | 358 | } |
359 | 359 | else |
360 | 360 | { |
361 | - $header .= ', ' . $key . '="' . $value . '"'; |
|
361 | + $header .= ', '.$key.'="'.$value.'"'; |
|
362 | 362 | } |
363 | 363 | } |
364 | 364 | |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | $url .= '&'; |
393 | 393 | } |
394 | 394 | |
395 | - $url .= $key . '=' . $v; |
|
395 | + $url .= $key.'='.$v; |
|
396 | 396 | } |
397 | 397 | } |
398 | 398 | else |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | $url .= '&'; |
412 | 412 | } |
413 | 413 | |
414 | - $url .= $key . '=' . $value; |
|
414 | + $url .= $key.'='.$value; |
|
415 | 415 | } |
416 | 416 | } |
417 | 417 | |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | public static function generateNonce() |
533 | 533 | { |
534 | 534 | // The md5s look nicer than numbers. |
535 | - return md5(microtime() . random_bytes(16)); |
|
535 | + return md5(microtime().random_bytes(16)); |
|
536 | 536 | } |
537 | 537 | |
538 | 538 | /** |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | */ |
545 | 545 | private function prepareSigningKey() |
546 | 546 | { |
547 | - return $this->safeEncode($this->getOption('consumer_secret')) . '&' . $this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
547 | + return $this->safeEncode($this->getOption('consumer_secret')).'&'.$this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
548 | 548 | } |
549 | 549 | |
550 | 550 | /** |