@@ -198,12 +198,12 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | private function _authorise() |
| 200 | 200 | { |
| 201 | - $url = $this->getOption('authoriseURL') . '?oauth_token=' . $this->token['key']; |
|
| 201 | + $url = $this->getOption('authoriseURL').'?oauth_token='.$this->token['key']; |
|
| 202 | 202 | |
| 203 | 203 | if ($this->getOption('scope')) |
| 204 | 204 | { |
| 205 | 205 | $scope = is_array($this->getOption('scope')) ? implode(' ', $this->getOption('scope')) : $this->getOption('scope'); |
| 206 | - $url .= '&scope=' . urlencode($scope); |
|
| 206 | + $url .= '&scope='.urlencode($scope); |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | if ($this->getOption('sendheaders')) |
@@ -344,11 +344,11 @@ discard block |
||
| 344 | 344 | { |
| 345 | 345 | if (!strcmp($header, 'OAuth ')) |
| 346 | 346 | { |
| 347 | - $header .= $key . '="' . $this->safeEncode($value) . '"'; |
|
| 347 | + $header .= $key.'="'.$this->safeEncode($value).'"'; |
|
| 348 | 348 | } |
| 349 | 349 | else |
| 350 | 350 | { |
| 351 | - $header .= ', ' . $key . '="' . $value . '"'; |
|
| 351 | + $header .= ', '.$key.'="'.$value.'"'; |
|
| 352 | 352 | } |
| 353 | 353 | } |
| 354 | 354 | |
@@ -375,11 +375,11 @@ discard block |
||
| 375 | 375 | { |
| 376 | 376 | if (strpos($url, '?') === false) |
| 377 | 377 | { |
| 378 | - $url .= '?' . $key . '=' . $v; |
|
| 378 | + $url .= '?'.$key.'='.$v; |
|
| 379 | 379 | } |
| 380 | 380 | else |
| 381 | 381 | { |
| 382 | - $url .= '&' . $key . '=' . $v; |
|
| 382 | + $url .= '&'.$key.'='.$v; |
|
| 383 | 383 | } |
| 384 | 384 | } |
| 385 | 385 | } |
@@ -392,11 +392,11 @@ discard block |
||
| 392 | 392 | |
| 393 | 393 | if (strpos($url, '?') === false) |
| 394 | 394 | { |
| 395 | - $url .= '?' . $key . '=' . $value; |
|
| 395 | + $url .= '?'.$key.'='.$value; |
|
| 396 | 396 | } |
| 397 | 397 | else |
| 398 | 398 | { |
| 399 | - $url .= '&' . $key . '=' . $value; |
|
| 399 | + $url .= '&'.$key.'='.$value; |
|
| 400 | 400 | } |
| 401 | 401 | } |
| 402 | 402 | } |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $rand = mt_rand(); |
| 523 | 523 | |
| 524 | 524 | // The md5s look nicer than numbers. |
| 525 | - return md5($mt . $rand); |
|
| 525 | + return md5($mt.$rand); |
|
| 526 | 526 | } |
| 527 | 527 | |
| 528 | 528 | /** |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | */ |
| 535 | 535 | private function _prepareSigningKey() |
| 536 | 536 | { |
| 537 | - return $this->safeEncode($this->getOption('consumer_secret')) . '&' . $this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
| 537 | + return $this->safeEncode($this->getOption('consumer_secret')).'&'.$this->safeEncode(($this->token) ? $this->token['secret'] : ''); |
|
| 538 | 538 | } |
| 539 | 539 | |
| 540 | 540 | /** |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | use Joomla\Test\WebInspector; |
| 13 | 13 | use Joomla\Test\TestHelper; |
| 14 | 14 | |
| 15 | -require_once __DIR__ . '/stubs/ClientInspector.php'; |
|
| 15 | +require_once __DIR__.'/stubs/ClientInspector.php'; |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | /** |