mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

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

            and : function( c, data, vars ) {
                if ( tsfRegex.andTest.test( data.filter ) ) {
                    var indx, filterMatched, result, query, regex,
                        // duplicate data but split filter
                        data2 = $.extend( {}, data ),
Severity: Minor
Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                and : function( c, data, vars ) {
                    if ( tsfRegex.andTest.test( data.filter ) ) {
                        var indx, filterMatched, result, query, regex,
                            // duplicate data but split filter
                            data2 = $.extend( {}, data ),
    Severity: Minor
    Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

              hideFilters: function( c, $table ) {
                  var timer;
                  ( $table || c.$table )
                      .find( '.' + tscss.filterRow )
                      .addClass( tscss.filterRowHide )
      Severity: Minor
      Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                hideFilters: function( c, $table ) {
                    var timer;
                    ( $table || c.$table )
                        .find( '.' + tscss.filterRow )
                        .addClass( tscss.filterRowHide )
        Severity: Minor
        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

          function loadSampleData(): void
          {
              global $xoopsConfig;
              $moduleDirName      = \basename(\dirname(__DIR__));
              $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
          Severity: Minor
          Found in testdata/index.php - About 1 hr to fix

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

                public static function getModuleOption($option, $repmodule = 'adslight')
                {
                    global $xoopsModule;
                    $helper = \XoopsModules\Adslight\Helper::getInstance();
                    static $tbloptions = [];
            Severity: Minor
            Found in class/Utility.php - About 1 hr to fix

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

                  remove: function( owner, key ) {
                      var i,
                          cache = owner[ this.expando ];
              
                      if ( cache === undefined ) {
              Severity: Minor
              Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

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

                        getOptionSource: function( table, column, onlyAvail ) {
                            table = $( table )[0];
                            var c = table.config,
                                wo = c.widgetOptions,
                                arry = false,
                Severity: Minor
                Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                                  setWidth = function($orig, $clone) {
                                      var index, width, border, $cell, $this,
                                          $cells = $orig.filter(':visible'),
                                          len = $cells.length;
                                      for ( index = 0; index < len; index++ ) {
                  Severity: Minor
                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                        ts.resizableReset = function( table, refreshing ) {
                            $( table ).each(function() {
                                var index, $t,
                                    c = this.config,
                                    wo = c && c.widgetOptions,
                    Severity: Minor
                    Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                              getOptionSource: function( table, column, onlyAvail ) {
                                  table = $( table )[0];
                                  var c = table.config,
                                      wo = c.widgetOptions,
                                      arry = false,
                      Severity: Minor
                      Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                                sortNatural : function( a, b ) {
                                    if ( a === b ) { return 0; }
                                    a = ( a || '' ).toString();
                                    b = ( b || '' ).toString();
                                    var aNum, bNum, aFloat, bFloat, indx, max,
                        Severity: Minor
                        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                                          setWidth = function($orig, $clone) {
                                              var index, width, border, $cell, $this,
                                                  $cells = $orig.filter(':visible'),
                                                  len = $cells.length;
                                              for ( index = 0; index < len; index++ ) {
                          Severity: Minor
                          Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                                ts.resizableReset = function( table, refreshing ) {
                                    $( table ).each(function() {
                                        var index, $t,
                                            c = this.config,
                                            wo = c && c.widgetOptions,
                            Severity: Minor
                            Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                                      sortNatural : function( a, b ) {
                                          if ( a === b ) { return 0; }
                                          a = ( a || '' ).toString();
                                          b = ( b || '' ).toString();
                                          var aNum, bNum, aFloat, bFloat, indx, max,
                              Severity: Minor
                              Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 1 hr to fix

                                Method convertOrderByTrans has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function convertOrderByTrans($orderby): string
                                    {
                                        $orderbyTrans = '';
                                        if ('hits ASC' === $orderby) {
                                            $orderbyTrans = \_ADSLIGHT_POPULARITYLTOM;
                                Severity: Minor
                                Found in class/Utility.php - About 1 hr to fix

                                  Method getObjects has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function &getObjects($criteria = null, $id_as_key = false, $as_object = true) //&getObjects(?\CriteriaElement $criteria = null, $id_as_key = false): array
                                      {
                                          $ret   = [];
                                          $limit = $start = 0;
                                          $sql   = 'SELECT * FROM ' . $this->db->prefix('adslight_pictures');
                                  Severity: Minor
                                  Found in class/PicturesHandler.php - About 1 hr to fix

                                    Method getTotalItems has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function getTotalItems($sel_id, $status = ''): int
                                        {
                                            global $xoopsDB, $mytree;
                                            $categories = self::getMyItemIds('adslight_view');
                                            $count      = 0;
                                    Severity: Minor
                                    Found in class/Utility.php - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if ( validColumn && c.$headerIndexed[ column ].hasClass( 'filter-select-nosort' ) ) {
                                                      // unsorted select options
                                                      return arry;
                                                  } else {
                                                      len = arry.length;
                                      Severity: Major
                                      Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                            if ( support.matchesSelector && documentIsHTML &&
                                                !nonnativeSelectorCache[ expr + " " ] &&
                                                ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                        
                                        
                                        Severity: Major
                                        Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language