Completed
Push — add/connection-authentication-... ( d6cf66...5d97e0 )
by
unknown
06:15
created
packages/connection/src/class-manager.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 	/**
274 274
 	 * Verifies the signature of the current request.
275 275
 	 *
276
-	 * @return false|array
276
+	 * @return boolean
277 277
 	 */
278 278
 	public function verify_xml_rpc_signature() {
279 279
 		if ( is_null( $this->xmlrpc_verification ) ) {
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 	 * @param Integer $user_id (optional) the user identifier, defaults to current user.
638 638
 	 * @param String  $redirect_url the URL to redirect the user to for processing, defaults to
639 639
 	 *                              admin_url().
640
-	 * @return WP_Error only in case of a failed user lookup.
640
+	 * @return \WP_Error|null only in case of a failed user lookup.
641 641
 	 */
642 642
 	public function connect_user( $user_id = null, $redirect_url = null ) {
643 643
 		$user = null;
@@ -1167,6 +1167,7 @@  discard block
 block discarded – undo
1167 1167
 	 * @param String  $action  The action name.
1168 1168
 	 * @param Integer $user_id The user identifier.
1169 1169
 	 * @param Integer $exp     Expiration time in seconds.
1170
+	 * @return string
1170 1171
 	 */
1171 1172
 	public function generate_secrets( $action, $user_id = false, $exp = 600 ) {
1172 1173
 		if ( false === $user_id ) {
@@ -1660,7 +1661,7 @@  discard block
 block discarded – undo
1660 1661
 	 *
1661 1662
 	 * @param int|false    $user_id   false: Return the Blog Token. int: Return that user's User Token.
1662 1663
 	 * @param string|false $token_key If provided, check that the token matches the provided input.
1663
-	 * @param bool|true    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
1664
+	 * @param boolean    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
1664 1665
 	 *
1665 1666
 	 * @return object|false
1666 1667
 	 */
Please login to merge, or discard this patch.