gocodebox/lifterlms

View on GitHub

Showing 1,386 of 1,391 total issues

Avoid too many return statements within this method.
Open

            return false;

    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 $err;
      Severity: Major
      Found in includes/functions/llms.functions.order.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return $err;
        Severity: Major
        Found in includes/functions/llms.functions.order.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $gateway_error;
          Severity: Major
          Found in includes/functions/llms.functions.order.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                return $plan;
            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 $prereq;
              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 'Unknown';
                Severity: Major
                Found in includes/functions/llms.functions.log.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $err;
                  Severity: Major
                  Found in includes/functions/llms.functions.order.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $err;
                    Severity: Major
                    Found in includes/functions/llms.functions.order.php - About 30 mins to fix

                      Similar blocks of code found in 3 locations. Consider refactoring.
                      Open

                                      $table.on( 'click', 'a.llms-sortable', function( e ) {
                                          e.preventDefault();
                                          self.change_order( $table, $( this ) );
                                      } );
                      Severity: Minor
                      Found in assets/js/llms-admin-tables.js and 2 other locations - About 30 mins to fix
                      assets/js/llms-admin-tables.js on lines 45..48
                      assets/js/llms-admin-tables.js on lines 50..53

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Avoid too many return statements within this method.
                      Open

                              return $person_id;
                      Severity: Major
                      Found in includes/functions/llms.functions.order.php - About 30 mins to fix

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                                        $table.on( 'click', 'button[name="llms-table-paging"]', function( e ) {
                                            e.preventDefault();
                                            self.change_page( $table, $( this ) );
                                        } );
                        Severity: Minor
                        Found in assets/js/llms-admin-tables.js and 2 other locations - About 30 mins to fix
                        assets/js/llms-admin-tables.js on lines 50..53
                        assets/js/llms-admin-tables.js on lines 55..58

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 45.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                                    $ed.on( 'input', function( event ) {
                                        self.model.set( prop, $ed.val() );
                                    } );
                        Severity: Minor
                        Found in assets/js/builder/Views/_Editable.js and 1 other location - About 30 mins to fix
                        assets/js/builder/Views/SettingsFields.js on lines 225..227

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 45.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Avoid too many return statements within this method.
                        Open

                                return $err;
                        Severity: Major
                        Found in includes/functions/llms.functions.order.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return apply_filters( 'llms_after_setup_pending_order', compact( 'person', 'plan', 'gateway', 'coupon' ), $data );
                          Severity: Major
                          Found in includes/functions/llms.functions.order.php - About 30 mins to fix

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                            $ed.on( 'input', function( event ) {
                                                self.model.set( prop, $ed.val() );
                                            } );
                            Severity: Minor
                            Found in assets/js/builder/Views/SettingsFields.js and 1 other location - About 30 mins to fix
                            assets/js/builder/Views/_Editable.js on lines 643..645

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 45.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 3 locations. Consider refactoring.
                            Open

                                            $table.on( 'click', 'button[name="llms-table-export"]', function( e ) {
                                                e.preventDefault();
                                                self.export( $table, $( this ) );
                                            } );
                            Severity: Minor
                            Found in assets/js/llms-admin-tables.js and 2 other locations - About 30 mins to fix
                            assets/js/llms-admin-tables.js on lines 45..48
                            assets/js/llms-admin-tables.js on lines 55..58

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 45.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                            x       = this.radius + this.settings.stroke_width / 2 + Math.cos( radians ) * this.radius,
                            Severity: Minor
                            Found in assets/js/app/llms-donut.js and 1 other location - About 30 mins to fix
                            assets/js/app/llms-donut.js on lines 49..49

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 45.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                            y       = this.radius + this.settings.stroke_width / 2 + Math.sin( radians ) * this.radius,
                            Severity: Minor
                            Found in assets/js/app/llms-donut.js and 1 other location - About 30 mins to fix
                            assets/js/app/llms-donut.js on lines 48..48

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 45.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Severity
                            Category
                            Status
                            Source
                            Language