XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

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

        _mouseDrag: function (event) {

            //Compute the helpers position
            this.position = this._generatePosition(event);
            this.positionAbs = this._convertPositionTo("absolute");
Severity: Major
Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

    Function bounce has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.effects.bounce = function (o) {
    
            return this.queue(function () {
    
                // Create element
    Severity: Major
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

      Function done has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  done: function (e, data) {
                      var that = $(this).data('blueimp-fileupload') ||
                          $(this).data('fileupload'),
                          files = that._getFilesFromResponse(data),
                          template,
      Severity: Major
      Found in assets/js/jquery.fileupload-ui.js - About 2 hrs to fix

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

            _mouseStart: function(event) {
                var that = this,
                    options = this.options;
        
                this.opos = [ event.pageX, event.pageY ];
        Severity: Major
        Found in assets/js/jqueryui.min.js - About 2 hrs to fix

          Function keydown has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  keydown: function( event ) {
                      var preventDefault = true;
                      switch ( event.keyCode ) {
                          case $.ui.keyCode.TAB:
                          case $.ui.keyCode.ESCAPE:
          Severity: Major
          Found in assets/js/jqueryui.min.js - About 2 hrs to fix

            Function _determineDate has 54 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: Major
            Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

              Method create_scaled_image has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  protected function create_scaled_image($file_name, $version, $options)
                  {
                      $file_path = $this->get_upload_path($file_name);
                      if (!empty($version)) {
                          $version_dir = $this->get_upload_path(null, $version);
              Severity: Major
              Found in class/UploadHandler.php - About 2 hrs to fix

                Function keydown has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            keydown: function( event ) {
                                if ( this.element.prop( "readOnly" ) ) {
                                    suppressKeyPress = true;
                                    suppressInput = true;
                                    suppressKeyPressRepeat = true;
                Severity: Major
                Found in assets/js/jqueryui.min.js - About 2 hrs to fix

                  Function parse has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      parse: function( red, green, blue, alpha ) {
                          if ( red === undefined ) {
                              this._rgba = [ null, null, null, null ];
                              return this;
                          }
                  Severity: Major
                  Found in assets/js/jqueryui.min.js - About 2 hrs to fix

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

                            _setOption: function (key, value) {
                                var self = this,
                                    uiDialog = self.uiDialog;
                    
                                switch (key) {
                    Severity: Major
                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

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

                          _refreshValue: function() {
                              var lastValPercent, valPercent, value, valueMin, valueMax,
                                  oRange = this.options.range,
                                  o = this.options,
                                  that = this,
                      Severity: Major
                      Found in assets/js/jqueryui.min.js - About 2 hrs to fix

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

                                _mouseStart: function (event) {
                                    var self = this;
                        
                                    this.opos = [event.pageX, event.pageY];
                        
                        
                        Severity: Major
                        Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

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

                              public function __construct($options = null, $initialize = true)
                              {
                                  $userID = $GLOBALS['xoopsUser']->getVar('uid');
                                  $this->options = [
                                      'script_url'                       => $this->get_full_url() . '/imgupload.php',
                          Severity: Major
                          Found in class/UploadHandler.php - About 2 hrs to fix

                            Method mergeImage has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function mergeImage()
                                {
                                    $dest = imagecreatefromjpeg($this->endFile);
                                    $src  = imagecreatefromjpeg($this->sourceFile);
                                    if (4 == $this->mergeType) {
                            Severity: Major
                            Found in class/Common/Resizer.php - About 2 hrs to fix

                              Method handle_file_upload has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function handle_file_upload(
                                      $uploaded_file,
                                      $name,
                                      $size,
                                      $type,
                              Severity: Major
                              Found in class/UploadHandler.php - About 2 hrs to fix

                                Method Updates has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function Updates($last, $moderators)
                                    {
                                        /** @var \XoopsModules\Smallworld\Helper $helper */
                                        $helper     = Helper::getInstance();
                                        $moderators = is_array($moderators) ? $moderators : [$moderators];
                                Severity: Major
                                Found in class/PublicWallUpdates.php - About 2 hrs to fix

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

                                          showImage: function (img) {
                                              var modal = this.$element,
                                                  transition = $.support.transition && modal.hasClass('fade'),
                                                  method = transition ? modal.animate : modal.css,
                                                  modalImage = modal.find('.modal-image'),
                                  Severity: Major
                                  Found in assets/js/uploader/bootstrap-image-gallery.js - About 2 hrs to fix

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

                                        _animate: function( toShow, toHide, data ) {
                                            var total, easing, duration,
                                                that = this,
                                                adjust = 0,
                                                boxSizing = toShow.css( "box-sizing" ),
                                    Severity: Major
                                    Found in assets/js/jqueryui.min.js - About 2 hrs to fix

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

                                          start: function() {
                                              var element, p, co, ch, cw, width, height,
                                                  that = $( this ).resizable( "instance" ),
                                                  o = that.options,
                                                  el = that.element,
                                      Severity: Major
                                      Found in assets/js/jqueryui.min.js - About 2 hrs to fix

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

                                            function slideshow() {
                                                var
                                                    timeOut,
                                                    className = prefix + "Slideshow_",
                                                    click = "click." + prefix,
                                        Severity: Major
                                        Found in assets/js/jquery.colorbox.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language