Showing 573 of 5,122 total issues
Function bindings
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function applyWidget
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'),
Function applyWidget
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'),
File modinfo.php
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare(strict_types=1);
/*
-------------------------------------------------------------------------
ADSLIGHT 2 : Module for Xoops
Function processOptions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processOptions: function( table, column, arry ) {
if ( !$.isArray( arry ) ) {
return false;
}
table = $( table )[0];
Function processOptions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processOptions: function( table, column, arry ) {
if ( !$.isArray( arry ) ) {
return false;
}
table = $( table )[0];
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init = jQuery.fn.init = function( selector, context, root ) {
var match, elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if ( !selector ) {
Function updateCell
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Function updateCell
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Method isBlockCloned
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
File SysUtility.php
has 254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare(strict_types=1);
namespace XoopsModules\Adslight\Common;
/*
Function remove
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, origCount, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,
Method getConfig
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getConfig(): object
{
$moduleDirName = \basename(\dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
File seo_url.php
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
Function buildFragment
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildFragment( elems, context, scripts, selection, ignored ) {
var elem, tmp, tag, wrap, attached, j,
fragment = context.createDocumentFragment(),
nodes = [],
i = 0,
Method listingDel
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listingDel($lid, $ok): void
{
global $xoopsDB;
$helper = Helper::getInstance();
$sql = 'SELECT usid FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid=' . $xoopsDB->escape($lid);
Consider simplifying this complex logical expression. Open
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( ' ' ) : '';
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !tmp || tmp.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector ||
selector === "**" && handleObj.selector ) ) {
Function init
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function( c, wo ) {
if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
c.$table.addClass( 'hasResizable' );
var noResize, $header, column, storedSizes, tmp,
Function init
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function( c, wo ) {
if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
c.$table.addClass( 'hasResizable' );
var noResize, $header, column, storedSizes, tmp,