Showing 573 of 5,122 total issues
Function and
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
and : function( c, data, vars ) {
if ( tsfRegex.andTest.test( data.filter ) ) {
var indx, filterMatched, result, query, regex,
// duplicate data but split filter
data2 = $.extend( {}, data ),
Function and
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
and : function( c, data, vars ) {
if ( tsfRegex.andTest.test( data.filter ) ) {
var indx, filterMatched, result, query, regex,
// duplicate data but split filter
data2 = $.extend( {}, data ),
Function hideFilters
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hideFilters: function( c, $table ) {
var timer;
( $table || c.$table )
.find( '.' + tscss.filterRow )
.addClass( tscss.filterRowHide )
Function hideFilters
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hideFilters: function( c, $table ) {
var timer;
( $table || c.$table )
.find( '.' + tscss.filterRow )
.addClass( tscss.filterRowHide )
Method loadSampleData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadSampleData(): void
{
global $xoopsConfig;
$moduleDirName = \basename(\dirname(__DIR__));
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
Method getModuleOption
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getModuleOption($option, $repmodule = 'adslight')
{
global $xoopsModule;
$helper = \XoopsModules\Adslight\Helper::getInstance();
static $tbloptions = [];
Function remove
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( owner, key ) {
var i,
cache = owner[ this.expando ];
if ( cache === undefined ) {
Function getOptionSource
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOptionSource: function( table, column, onlyAvail ) {
table = $( table )[0];
var c = table.config,
wo = c.widgetOptions,
arry = false,
Function setWidth
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setWidth = function($orig, $clone) {
var index, width, border, $cell, $this,
$cells = $orig.filter(':visible'),
len = $cells.length;
for ( index = 0; index < len; index++ ) {
Function resizableReset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.resizableReset = function( table, refreshing ) {
$( table ).each(function() {
var index, $t,
c = this.config,
wo = c && c.widgetOptions,
Function getOptionSource
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOptionSource: function( table, column, onlyAvail ) {
table = $( table )[0];
var c = table.config,
wo = c.widgetOptions,
arry = false,
Function sortNatural
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sortNatural : function( a, b ) {
if ( a === b ) { return 0; }
a = ( a || '' ).toString();
b = ( b || '' ).toString();
var aNum, bNum, aFloat, bFloat, indx, max,
Function setWidth
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setWidth = function($orig, $clone) {
var index, width, border, $cell, $this,
$cells = $orig.filter(':visible'),
len = $cells.length;
for ( index = 0; index < len; index++ ) {
Function resizableReset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.resizableReset = function( table, refreshing ) {
$( table ).each(function() {
var index, $t,
c = this.config,
wo = c && c.widgetOptions,
Function sortNatural
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sortNatural : function( a, b ) {
if ( a === b ) { return 0; }
a = ( a || '' ).toString();
b = ( b || '' ).toString();
var aNum, bNum, aFloat, bFloat, indx, max,
Method convertOrderByTrans
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function convertOrderByTrans($orderby): string
{
$orderbyTrans = '';
if ('hits ASC' === $orderby) {
$orderbyTrans = \_ADSLIGHT_POPULARITYLTOM;
Method getObjects
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function &getObjects($criteria = null, $id_as_key = false, $as_object = true) //&getObjects(?\CriteriaElement $criteria = null, $id_as_key = false): array
{
$ret = [];
$limit = $start = 0;
$sql = 'SELECT * FROM ' . $this->db->prefix('adslight_pictures');
Method getTotalItems
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getTotalItems($sel_id, $status = ''): int
{
global $xoopsDB, $mytree;
$categories = self::getMyItemIds('adslight_view');
$count = 0;
Consider simplifying this complex logical expression. Open
Open
if ( validColumn && c.$headerIndexed[ column ].hasClass( 'filter-select-nosort' ) ) {
// unsorted select options
return arry;
} else {
len = arry.length;
Consider simplifying this complex logical expression. Open
Open
if ( support.matchesSelector && documentIsHTML &&
!nonnativeSelectorCache[ expr + " " ] &&
( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {