mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Function bindings has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        bindings : function( c, wo ) {
            var namespace = c.namespace + 'tsresize';
            wo.$resizable_container.children().bind( 'mousedown', function( event ) {
                // save header cell and mouse position
                var column,
Severity: Major
Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 2 hrs to fix

    Function applyWidget has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            applyWidget : function( table, init, callback ) {
                table = $( table )[ 0 ]; // in case this is called externally
                var indx, len, names, widget, time,
                    c = table.config,
                    debug = ts.debug(c, 'core'),
    Severity: Major
    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 2 hrs to fix

      Function applyWidget has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              applyWidget : function( table, init, callback ) {
                  table = $( table )[ 0 ]; // in case this is called externally
                  var indx, len, names, widget, time,
                      c = table.config,
                      debug = ts.debug(c, 'core'),
      Severity: Major
      Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 2 hrs to fix

        File modinfo.php has 259 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php declare(strict_types=1);
        /*
        -------------------------------------------------------------------------
                             ADSLIGHT 2 : Module for Xoops
        
        
        Severity: Minor
        Found in language/english/modinfo.php - About 2 hrs to fix

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

                  processOptions: function( table, column, arry ) {
                      if ( !$.isArray( arry ) ) {
                          return false;
                      }
                      table = $( table )[0];
          Severity: Major
          Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 2 hrs to fix

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

                    processOptions: function( table, column, arry ) {
                        if ( !$.isArray( arry ) ) {
                            return false;
                        }
                        table = $( table )[0];
            Severity: Major
            Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 2 hrs to fix

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

                  init = jQuery.fn.init = function( selector, context, root ) {
                      var match, elem;
              
                      // HANDLE: $(""), $(null), $(undefined), $(false)
                      if ( !selector ) {
              Severity: Major
              Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 2 hrs to fix

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

                        updateCell : function( c, cell, resort, callback ) {
                            // updateCell for child rows is a mess - we'll ignore them for now
                            // eventually I'll break out the "update" row cache code to make everything consistent
                            if ( $( cell ).closest( 'tr' ).hasClass( c.cssChildRow ) ) {
                                console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');
                Severity: Major
                Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 2 hrs to fix

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

                          updateCell : function( c, cell, resort, callback ) {
                              // updateCell for child rows is a mess - we'll ignore them for now
                              // eventually I'll break out the "update" row cache code to make everything consistent
                              if ( $( cell ).closest( 'tr' ).hasClass( c.cssChildRow ) ) {
                                  console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');
                  Severity: Major
                  Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 2 hrs to fix

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

                        public function isBlockCloned(int $bid, string $bside, string $bweight, string $bvisible, string $bcachetime, ?array $bmodule, ?array $options, ?array $groups, bool $redirect = true)
                        {
                            \xoops_loadLanguage('admin', 'system');
                            \xoops_loadLanguage('admin/blocksadmin', 'system');
                            \xoops_loadLanguage('admin/groups', 'system');
                    Severity: Major
                    Found in class/Common/Blocksadmin.php - About 2 hrs to fix

                      File SysUtility.php has 254 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php declare(strict_types=1);
                      
                      namespace XoopsModules\Adslight\Common;
                      
                      /*
                      Severity: Minor
                      Found in class/Common/SysUtility.php - About 2 hrs to fix

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

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

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

                          function getConfig(): object
                          {
                              $moduleDirName      = \basename(\dirname(__DIR__));
                              $moduleDirNameUpper = mb_strtoupper($moduleDirName);
                          
                          
                          Severity: Major
                          Found in include/config.php - About 2 hrs to fix

                            File seo_url.php has 253 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php declare(strict_types=1);
                            /*
                             * You may not change or alter any portion of this comment or credits
                             * of supporting developers from this source code or any supporting source code
                             * which is considered copyrighted (c) material of the original comment or credit authors.
                            Severity: Minor
                            Found in seo_url.php - About 2 hrs to fix

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

                              function buildFragment( elems, context, scripts, selection, ignored ) {
                                  var elem, tmp, tag, wrap, attached, j,
                                      fragment = context.createDocumentFragment(),
                                      nodes = [],
                                      i = 0,
                              Severity: Major
                              Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 2 hrs to fix

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

                                function listingDel($lid, $ok): void
                                {
                                    global $xoopsDB;
                                    $helper = Helper::getInstance();
                                    $sql = 'SELECT usid FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid=' . $xoopsDB->escape($lid);
                                Severity: Major
                                Found in modify.php - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                              if (!$table.hasClass('tablesorter-' + theme) || c.theme !== c.appliedTheme || !wo.uitheme_applied) {
                                                  wo.uitheme_applied = true;
                                                  oldtheme = themesAll[c.appliedTheme] || {};
                                                  hasOldTheme = !$.isEmptyObject(oldtheme);
                                                  oldremove =  hasOldTheme ? [ oldtheme.sortNone, oldtheme.sortDesc, oldtheme.sortAsc, oldtheme.active ].join( ' ' ) : '';
                                  Severity: Critical
                                  Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.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 ) ) {
                                    Severity: Critical
                                    Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 2 hrs to fix

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

                                              init : function( c, wo ) {
                                                  if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
                                                  c.$table.addClass( 'hasResizable' );
                                      
                                                  var noResize, $header, column, storedSizes, tmp,
                                      Severity: Minor
                                      Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 2 hrs to fix

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

                                                init : function( c, wo ) {
                                                    if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
                                                    c.$table.addClass( 'hasResizable' );
                                        
                                                    var noResize, $header, column, storedSizes, tmp,
                                        Severity: Minor
                                        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language