mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Consider simplifying this complex logical expression.
Open

                if ( $header && $header.length ) {
                    // $filter = c.$filters.filter( '[data-column="' + column + '"]' );
                    $filter = tsf.getColumnElm( c, c.$filters, column );
                    ffxn = ts.getColumnData( table, wo.filter_functions, column );
                    makeSelect = ( wo.filter_functions && ffxn && typeof ffxn !== 'function' ) ||
Severity: Major
Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
                // setFilters called, but last search is exactly the same as the current
                // fixes issue #733 & #903 where calling update causes the input values to reset
                ( $.isArray(setFilters) && tsf.equalFilters(c, setFilters, c.lastSearch) )
            ) {
    Severity: Major
    Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                              if ( header && header.length ) {
                                  // get column indexed table cell; adding true parameter fixes #1362 but
                                  // it would break backwards compatibility...
                                  configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
                                  // get column parser/extractor
      Severity: Major
      Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                        if ( tsfRegex.andTest.test( data.filter ) ) {
                            var indx, filterMatched, result, query, regex,
                                // duplicate data but split filter
                                data2 = $.extend( {}, data ),
                                filter = data.filter.split( tsfRegex.andSplit ),
        Severity: Major
        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
                      // setFilters called, but last search is exactly the same as the current
                      // fixes issue #733 & #903 where calling update causes the input values to reset
                      ( $.isArray(setFilters) && tsf.equalFilters(c, setFilters, c.lastSearch) )
                  ) {
          Severity: Major
          Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                            if ( tsfRegex.toTest.test( data.iFilter ) ) {
                                var result, tmp, range1, range2,
                                    table = c.table,
                                    index = data.index,
                                    parsed = data.parsed[index],
            Severity: Major
            Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                                      if ( header && header.length ) {
                                          // get column indexed table cell; adding true parameter fixes #1362 but
                                          // it would break backwards compatibility...
                                          configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
                                          // get column parser/extractor
              Severity: Major
              Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                            if ($oldtitle[$i] !== $title[$i]
                                || $oldweight[$i] !== $weight[$i]
                                || $oldvisible[$i] !== $visible[$i]
                                || $oldside[$i] !== $side[$i]
                                || $oldbcachetime[$i] !== $bcachetime[$i]
                Severity: Major
                Found in class/Common/Blocksadmin.php - About 40 mins to fix

                  Function buildSelect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          buildSelect: function( table, column, arry, updating, onlyAvail ) {
                  Severity: Minor
                  Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 35 mins to fix

                    Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function buildFragment( elems, context, scripts, selection, ignored ) {
                    Severity: Minor
                    Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                      Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function Tween( elem, options, prop, end, easing ) {
                      Severity: Minor
                      Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                        Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            remove: function( elem, types, handler, selector, mappedTypes ) {
                        Severity: Minor
                        Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                          Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              add: function( elem, types, handler, data, selector ) {
                          Severity: Minor
                          Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                            Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    "CHILD": function( type, what, argument, first, last ) {
                            Severity: Minor
                            Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                              Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function condense( unmatched, map, filter, context, xml ) {
                              Severity: Minor
                              Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                                Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        superMatcher = function( seed, context, xml, results, outermost ) {
                                Severity: Minor
                                Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 35 mins to fix

                                  Function buildSelect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          buildSelect: function( table, column, arry, updating, onlyAvail ) {
                                  Severity: Minor
                                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 35 mins to fix

                                    Function getColumnData has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            getColumnData : function( table, obj, indx, getCell, $headers ) {
                                    Severity: Minor
                                    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 35 mins to fix

                                      Method adslight_search has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          $queryarray,
                                          $andor,
                                          $limit,
                                          $offset,
                                          $userid
                                      Severity: Minor
                                      Found in include/search.inc.php - About 35 mins to fix

                                        Method mailAd has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function mailAd($lid, $yname, $ymail, $fname, $fmail): void
                                        Severity: Minor
                                        Found in report-abuse.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language