Showing 759 of 1,838 total issues
Function _makeDraggable
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeDraggable: function () {
var self = this,
options = self.options,
doc = $(document),
heightBeforeDrag;
Function highlight
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.highlight = function (o) {
return this.queue(function () {
var elem = $(this),
props = ['backgroundImage', 'backgroundColor', 'opacity'],
mode = $.effects.setMode(elem, o.options.mode || 'show'),
Method getServerStats
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getServerStats()
{
$moduleDirName = basename(dirname(dirname(__DIR__)));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
xoops_loadLanguage('common', $moduleDirName);
Function _drop
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drop: function( event, custom ) {
var draggable = custom || $.ui.ddmanager.current,
childrenIntersection = false;
Function _create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
this.originalCss = {
display: this.element[ 0 ].style.display,
width: this.element[ 0 ].style.width,
minHeight: this.element[ 0 ].style.minHeight,
Function loadImage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadImage = function (file, callback, options) {
var img = document.createElement('img'),
url,
oUrl;
img.onerror = callback;
Function _refresh
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refresh: function() {
this._setupDisabled( this.options.disabled );
this._setupEvents( this.options.event );
this._setupHeightStyle( this.options.heightStyle );
Function _refreshValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function() {
var value = this.options.value,
percentage = this._percentage();
this.valueDiv
Function transition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function( other, distance ) {
var end = color( other ),
spaceName = end._space(),
space = spaces[ spaceName ],
startColor = this.alpha() === 0 ? color( "transparent" ) : this,
Function _initialActive
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initialActive: function() {
var active = this.options.active,
collapsible = this.options.collapsible,
locationHash = location.hash.substring( 1 );
Function html
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html: function( value ) {
return access( this, function( value ) {
var elem = this[ 0 ] || {},
i = 0,
l = this.length;
Function complete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function() {
if ( el.to.opacity === 0 ) {
el.css( "opacity", el.from.opacity );
}
if ( mode === "hide" ) {
Function toggleClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function () {
var options = this.options,
maxHeight;
if (options.fillSpace) {
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function (event, ui) {
var self = $(this).data("resizable"), o = self.options,
ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
pRatio = self._aspectRatio || event.shiftKey, cop = {top: 0, left: 0}, ce = self.containerElement;
Method smallworld_nextBirthdays
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_nextBirthdays()
{
$swUserHandler = Helper::getInstance()->getHandler('SwUser');
$now = date('d-m');
$res = [];
Method mostactiveusers_today
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mostactiveusers_today()
{
$sql = 'SELECT uid_fk, COUNT( * ) as cnt ';
$sql .= 'FROM ( ';
$sql .= 'SELECT uid_fk ';
Method smallworld_mostactiveusers_allround
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_mostactiveusers_allround()
{
$msg = [];
$sql = 'SELECT uid_fk, COUNT( * ) as cnt ';
$sql .= 'FROM ( ';
Function smallworld_getCountFriendMessagesEtcJS
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_getCountFriendMessagesEtcJS() {
xoops_smallworld.ajax({
url: smallworld_url + "Get_Count.php?SmallworldGetUserMsgCount=1" + "&rndnum=" + Math.floor(Math.random() * 101),
cache: false,
dataType: "json",
Function _createWidget
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = widget_uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;