@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | * Method to validate a response. |
| 337 | 337 | * |
| 338 | 338 | * @param string $url The request URL. |
| 339 | - * @param Response $response The response to validate. |
|
| 339 | + * @param \Joomla\Http\Response $response The response to validate. |
|
| 340 | 340 | * |
| 341 | 341 | * @return void |
| 342 | 342 | * |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | * Set an option for the OAuth1 Client instance. |
| 585 | 585 | * |
| 586 | 586 | * @param string $key The name of the option to set |
| 587 | - * @param mixed $value The option value to set |
|
| 587 | + * @param string $value The option value to set |
|
| 588 | 588 | * |
| 589 | 589 | * @return $this |
| 590 | 590 | * |
@@ -144,8 +144,7 @@ discard block |
||
| 144 | 144 | $this->object->setToken($token); |
| 145 | 145 | $result = $this->object->authenticate(); |
| 146 | 146 | $this->assertEquals($result, $token); |
| 147 | - } |
|
| 148 | - else |
|
| 147 | + } else |
|
| 149 | 148 | { |
| 150 | 149 | $this->object->setOption('requestTokenURL', 'https://example.com/request_token'); |
| 151 | 150 | $this->object->setOption('authoriseURL', 'https://example.com/authorize'); |
@@ -183,8 +182,7 @@ discard block |
||
| 183 | 182 | if ($version === '1.0a') |
| 184 | 183 | { |
| 185 | 184 | $data = ['oauth_verifier' => 'verifier', 'oauth_token' => 'token']; |
| 186 | - } |
|
| 187 | - else |
|
| 185 | + } else |
|
| 188 | 186 | { |
| 189 | 187 | $data = ['oauth_token' => 'token']; |
| 190 | 188 | } |
@@ -306,8 +304,7 @@ discard block |
||
| 306 | 304 | ['Content-Type' => 'multipart/form-data'] |
| 307 | 305 | ) |
| 308 | 306 | ); |
| 309 | - } |
|
| 310 | - else |
|
| 307 | + } else |
|
| 311 | 308 | { |
| 312 | 309 | $this->client->expects($this->at(0)) |
| 313 | 310 | ->method($method) |