XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    cleanData: function( elems, /* internal */ acceptData ) {
        var elem, type, id, data,
            i = 0,
            internalKey = jQuery.expando,
            cache = jQuery.cache,
Severity: Minor
Found in assets/js/jquery.min.js - About 1 hr to fix

    Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        setOffset: function( elem, options, i ) {
            var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                position = jQuery.css( elem, "position" ),
                curElem = jQuery( elem ),
                props = {};
    Severity: Minor
    Found in assets/js/jquery.min.js - About 1 hr to fix

      Function style has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          style: function( elem, name, value, extra ) {
              // Don't set styles on text and comment nodes
              if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                  return;
              }
      Severity: Minor
      Found in assets/js/jquery.min.js - About 1 hr to fix

        Function _handleFileTreeEntry has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _handleFileTreeEntry: function (entry, path) {
                    var that = this,
                        dfd = $.Deferred(),
                        errorHandler = function (e) {
                            if (e && !e.entry) {
        Severity: Minor
        Found in assets/js/jquery.fileupload.js - About 1 hr to fix

          Function _adjustSettings has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _adjustSettings: function (target, inst) {
                      var now;
                      var serverOffset = 0;
                      var serverEntry = null;
                      for (var i = 0; i < this._serverSyncs.length; i++) {
          Severity: Minor
          Found in assets/js/jquery.countdown.js - About 1 hr to fix

            Function rotate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    rotate: function (ms, continuing) {
                        var self = this,
                            o = this.options;
            
                        var rotate = self._rotate || (self._rotate = function (e) {
            Severity: Minor
            Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

              Function _initSource has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _initSource: function () {
                          var self = this,
                              array,
                              url;
                          if ($.isArray(this.options.source)) {
              Severity: Minor
              Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                Function _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _slide: function (event, index, newVal) {
                            var otherVal,
                                newValues,
                                allowed;
                
                
                Severity: Minor
                Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                  Function open has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          open: function () {
                              if (this._isOpen) {
                                  return;
                              }
                  
                  
                  Severity: Minor
                  Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                    Function scale has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $.effects.scale = function (o) {
                    
                            return this.queue(function () {
                    
                                // Create element
                    Severity: Minor
                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                      Method smallworld_getAvatarLink has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function smallworld_getAvatarLink($userid, $image)
                      {
                          $depMsg = __FUNCTION__ . " is deprecated use SwUserHandler::getAvatarLink() instead.";
                          if (isset($GLOBALS['xoopsLogger'])) {
                              $GLOBALS['xoopsLogger']->addDeprecated($depMsg);
                      Severity: Minor
                      Found in include/functions.php - About 1 hr to fix

                        Method getFileStatus has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function getFileStatus($file_path, $original_file_path, $redirectFile)
                            {
                                global $pathIcon16;
                        
                                if (empty($file_path)) {
                        Severity: Minor
                        Found in class/Common/FileChecker.php - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                      if ( start && start[ 3 ] !== unit ) {
                                          // Trust units reported by jQuery.css
                                          unit = unit || start[ 3 ];
                          
                                          // Make sure we update the tween properties later on
                          Severity: Critical
                          Found in assets/js/jquery.min.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                    } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                                        diff = cache[1];
                            
                                                    // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                                    } else {
                            Severity: Critical
                            Found in assets/js/jquery.min.js - About 1 hr to fix

                              Function refreshPositions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  refreshPositions: function(fast) {
                              
                                      // Determine whether items are being displayed horizontally
                                      this.floating = this.items.length ?
                                          this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
                              Severity: Minor
                              Found in assets/js/jqueryui.min.js - About 1 hr to fix

                                Function _keydown has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _keydown: function( event ) {
                                        if ( event.altKey || event.ctrlKey ) {
                                            return;
                                        }
                                
                                
                                Severity: Minor
                                Found in assets/js/jqueryui.min.js - About 1 hr to fix

                                  Function doSubmit has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              function doSubmit() {
                                                  // make sure form attrs are set
                                                  var t = $form.attr('target'), a = $form.attr('action');
                                  
                                                  // update form attrs in IE friendly way
                                  Severity: Minor
                                  Found in assets/js/jquery.form.js - About 1 hr to fix

                                    Function _rerouteClicks has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _rerouteClicks: function () {
                                                var self = this;
                                    
                                                // IE displays 'access denied' error when using this method
                                                // other browsers just ignore click()
                                    Severity: Minor
                                    Found in assets/js/ajaxupload.3.5.js - About 1 hr to fix

                                      Function _generatePosition has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _generatePosition: function (event) {
                                      
                                                  var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                                                  var pageX = event.pageX;
                                                  var pageY = event.pageY;
                                      Severity: Minor
                                      Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                        Function _dialogDatepicker has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                _dialogDatepicker: function (input, date, onSelect, settings, pos) {
                                                    var inst = this._dialogInst; // internal instance
                                                    if (!inst) {
                                                        this.uuid += 1;
                                                        var id = 'dp' + this.uuid;
                                        Severity: Minor
                                        Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language