XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function start has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        start: function (event, ui) {
            var self = $(this).data("resizable"), o = self.options, el = self.element;
            var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;
            if (!ce) return;

Severity: Minor
Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

    Function widget has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.widget = function (name, base, prototype) {
            var namespace = name.split(".")[0],
                fullName;
            name = name.split(".")[1];
            fullName = namespace + "-" + name;
    Severity: Minor
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

      Function _normalizeArguments has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _normalizeArguments(effect, options, speed, callback) {
              // shift params for method overloading
              if (typeof effect == 'object') {
                  callback = options;
                  speed = null;
      Severity: Minor
      Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

        Function _createPlaceholder has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _createPlaceholder: function (that) {
        
                    var self = that || this, o = self.options;
        
                    if (!o.placeholder || o.placeholder.constructor == String) {
        Severity: Minor
        Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                  if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                      $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                          if (that._trigger("stop", event) !== false) {
                              that._clear();
                          }
          Severity: Major
          Found in assets/js/jqueryui.min.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                        if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                            (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                        }
            Severity: Major
            Found in assets/js/jqueryui.min.js - About 1 hr to fix

              Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                          secondary, monthNames, monthNamesShort) {
              Severity: Major
              Found in assets/js/jqueryui.min.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                        if ($.datepicker._datepickerShowing) {
                            switch (event.keyCode) {
                                case 9: $.datepicker._hideDatepicker();
                                        handled = false;
                                        break; // hide on tab out
                Severity: Major
                Found in assets/js/jqueryui.min.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if ( this.options.tolerance === "pointer" ||
                              this.options.forcePointerForContainers ||
                              (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
                          ) {
                              return isOverElement;
                  Severity: Major
                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                    support.getById && context.nodeType === 9 && documentIsHTML &&
                                    Expr.relative[ tokens[1].type ] ) {
                    
                                context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                    Severity: Major
                    Found in assets/js/jquery.min.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (show[Y] || show[O]) {
                                      // Treat end of months as the same
                                      var lastNow = plugin._getDaysInMonth(now.getFullYear(), now.getMonth());
                                      var lastUntil = plugin._getDaysInMonth(until.getFullYear(), until.getMonth());
                                      var sameDay = (until.getDate() == now.getDate() ||
                      Severity: Major
                      Found in assets/js/jquery.countdown.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                if (!requestAnimationFrame || $.noRequestAnimationFrame) {
                                    $.noRequestAnimationFrame = null;
                                    setInterval(function () {
                                        plugin._updateTargets();
                                    }, 980); // Fall back to good old setInterval
                        Severity: Major
                        Found in assets/js/jquery.countdown.js - About 1 hr to fix

                          Function UTCDate has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  UTCDate: function (tz, year, month, day, hours, mins, secs, ms) {
                          Severity: Major
                          Found in assets/js/jquery.countdown.js - About 1 hr to fix

                            Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    _generateMonthYearHeader: function (inst, drawMonth, drawYear, minDate, maxDate,
                                                                        secondary, monthNames, monthNamesShort) {
                            Severity: Major
                            Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if ($.datepicker._datepickerShowing)
                                              switch (event.keyCode) {
                                                  case 9:
                                                      $.datepicker._hideDatepicker();
                                                      handled = false;
                              Severity: Major
                              Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if ($target[0].id != $.datepicker._mainDivId &&
                                                $target.parents('#' + $.datepicker._mainDivId).length == 0 &&
                                                !$target.hasClass($.datepicker.markerClassName) &&
                                                !$target.hasClass($.datepicker._triggerClass) &&
                                                $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
                                Severity: Major
                                Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                              if ((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                                  var self = this;
                                                  $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function () {
                                                      if (self._trigger("stop", event) !== false) {
                                                          self._clear();
                                  Severity: Major
                                  Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
                                                        (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), {snapItem: inst.snapElements[i].item})));
                                    Severity: Major
                                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if (this.options.tolerance == "pointer"
                                                      || this.options.forcePointerForContainers
                                                      || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])
                                                  ) {
                                                      return isOverElement;
                                      Severity: Major
                                      Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                        Method dropdown_add has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            public function dropdown_add($class, $name, $name2, $rel, array $options, $textmore, $selected = null, $preset = null)
                                        Severity: Major
                                        Found in class/Form.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language