XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

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

        load: function (index) {
            index = this._getIndex(index);
            var self = this,
                o = this.options,
                a = this.anchors.eq(index)[0],
Severity: Minor
Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

    Method checkVerModule has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function checkVerModule($helper, $source = 'github', $default = 'master')
        {
            $moduleDirName      = basename(dirname(dirname(__DIR__)));
            $moduleDirNameUpper = mb_strtoupper($moduleDirName);
            $update             = '';
    Severity: Minor
    Found in class/Common/VersionChecks.php - 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.closest("." + $.datepicker._triggerClass).length &&
                      $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
      Severity: Critical
      Found in assets/js/jqueryui.min.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                if (this.floating && horizontalDirection) {
                    return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
                } else {
                    return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
                }
        Severity: Critical
        Found in assets/js/jqueryui.min.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                  if(!(/^(document|window|parent)$/).test(o.containment)) {
                      ce = $(o.containment)[0];
                      co = $(o.containment).offset();
                      over = ($(ce).css("overflow") !== "hidden");
          
          
          Severity: Critical
          Found in assets/js/jqueryui.min.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                            ( support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                            ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                            !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {
            
            
            Severity: Critical
            Found in assets/js/jquery.min.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if (embedProvider.embedtag.tag !== '') {
                              var flashvars = embedProvider.embedtag.flashvars || '';
                              var tag = embedProvider.embedtag.tag || 'embed';
                              var width = embedProvider.embedtag.width || 'auto';
                              var height = embedProvider.embedtag.height || 'auto';
              Severity: Critical
              Found in assets/js/jquery.oembed.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if (!(/^(document|window|parent)$/).test(o.containment)) {
                                var ce = $(o.containment)[0];
                                var co = $(o.containment).offset();
                                var over = ($(ce).css("overflow") != 'hidden');
                
                
                Severity: Critical
                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.floating && horizontalDirection) {
                                  return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf));
                              } else {
                                  return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf));
                              }
                  Severity: Critical
                  Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                    Function _mouseStart has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _mouseStart: function(event) {
                    
                            var curleft, curtop, cursor,
                                o = this.options,
                                el = this.element;
                    Severity: Minor
                    Found in assets/js/jqueryui.min.js - About 1 hr to fix

                      Function _eventHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _eventHandler: function( event ) {
                              var options = this.options,
                                  active = this.active,
                                  clicked = $( event.currentTarget ),
                                  clickedIsActive = clicked[ 0 ] === active[ 0 ],
                      Severity: Minor
                      Found in assets/js/jqueryui.min.js - About 1 hr to fix

                        Function hook has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        color.hook = function( hook ) {
                            var hooks = hook.split( " " );
                            each( hooks, function( i, hook ) {
                                jQuery.cssHooks[ hook ] = {
                                    set: function( elem, value ) {
                        Severity: Minor
                        Found in assets/js/jqueryui.min.js - About 1 hr to fix

                          Method topratedusers has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function topratedusers($direction)
                              {
                                  $array = [];
                          
                                  if ('up' === $direction) {
                          Severity: Minor
                          Found in class/Admin.php - About 1 hr to fix

                            Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseDown: function(event) {
                                    // don't let more than one widget handle mouseStart
                                    if ( mouseHandled ) {
                                        return;
                                    }
                            Severity: Minor
                            Found in assets/js/jqueryui.min.js - About 1 hr to fix

                              Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _attachments: function(input, inst) {
                                      var showOn, buttonText, buttonImage,
                                          appendText = this._get(inst, "appendText"),
                                          isRTL = this._get(inst, "isRTL");
                              
                              
                              Severity: Minor
                              Found in assets/js/jqueryui.min.js - About 1 hr to fix

                                Function _createInput has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _createInput: function () {
                                            var self = this;
                                            var input = d.createElement("input");
                                            input.setAttribute('type', 'file');
                                            input.setAttribute('name', this._settings.name);
                                Severity: Minor
                                Found in assets/js/ajaxupload.3.5.js - About 1 hr to fix

                                  Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  jQuery.extend = jQuery.fn.extend = function() {
                                      var src, copyIsArray, copy, name, options, clone,
                                          target = arguments[0] || {},
                                          i = 1,
                                          length = arguments.length,
                                  Severity: Minor
                                  Found in assets/js/jquery.min.js - About 1 hr to fix

                                    Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                            var type, origFn;
                                    
                                            // Types can be a map of types/handlers
                                            if ( typeof types === "object" ) {
                                    Severity: Minor
                                    Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                          load: function( index, event ) {
                                              index = this._getIndex( index );
                                              var that = this,
                                                  tab = this.tabs.eq( index ),
                                                  anchor = tab.find( ".ui-tabs-anchor" ),
                                      Severity: Minor
                                      Found in assets/js/jqueryui.min.js - About 1 hr to fix

                                        Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            stop: function( type, clearQueue, gotoEnd ) {
                                                var stopQueue = function( hooks ) {
                                                    var stop = hooks.stop;
                                                    delete hooks.stop;
                                                    stop( gotoEnd );
                                        Severity: Minor
                                        Found in assets/js/jquery.min.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language