XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

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

        _makeDraggable: function () {
            var self = this,
                options = self.options,
                doc = $(document),
                heightBeforeDrag;
Severity: Minor
Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

        $.effects.highlight = function (o) {
            return this.queue(function () {
                var elem = $(this),
                    props = ['backgroundImage', 'backgroundColor', 'opacity'],
                    mode = $.effects.setMode(elem, o.options.mode || 'show'),
    Severity: Minor
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

      Method getServerStats has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function getServerStats()
          {
              $moduleDirName      = basename(dirname(dirname(__DIR__)));
              $moduleDirNameUpper = mb_strtoupper($moduleDirName);
              xoops_loadLanguage('common', $moduleDirName);
      Severity: Minor
      Found in class/Common/ServerStats.php - About 1 hr to fix

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

            _drop: function( event, custom ) {
        
                var draggable = custom || $.ui.ddmanager.current,
                    childrenIntersection = false;
        
        
        Severity: Minor
        Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

              _create: function() {
                  this.originalCss = {
                      display: this.element[ 0 ].style.display,
                      width: this.element[ 0 ].style.width,
                      minHeight: this.element[ 0 ].style.minHeight,
          Severity: Minor
          Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                var loadImage = function (file, callback, options) {
                        var img = document.createElement('img'),
                            url,
                            oUrl;
                        img.onerror = callback;
            Severity: Minor
            Found in assets/js/uploader/load-image.js - About 1 hr to fix

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

                  _refresh: function() {
                      this._setupDisabled( this.options.disabled );
                      this._setupEvents( this.options.event );
                      this._setupHeightStyle( this.options.heightStyle );
              
              
              Severity: Minor
              Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                    _refreshValue: function() {
                        var value = this.options.value,
                            percentage = this._percentage();
                
                        this.valueDiv
                Severity: Minor
                Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                      transition: function( other, distance ) {
                          var end = color( other ),
                              spaceName = end._space(),
                              space = spaces[ spaceName ],
                              startColor = this.alpha() === 0 ? color( "transparent" ) : this,
                  Severity: Minor
                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                        _initialActive: function() {
                            var active = this.options.active,
                                collapsible = this.options.collapsible,
                                locationHash = location.hash.substring( 1 );
                    
                    
                    Severity: Minor
                    Found in assets/js/jqueryui.min.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 assets/js/jquery.min.js - About 1 hr to fix

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

                                complete: function() {
                                    if ( el.to.opacity === 0 ) {
                                        el.css( "opacity", el.from.opacity );
                                    }
                                    if ( mode === "hide" ) {
                        Severity: Minor
                        Found in assets/js/jqueryui.min.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 assets/js/jquery.min.js - About 1 hr to fix

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

                                    resize: function () {
                                        var options = this.options,
                                            maxHeight;
                            
                                        if (options.fillSpace) {
                            Severity: Minor
                            Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                                      resize: function (event, ui) {
                                          var self = $(this).data("resizable"), o = self.options,
                                              ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
                                              pRatio = self._aspectRatio || event.shiftKey, cop = {top: 0, left: 0}, ce = self.containerElement;
                              
                              
                              Severity: Minor
                              Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                Method smallworld_nextBirthdays has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function smallworld_nextBirthdays()
                                {
                                    $swUserHandler = Helper::getInstance()->getHandler('SwUser');
                                    $now       = date('d-m');
                                    $res       = [];
                                Severity: Minor
                                Found in include/functions.php - About 1 hr to fix

                                  Method mostactiveusers_today has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function mostactiveusers_today()
                                      {
                                          $sql = 'SELECT uid_fk, COUNT( * ) as cnt ';
                                          $sql .= 'FROM ( ';
                                          $sql .= 'SELECT uid_fk ';
                                  Severity: Minor
                                  Found in class/Admin.php - About 1 hr to fix

                                    Method smallworld_mostactiveusers_allround has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function smallworld_mostactiveusers_allround()
                                    {
                                        $msg     = [];
                                        $sql     = 'SELECT uid_fk, COUNT( * ) as cnt ';
                                        $sql     .= 'FROM ( ';
                                    Severity: Minor
                                    Found in include/functions.php - About 1 hr to fix

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

                                      function smallworld_getCountFriendMessagesEtcJS() {
                                          xoops_smallworld.ajax({
                                              url: smallworld_url + "Get_Count.php?SmallworldGetUserMsgCount=1" + "&rndnum=" + Math.floor(Math.random() * 101),
                                              cache: false,
                                              dataType: "json",
                                      Severity: Minor
                                      Found in assets/js/smallworld.js - About 1 hr to fix

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

                                            _createWidget: function( options, element ) {
                                                element = $( element || this.defaultElement || this )[ 0 ];
                                                this.element = $( element );
                                                this.uuid = widget_uuid++;
                                                this.eventNamespace = "." + this.widgetName + this.uuid;
                                        Severity: Minor
                                        Found in assets/js/jqueryui.min.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language