XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

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

    _create: function() {
        var selectees,
            that = this;

        this.element.addClass("ui-selectable");
Severity: Minor
Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

        _mouseDrag: function(event) {
    
            var data, props,
                smp = this.originalMousePosition,
                a = this.axis,
    Severity: Minor
    Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

          _destroy: function() {
              // Destroy (sub)menus
              this.element
                  .removeAttr( "aria-activedescendant" )
                  .find( ".ui-menu" ).addBack()
      Severity: Minor
      Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

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

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

          var effectHighlight = $.effects.effect.highlight = function( o, done ) {
              var elem = $( this ),
                  props = [ "backgroundImage", "backgroundColor", "opacity" ],
                  mode = $.effects.setMode( elem, o.mode || "show" ),
                  animation = {
          Severity: Minor
          Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

            var effectPuff = $.effects.effect.puff = function( o, done ) {
                var elem = $( this ),
                    mode = $.effects.setMode( elem, o.mode || "hide" ),
                    hide = mode === "hide",
                    percent = parseInt( o.percent, 10 ) || 150,
            Severity: Minor
            Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                  _createOverlay: function() {
                      if ( !this.options.modal ) {
                          return;
                      }
              
              
              Severity: Minor
              Found in assets/js/jqueryui.min.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 assets/js/jquery.min.js - About 1 hr to fix

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

                      values: function( index, newValue ) {
                          var vals,
                              newValues,
                              i;
                  
                  
                  Severity: Minor
                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                    var effectTransfer = $.effects.effect.transfer = function( o, done ) {
                        var elem = $( this ),
                            target = $( o.to ),
                            targetFixed = target.css( "position" ) === "fixed",
                            body = $("body"),
                    Severity: Minor
                    Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                          historyInit: function (callback, src) {
                              xoops_smallworld.historyCallback = callback;
                              if (src) xoops_smallworld.historyIframeSrc = src;
                              var current_hash = location.hash.replace(/\?.*$/, '');
                      
                      
                      Severity: Minor
                      Found in assets/js/jquery.history.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 assets/js/jquery.min.js - About 1 hr to fix

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

                                  drag: function (draggable, event) {
                          
                                      //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                                      if (draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
                          
                          
                          Severity: Minor
                          Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                                    _optionDatepicker: function (target, name, value) {
                                        var inst = this._getInst(target);
                                        if (arguments.length == 2 && typeof name == 'string') {
                                            return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
                                                (inst ? (name == 'all' ? $.extend({}, inst.settings) :
                            Severity: Minor
                            Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                                      getBaseline: function (origin, original) { // Translates a [top,left] array into a baseline value
                                          // this should be a little more flexible in the future to handle a string & hash
                                          var y, x;
                                          switch (origin[0]) {
                                              case 'top':
                              Severity: Minor
                              Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                                        _keydown: function (event) {
                                            if (this.options.disabled || event.altKey || event.ctrlKey) {
                                                return;
                                            }
                                
                                
                                Severity: Minor
                                Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                                          resize: function (event, ui) {
                                              var self = $(this).data("resizable"), o = self.options, os = self.originalSize, op = self.originalPosition;
                                  
                                              var delta = {
                                                      height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
                                  Severity: Minor
                                  Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                    Method orient_image has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        protected function orient_image($file_path)
                                        {
                                            if (!function_exists('exif_read_data')) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in class/UploadHandler.php - About 1 hr to fix

                                      Method smallworld_remDir has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function smallworld_remDir($userid, $directory, $empty = false)
                                          {
                                              if ('' != $userid) {
                                                  if ('/' === mb_substr($directory, -1)) {
                                                      $directory = mb_substr($directory, 0, -1);
                                      Severity: Minor
                                      Found in class/DoSync.php - About 1 hr to fix

                                        Method Gravatar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function Gravatar($uid)
                                            {
                                                $depMsg = get_class() . __FUNCTION__ . " is deprecated use SwUserHandler::gravatar() instead.";
                                                if (isset($GLOBALS['xoopsLogger'])) {
                                                    $GLOBALS['xoopsLogger']->addDeprecated($depMsg);
                                        Severity: Minor
                                        Found in class/PublicWallUpdates.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language