WP-API/WP-API

View on GitHub

Showing 222 of 244 total issues

Avoid too many return statements within this method.
Open

                return $user_id;
Severity: Major
Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return $response;
    Severity: Major
    Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $fields_update;
      Severity: Major
      Found in lib/endpoints/class-wp-rest-terms-controller.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return true;
        Severity: Major
        Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $meta_update;
          Severity: Major
          Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $check_permission;
            Severity: Major
            Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return $user_id;
              Severity: Major
              Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return rest_ensure_response( $response );
                Severity: Major
                Found in lib/endpoints/class-wp-rest-terms-controller.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $response;
                  Severity: Major
                  Found in lib/endpoints/class-wp-rest-attachments-controller.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return new WP_Error( 'rest_upload_hash_mismatch', __( 'Content hash did not match expected.' ), array( 'status' => 412 ) );
                    Severity: Major
                    Found in lib/endpoints/class-wp-rest-attachments-controller.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return new WP_Error( 'rest_upload_file_error', __( 'Could not open file handle.' ), array( 'status' => 500 ) );
                      Severity: Major
                      Found in lib/endpoints/class-wp-rest-attachments-controller.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $meta_update;
                        Severity: Major
                        Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return $fields_update;
                          Severity: Major
                          Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $prepared_args;
                            Severity: Major
                            Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return new WP_Error( 'rest_comment_author_required', __( 'Creating a comment requires a valid author name.' ), array( 'status' => 400 ) );
                              Severity: Major
                              Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return new WP_Error( 'rest_comment_author_email_required', __( 'Creating a comment requires a valid author email.' ), array( 'status' => 400 ) );
                                Severity: Major
                                Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $response;
                                  Severity: Major
                                  Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $prepared_comment['comment_approved'];
                                      Severity: Major
                                      Found in lib/endpoints/class-wp-rest-comments-controller.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $meta_update;
                                        Severity: Major
                                        Found in lib/endpoints/class-wp-rest-users-controller.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language