Showing 244 of 244 total issues
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( $error_code, $error_message, array( 'status' => 409 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_failed_create', __( 'Creating comment failed.' ), array( 'status' => 500 ) );
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_draft_post', __( 'Sorry, you cannot create a comment on this post.' ), array( 'status' => 403 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_trash_post', __( 'Sorry, you cannot create a comment on this post.' ), array( 'status' => 403 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_cannot_read_post', __( 'Sorry, you cannot read the post for this comment.' ), array( 'status' => rest_authorization_required_code() ) );
Avoid too many return
statements within this method. Open
Open
return $user_id;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return $check_permission;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return current_user_can( 'edit_comment', $comment->comment_ID );
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return $meta_update;
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return $user_id;
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return rest_ensure_response( $response );