Showing 573 of 5,122 total issues
Function computeColumnIndex
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = [],
Function appendCache
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
appendCache : function( c, init ) {
var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime,
table = c.table,
$tbodies = c.$tbodies,
rows = [],
Method xoops_module_install_adslight
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xoops_module_install_adslight(\XoopsModule $module): bool
{
require_once \dirname(__DIR__, 3) . '/mainfile.php';
global $xoopsDB;
Function computeColumnIndex
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = [],
Function scrollSticky
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function getOptions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOptions: function( table, column, onlyAvail ) {
table = $( table )[0];
var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen,
c = table.config,
wo = c.widgetOptions,
Function getOptions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOptions: function( table, column, onlyAvail ) {
table = $( table )[0];
var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen,
c = table.config,
wo = c.widgetOptions,
Function addHeaderResizeEvent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function scrollSticky
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function addHeaderResizeEvent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Method __construct
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($target)
{
$this->helper = $target->helper;
$this->targetObject = $target;
Method cloneBlock
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function cloneBlock(int $bid)
{
//require __DIR__ . '/admin_header.php';
// \xoops_cp_header();
Method handleActions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handleActions(BlockData $blockData)
{
$moduleDirNameUpper = \mb_strtoupper(Helper::getInstance()->getDirname());
$bid = Request::getInt('bid', 0);
Function ajaxHandleResponses
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
contents = s.contents,
dataTypes = s.dataTypes;
Method adslight_notify_iteminfo
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function adslight_notify_iteminfo(
$category,
$item_id
) {
global $xoopsDB;
Method rssDisplay
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rssDisplay(
$url,
$size = 15,
$site = 0
): string {
Method editBlock
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editBlock(int $bid): void
{
// require_once \dirname(__DIR__,2) . '/admin/admin_header.php';
// \xoops_cp_header();
\xoops_loadLanguage('admin', 'system');
Function mightThrow
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mightThrow = function() {
var returned, then;
// Support: Promises/A+ section 2.3.3.3.3
// https://promisesaplus.com/#point-59
Function boxModelAdjustment
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
var i = dimension === "width" ? 1 : 0,
extra = 0,
delta = 0;
Function format
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 },