XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function blind has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectBlind = $.effects.effect.blind = function( o, done ) {
    // Create element
    var el = $( this ),
        rvertical = /up|down|vertical/,
        rpositivemotion = /up|left|vertical|horizontal/,
Severity: Major
Found in assets/js/jqueryui.min.js - About 2 hrs to fix

    Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        remove: function( elem, types, handler, selector, mappedTypes ) {
            var j, handleObj, tmp,
                origCount, t, events,
                special, handlers, type,
                namespaces, origType,
    Severity: Major
    Found in assets/js/jquery.min.js - About 2 hrs to fix

      Function _determineTime has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              _determineTime: function (setting, defaultTime) {
                  var offsetNumeric = function (offset) { // e.g. +300, -2
                      var time = new Date();
                      time.setTime(time.getTime() + offset * 1000);
                      return time;
      Severity: Major
      Found in assets/js/jquery.countdown.js - About 2 hrs to fix

        Method validate has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function validate($uploaded_file, $file, $error, $index)
            {
                if ($error) {
                    $file->error = $this->get_error_message($error);
        
        
        Severity: Major
        Found in class/UploadHandler.php - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

              if ( browser.android || browser.bb || browser.blackberry || browser.ipad || browser.iphone ||
                browser.ipod || browser.kindle || browser.playbook || browser.silk || browser[ "windows phone" ]) {
                browser.mobile = true;
              }
          Severity: Critical
          Found in assets/js/jquery.bookmark.js - About 2 hrs to fix

            Function _makeResizable has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _makeResizable: function() {
                    var that = this,
                        options = this.options,
                        handles = options.resizable,
                        // .ui-resizable has position: relative defined in the stylesheet
            Severity: Minor
            Found in assets/js/jqueryui.min.js - About 2 hrs to fix

              Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              $.effects.animateClass = function( value, duration, easing, callback ) {
                  var o = $.speed( duration, easing, callback );
              
                  return this.queue( function() {
                      var animated = $( this ),
              Severity: Minor
              Found in assets/js/jqueryui.min.js - About 2 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                                if ( ( mappedTypes || origType === handleObj.origType ) &&
                                    ( !handler || handler.guid === handleObj.guid ) &&
                                    ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                    ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                    handlers.splice( j, 1 );
                Severity: Critical
                Found in assets/js/jquery.min.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
                                  var ce = $(o.containment)[0];
                                  if (!ce) return;
                                  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 2 hrs to fix

                    Method getFormFeedback has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getFormFeedback($action = false)
                        {
                            if (false === $action) {
                                $action = $_SERVER['REQUEST_URI'];
                            }
                    Severity: Minor
                    Found in class/Common/ModuleFeedback.php - About 2 hrs to fix

                      Method resizeAndCrop has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function resizeAndCrop()
                          {
                              // check file extension
                              switch ($this->imageMimetype) {
                                  case 'image/png':
                      Severity: Minor
                      Found in class/Common/Resizer.php - About 2 hrs to fix

                        Function _setOption has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _setOption: function( key, value ) {
                                var isDraggable, isResizable,
                                    uiDialog = this.uiDialog;
                        
                                if ( key === "dialogClass" ) {
                        Severity: Minor
                        Found in assets/js/jqueryui.min.js - About 1 hr to fix

                          Function internalRemoveData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function internalRemoveData( elem, name, pvt ) {
                              if ( !jQuery.acceptData( elem ) ) {
                                  return;
                              }
                          
                          
                          Severity: Minor
                          Found in assets/js/jquery.min.js - About 1 hr to fix

                            Function insertCode has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                xoops_smallworld.fn.oembed.insertCode = function (container, embedMethod, oembedData) {
                                    if (oembedData === null)
                                        return;
                            
                                    if (embedMethod === 'auto' && container.attr('href') !== null) {
                            Severity: Minor
                            Found in assets/js/jquery.oembed.js - About 1 hr to fix

                              Function _determineDate has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _determineDate: function(inst, date, defaultDate) {
                                      var offsetNumeric = function(offset) {
                                              var date = new Date();
                                              date.setDate(date.getDate() + offset);
                                              return date;
                              Severity: Minor
                              Found in assets/js/jqueryui.min.js - About 1 hr to fix

                                Function addBindings has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function addBindings() {
                                        function clickHandler(e) {
                                            // ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
                                            // See: http://jacklmoore.com/notes/click-events/
                                            if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey)) {
                                Severity: Minor
                                Found in assets/js/jquery.colorbox.js - About 1 hr to fix

                                  Function _mouseCapture has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _mouseCapture: function( event ) {
                                          var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
                                              that = this,
                                              o = this.options;
                                  
                                  
                                  Severity: Minor
                                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                                            drag: function (event, ui) {
                                    
                                                var inst = $(this).data("draggable"), self = this;
                                    
                                                var checkPos = function (o) {
                                    Severity: Minor
                                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                      Function _updateDatepicker has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _updateDatepicker: function (inst) {
                                                  var self = this;
                                                  var borders = $.datepicker._getBorders(inst.dpDiv);
                                                  inst.dpDiv.empty().append(this._generateHTML(inst));
                                                  var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
                                      Severity: Minor
                                      Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

                                        Method __construct has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function __construct()
                                            {
                                                parent::__construct();
                                                $this->initVar('id', XOBJ_DTYPE_INT, null, false);
                                                $this->initVar('userid', XOBJ_DTYPE_TXTBOX, null, false, 255);
                                        Severity: Minor
                                        Found in class/SwUser.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language