gocodebox/lifterlms

View on GitHub

Showing 1,386 of 1,391 total issues

Avoid too many return statements within this method.
Open

        return array(
            'attempt_key' => $attempt->get_key(),
            'html'        => $html,
            'time_limit'  => $limit,
            'question_id' => $question_id,
Severity: Major
Found in includes/class.llms.ajax.handler.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return compact( 'old_gateway', 'new_gateway', 'order' );
    Severity: Major
    Found in includes/controllers/class-llms-controller-checkout.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return __( 'Sorry, you need to provide a valid achievement template ID.', 'lifterlms' );
      Severity: Major
      Found in includes/controllers/class.llms.controller.achievements.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return false;
        Severity: Major
        Found in includes/emails/class.llms.email.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return true;
          Severity: Major
          Found in includes/class.llms.review.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return true;
            Severity: Major
            Found in includes/forms/controllers/class.llms.controller.account.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return $all_roles;
              Severity: Major
              Found in includes/class.llms.user.permissions.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return true;
                Severity: Major
                Found in includes/forms/class-llms-form-handler.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return false;
                  Severity: Major
                  Found in includes/class.llms.user.permissions.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return $cert ? $cert->set( 'sequential_id', $value ) : null;
                    Severity: Major
                    Found in includes/class-llms-rest-fields.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return apply_filters( 'llms_page_restricted', $results, $post_id );
                      Severity: Major
                      Found in includes/functions/llms.functions.access.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return new WP_Error( 'invalid-checkout-redirect-type', sprintf( __( 'Invalid checkout redirect type: "%s"', 'lifterlms' ), $checkout_redirect_type ) );
                        Severity: Major
                        Found in includes/functions/llms-functions-access-plans.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return new WP_Error( 'plan-creation', __( 'An error was encountered while creating the access plan', 'lifterlms' ) );
                          Severity: Major
                          Found in includes/functions/llms-functions-access-plans.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return apply_filters( 'llms_page_restricted', $results, $post_id );
                            Severity: Major
                            Found in includes/functions/llms.functions.access.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return new WP_Error( 'invalid-checkout-redirect-page', sprintf( __( 'Invalid checkout redirect page ID: "%d"', 'lifterlms' ), $props['checkout_redirect_page'] ) );
                              Severity: Major
                              Found in includes/functions/llms-functions-access-plans.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return sprintf(
                                            '<div %1$s>%2$s</div>',
                                            get_block_wrapper_attributes(),
                                            trim( $html )
                                        );
                                Severity: Major
                                Found in includes/shortcodes/class.llms.shortcodes.blocks.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return true;

                                    Avoid too many return statements within this method.
                                    Open

                                                    return apply_filters( 'llms_page_restricted', $results, $post_id );
                                    Severity: Major
                                    Found in includes/functions/llms.functions.access.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return false;
                                      Severity: Major
                                      Found in includes/functions/llms.functions.access.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return new WP_Error( 'invalid-checkout-redirect-url', sprintf( __( 'Invalid checkout redirect URL: "%s"', 'lifterlms' ), $props['checkout_redirect_url'] ) );
                                        Severity: Major
                                        Found in includes/functions/llms-functions-access-plans.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language