Showing 759 of 1,838 total issues
Function values
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
values: function (index, newValue) {
var vals,
newValues,
i;
Function transfer
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.transfer = function (o) {
return this.queue(function () {
var elem = $(this),
target = $(o.options.to),
endPosition = target.offset(),
Function _mouseStart
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event) {
var o = this.options, iniPos = this.element.position(), el = this.element;
this.resizing = true;
Function _create
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
var self = this;
this.element.addClass("ui-selectable");
Function fold
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.fold = function (o) {
return this.queue(function () {
// Create element
Function refresh
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function () {
var isDisabled = this.element.is(":disabled");
if (isDisabled !== this.options.disabled) {
this._setOption("disabled", isDisabled);
}
Method smallworld_GetModuleOption
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_GetModuleOption($option = null, $repmodule = 'smallworld', $flushFirst = false)
{
static $modOptions = [];
if ($flushFirst) { // clears the 'cache', forces reload of configs
$modOptions = [];
Method smallworld_getImageSize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smallworld_getImageSize($w, $h, $url)
{
$bn = basename($url);
$w = (int)$w;
$h = (int)$h;
Method deleteAccount
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function deleteAccount($userid)
{
$userid = (int)$userid;
$user = new \XoopsUser($userid);
$username = $user->uname();
Method usersettings
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function usersettings($userid)
{
$form = "<div style='display:none'><div class='smallworld_usersetings'>";
$form .= '<fieldset><legend>' . _SMALLWORLD_SHOWIFPUBLICORPRIVATE . '</legend>';
$form .= "<form id='perset'>";
Method Gravatar
has 27 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);
Function fieldValue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fieldValue = function (el, successful) {
var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
if (typeof successful == 'undefined') successful = true;
if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
Function show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, show: function () {
var that = this
, e = $.Event('show')
this.$element.trigger(e)
Function dataURLtoBlob
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.ArrayBuffer && window.Uint8Array && function (dataURI) {
var byteString,
arrayBuffer,
intArray,
i,
Function _destroy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
this._mouseDestroy();
var wrapper,
Function off
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
handleObj = types.handleObj;
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
Function *
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"*": [ function( prop, value ) {
var tween = this.createTween( prop, value ),
target = tween.cur(),
parts = rfxnum.exec( value ),
unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
offset: function( options ) {
if ( arguments.length ) {
return options === undefined ?
this :
this.each(function( i ) {
Function refreshPositions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function (fast) {
//This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
if (this.offsetParent && this.helper) {
this.offset.parent = this._getParentOffset();