XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

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

        values: function (index, newValue) {
            var vals,
                newValues,
                i;

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

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

        $.effects.transfer = function (o) {
            return this.queue(function () {
                var elem = $(this),
                    target = $(o.options.to),
                    endPosition = target.offset(),
    Severity: Minor
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

              _mouseStart: function (event) {
      
                  var o = this.options, iniPos = this.element.position(), el = this.element;
      
                  this.resizing = true;
      Severity: Minor
      Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

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

                _create: function () {
                    var self = this;
        
                    this.element.addClass("ui-selectable");
        
        
        Severity: Minor
        Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

          Function fold has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              $.effects.fold = 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

            Function refresh has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    refresh: function () {
                        var isDisabled = this.element.is(":disabled");
                        if (isDisabled !== this.options.disabled) {
                            this._setOption("disabled", isDisabled);
                        }
            Severity: Minor
            Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

              Method smallworld_GetModuleOption has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function smallworld_GetModuleOption($option = null, $repmodule = 'smallworld', $flushFirst = false)
              {
                  static $modOptions = [];
                  if ($flushFirst) { // clears the 'cache', forces reload of configs
                      $modOptions = [];
              Severity: Minor
              Found in include/functions.php - About 1 hr to fix

                Method smallworld_getImageSize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function smallworld_getImageSize($w, $h, $url)
                {
                    $bn        = basename($url);
                    $w         = (int)$w;
                    $h         = (int)$h;
                Severity: Minor
                Found in include/functions.php - About 1 hr to fix

                  Method deleteAccount has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function deleteAccount($userid)
                      {
                          $userid = (int)$userid;
                          $user     = new \XoopsUser($userid);
                          $username = $user->uname();
                  Severity: Minor
                  Found in class/SwDatabase.php - About 1 hr to fix

                    Method usersettings has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function usersettings($userid)
                        {
                            $form = "<div style='display:none'><div class='smallworld_usersetings'>";
                            $form .= '<fieldset><legend>' . _SMALLWORLD_SHOWIFPUBLICORPRIVATE . '</legend>';
                            $form .= "<form id='perset'>";
                    Severity: Minor
                    Found in class/Form.php - About 1 hr to fix

                      Method Gravatar has 27 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/WallUpdates.php - About 1 hr to fix

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

                            $.fieldValue = function (el, successful) {
                                var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
                                if (typeof successful == 'undefined') successful = true;
                        
                                if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
                        Severity: Minor
                        Found in assets/js/jquery.form.js - About 1 hr to fix

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

                                  , show: function () {
                                      var that = this
                                          , e = $.Event('show')
                          
                                      this.$element.trigger(e)
                          Severity: Minor
                          Found in assets/js/uploader/bootstrap.js - About 1 hr to fix

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

                                        window.ArrayBuffer && window.Uint8Array && function (dataURI) {
                                            var byteString,
                                                arrayBuffer,
                                                intArray,
                                                i,
                            Severity: Minor
                            Found in assets/js/uploader/canvas-to-blob.js - About 1 hr to fix

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

                                  _destroy: function() {
                              
                                      this._mouseDestroy();
                              
                                      var wrapper,
                              Severity: Minor
                              Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                                    off: function( types, selector, fn ) {
                                        var handleObj, type;
                                        if ( types && types.preventDefault && types.handleObj ) {
                                            // ( event )  dispatched jQuery.Event
                                            handleObj = types.handleObj;
                                Severity: Minor
                                Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                              set: function( elem, value ) {
                                                  var parsed, curElem,
                                                      backgroundColor = "";
                                  
                                                  if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
                                  Severity: Minor
                                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                                            "*": [ function( prop, value ) {
                                                var tween = this.createTween( prop, value ),
                                                    target = tween.cur(),
                                                    parts = rfxnum.exec( value ),
                                                    unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                                    Severity: Minor
                                    Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                          offset: function( options ) {
                                              if ( arguments.length ) {
                                                  return options === undefined ?
                                                      this :
                                                      this.each(function( i ) {
                                      Severity: Minor
                                      Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                                refreshPositions: function (fast) {
                                        
                                                    //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
                                                    if (this.offsetParent && this.helper) {
                                                        this.offset.parent = this._getParentOffset();
                                        Severity: Minor
                                        Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language