Completed
Push — 2.0-dev ( 454118...36da2b )
by Michael
11:25
created
src/Client.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	 *
Please login to merge, or discard this patch.
Tests/ClientTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -144,8 +144,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.