klein0r/affiliate-dashboard

View on GitHub

Showing 288 of 320 total issues

Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.fn.load = function( url, params, callback ) {
    if ( typeof url !== "string" && _load ) {
        return _load.apply( this, arguments );
    }

Severity: Minor
Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

    Function __construct has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
    Open

        public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false)
        {
            $cfgValue = ini_get($cfgName);
    
            if (is_callable($evaluation)) {
    Severity: Minor
    Found in var/SymfonyRequirements.php - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Collapse.prototype.show = function () {
        if (this.transitioning || this.$element.hasClass('in')) return
    
        var startEvent = $.Event('show.bs.collapse')
        this.$element.trigger(startEvent)
    Severity: Minor
    Found in web/js/bootstrap.js - About 1 hr to fix

      Function show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Collapse.prototype.show = function () {
          if (this.transitioning || this.$element.hasClass('in')) return
      
          var startEvent = $.Event('show.bs.collapse')
          this.$element.trigger(startEvent)
      Severity: Minor
      Found in web/js/bootstrap_collapse_5.js - About 1 hr to fix

        Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.ready.promise = function( obj ) {
            if ( !readyList ) {
        
                readyList = jQuery.Deferred();
        
        
        Severity: Minor
        Found in web/js/jquery.js - About 1 hr to fix

          Function backdrop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            Modal.prototype.backdrop = function (callback) {
              var that    = this
              var animate = this.$element.hasClass('fade') ? 'fade' : ''
          
              if (this.isShown && this.options.backdrop) {
          Severity: Minor
          Found in web/js/bootstrap_modal_7.js - About 1 hr to fix

            Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                attr: function( elem, name, value ) {
                    var hooks, ret,
                        nType = elem.nodeType;
            
                    // don't get/set attributes on text, comment and attribute nodes
            Severity: Minor
            Found in web/js/jquery.js - About 1 hr to fix

              Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  handlers: function( event, handlers ) {
                      var sel, handleObj, matches, i,
                          handlerQueue = [],
                          delegateCount = handlers.delegateCount,
                          cur = event.target;
              Severity: Minor
              Found in web/js/jquery.js - About 1 hr to fix

                Function backdrop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  Modal.prototype.backdrop = function (callback) {
                    var that    = this
                    var animate = this.$element.hasClass('fade') ? 'fade' : ''
                
                    if (this.isShown && this.options.backdrop) {
                Severity: Minor
                Found in web/js/bootstrap.js - About 1 hr to fix

                  Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      attr: function( elem, name, value ) {
                          var hooks, ret,
                              nType = elem.nodeType;
                  
                          // don't get/set attributes on text, comment and attribute nodes
                  Severity: Minor
                  Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                    Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.ready.promise = function( obj ) {
                        if ( !readyList ) {
                    
                            readyList = jQuery.Deferred();
                    
                    
                    Severity: Minor
                    Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                      Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          handlers: function( event, handlers ) {
                              var sel, handleObj, matches, i,
                                  handlerQueue = [],
                                  delegateCount = handlers.delegateCount,
                                  cur = event.target;
                      Severity: Minor
                      Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                        Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          Modal.prototype.show = function (_relatedTarget) {
                            var that = this
                            var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                        
                            this.$element.trigger(e)
                        Severity: Minor
                        Found in web/js/bootstrap.js - About 1 hr to fix

                          Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              toggleClass: function( value, stateVal ) {
                                  var type = typeof value;
                          
                                  if ( typeof stateVal === "boolean" && type === "string" ) {
                                      return stateVal ? this.addClass( value ) : this.removeClass( value );
                          Severity: Minor
                          Found in web/js/jquery.js - About 1 hr to fix

                            Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                html: function( value ) {
                                    return access( this, function( value ) {
                                        var elem = this[ 0 ] || {},
                                            i = 0,
                                            l = this.length;
                            Severity: Minor
                            Found in web/js/jquery.js - About 1 hr to fix

                              Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                Modal.prototype.show = function (_relatedTarget) {
                                  var that = this
                                  var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                              
                                  this.$element.trigger(e)
                              Severity: Minor
                              Found in web/js/bootstrap_modal_7.js - About 1 hr to fix

                                Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    toggleClass: function( value, stateVal ) {
                                        var type = typeof value;
                                
                                        if ( typeof stateVal === "boolean" && type === "string" ) {
                                            return stateVal ? this.addClass( value ) : this.removeClass( value );
                                Severity: Minor
                                Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                                  Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      html: function( value ) {
                                          return access( this, function( value ) {
                                              var elem = this[ 0 ] || {},
                                                  i = 0,
                                                  l = this.length;
                                  Severity: Minor
                                  Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                                    Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        fix: function( event ) {
                                            if ( event[ jQuery.expando ] ) {
                                                return event;
                                            }
                                    
                                    
                                    Severity: Minor
                                    Found in web/js/jquery.js - About 1 hr to fix

                                      Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          finish: function( type ) {
                                              if ( type !== false ) {
                                                  type = type || "fx";
                                              }
                                              return this.each(function() {
                                      Severity: Minor
                                      Found in web/js/jquery.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language