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