Showing 759 of 1,838 total issues
Function _create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var selectees,
that = this;
this.element.addClass("ui-selectable");
Function _mouseDrag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function(event) {
var data, props,
smp = this.originalMousePosition,
a = this.axis,
Function _destroy
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
// Destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).addBack()
Function _initSource
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSource: function() {
var array, url,
that = this;
if ( $.isArray( this.options.source ) ) {
array = this.options.source;
Function highlight
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectHighlight = $.effects.effect.highlight = function( o, done ) {
var elem = $( this ),
props = [ "backgroundImage", "backgroundColor", "opacity" ],
mode = $.effects.setMode( elem, o.mode || "show" ),
animation = {
Function puff
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectPuff = $.effects.effect.puff = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "hide" ),
hide = mode === "hide",
percent = parseInt( o.percent, 10 ) || 150,
Function _createOverlay
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createOverlay: function() {
if ( !this.options.modal ) {
return;
}
Function fix
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
Function values
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
values: function( index, newValue ) {
var vals,
newValues,
i;
Function transfer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectTransfer = $.effects.effect.transfer = function( o, done ) {
var elem = $( this ),
target = $( o.to ),
targetFixed = target.css( "position" ) === "fixed",
body = $("body"),
Function historyInit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
historyInit: function (callback, src) {
xoops_smallworld.historyCallback = callback;
if (src) xoops_smallworld.historyIframeSrc = src;
var current_hash = location.hash.replace(/\?.*$/, '');
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each(function() {
Function drag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (draggable, event) {
//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
if (draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
Function _optionDatepicker
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_optionDatepicker: function (target, name, value) {
var inst = this._getInst(target);
if (arguments.length == 2 && typeof name == 'string') {
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
Function getBaseline
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getBaseline: function (origin, original) { // Translates a [top,left] array into a baseline value
// this should be a little more flexible in the future to handle a string & hash
var y, x;
switch (origin[0]) {
case 'top':
Function _keydown
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function (event) {
if (this.options.disabled || event.altKey || event.ctrlKey) {
return;
}
Function resize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function (event, ui) {
var self = $(this).data("resizable"), o = self.options, os = self.originalSize, op = self.originalPosition;
var delta = {
height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
Method orient_image
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function orient_image($file_path)
{
if (!function_exists('exif_read_data')) {
return false;
}
Method smallworld_remDir
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function smallworld_remDir($userid, $directory, $empty = false)
{
if ('' != $userid) {
if ('/' === mb_substr($directory, -1)) {
$directory = mb_substr($directory, 0, -1);
Method Gravatar
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function Gravatar($uid)
{
$depMsg = get_class() . __FUNCTION__ . " is deprecated use SwUserHandler::gravatar() instead.";
if (isset($GLOBALS['xoopsLogger'])) {
$GLOBALS['xoopsLogger']->addDeprecated($depMsg);