mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Function computeColumnIndex has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        computeColumnIndex : function( $rows, c ) {
            var i, j, k, l, cell, cells, rowIndex, rowSpan, colSpan, firstAvailCol,
                // total columns has been calculated, use it to set the matrixrow
                columns = c && c.columns || 0,
                matrix = [],
Severity: Minor
Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

    Function appendCache has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            appendCache : function( c, init ) {
                var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime,
                    table = c.table,
                    $tbodies = c.$tbodies,
                    rows = [],
    Severity: Minor
    Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 1 hr to fix

      Method xoops_module_install_adslight has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function xoops_module_install_adslight(\XoopsModule $module): bool
      {
          require_once \dirname(__DIR__, 3) . '/mainfile.php';
      
          global $xoopsDB;
      Severity: Minor
      Found in include/oninstall.php - About 1 hr to fix

        Function computeColumnIndex has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                computeColumnIndex : function( $rows, c ) {
                    var i, j, k, l, cell, cells, rowIndex, rowSpan, colSpan, firstAvailCol,
                        // total columns has been calculated, use it to set the matrixrow
                        columns = c && c.columns || 0,
                        matrix = [],
        Severity: Minor
        Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 1 hr to fix

          Function scrollSticky has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          scrollSticky = function( resizing ) {
                              if (!$table.is(':visible')) { return; } // fixes #278
                              // Detect nested tables - fixes #724
                              nestedStickyTop = $nestedSticky.length ? $nestedSticky.offset().top - $yScroll.scrollTop() + $nestedSticky.height() : 0;
                              var tmp,
          Severity: Minor
          Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

            Function getOptions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    getOptions: function( table, column, onlyAvail ) {
                        table = $( table )[0];
                        var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen,
                            c = table.config,
                            wo = c.widgetOptions,
            Severity: Minor
            Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

              Function getOptions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      getOptions: function( table, column, onlyAvail ) {
                          table = $( table )[0];
                          var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen,
                              c = table.config,
                              wo = c.widgetOptions,
              Severity: Minor
              Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

                Function addHeaderResizeEvent has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    ts.addHeaderResizeEvent = function(table, disable, settings) {
                        table = $(table)[0]; // make sure we're using a dom element
                        if ( !table.config ) { return; }
                        var defaults = {
                                timer : 250
                Severity: Minor
                Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

                  Function scrollSticky has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  scrollSticky = function( resizing ) {
                                      if (!$table.is(':visible')) { return; } // fixes #278
                                      // Detect nested tables - fixes #724
                                      nestedStickyTop = $nestedSticky.length ? $nestedSticky.offset().top - $yScroll.scrollTop() + $nestedSticky.height() : 0;
                                      var tmp,
                  Severity: Minor
                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

                    Function addHeaderResizeEvent has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        ts.addHeaderResizeEvent = function(table, disable, settings) {
                            table = $(table)[0]; // make sure we're using a dom element
                            if ( !table.config ) { return; }
                            var defaults = {
                                    timer : 250
                    Severity: Minor
                    Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

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

                          public function __construct($target)
                          {
                              $this->helper       = $target->helper;
                              $this->targetObject = $target;
                      
                      
                      Severity: Minor
                      Found in class/Form/RepliesForm.php - About 1 hr to fix

                        Method cloneBlock has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function cloneBlock(int $bid)
                            {
                                //require __DIR__ . '/admin_header.php';
                                //        \xoops_cp_header();
                        
                        
                        Severity: Minor
                        Found in class/Common/Blocksadmin.php - About 1 hr to fix

                          Method handleActions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function handleActions(BlockData $blockData)
                              {
                                  $moduleDirNameUpper = \mb_strtoupper(Helper::getInstance()->getDirname());
                                  $bid = Request::getInt('bid', 0);
                          
                          
                          Severity: Minor
                          Found in class/Common/BlockActionsHandler.php - About 1 hr to fix

                            Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ajaxHandleResponses( s, jqXHR, responses ) {
                            
                                var ct, type, finalDataType, firstDataType,
                                    contents = s.contents,
                                    dataTypes = s.dataTypes;
                            Severity: Minor
                            Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

                              Method adslight_notify_iteminfo has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function adslight_notify_iteminfo(
                                  $category,
                                  $item_id
                              ) {
                                  global $xoopsDB;
                              Severity: Minor
                              Found in include/notification.inc.php - About 1 hr to fix

                                Method rssDisplay has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function rssDisplay(
                                    $url,
                                    $size = 15,
                                    $site = 0
                                ): string {
                                Severity: Minor
                                Found in admin/adsligh_rsslib.php - About 1 hr to fix

                                  Method editBlock has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function editBlock(int $bid): void
                                      {
                                          //        require_once \dirname(__DIR__,2) . '/admin/admin_header.php';
                                          //        \xoops_cp_header();
                                          \xoops_loadLanguage('admin', 'system');
                                  Severity: Minor
                                  Found in class/Common/Blocksadmin.php - About 1 hr to fix

                                    Function mightThrow has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                                    mightThrow = function() {
                                                                        var returned, then;
                                    
                                                                        // Support: Promises/A+ section 2.3.3.3.3
                                                                        // https://promisesaplus.com/#point-59
                                    Severity: Minor
                                    Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

                                      Function boxModelAdjustment has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                          var i = dimension === "width" ? 1 : 0,
                                              extra = 0,
                                              delta = 0;
                                      
                                      
                                      Severity: Minor
                                      Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

                                        Function format has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                format: function(table, c, wo, init) {
                                                    var time,
                                                        $table = c.$table,
                                                        saveSort = wo.saveSort !== false, // make saveSort active/inactive; default to true
                                                        sortList = { 'sortList' : c.sortList },
                                        Severity: Minor
                                        Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language