Showing 759 of 1,838 total issues
Function blind
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectBlind = $.effects.effect.blind = function( o, done ) {
// Create element
var el = $( this ),
rvertical = /up|down|vertical/,
rpositivemotion = /up|left|vertical|horizontal/,
Function remove
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, handleObj, tmp,
origCount, t, events,
special, handlers, type,
namespaces, origType,
Function _determineTime
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineTime: function (setting, defaultTime) {
var offsetNumeric = function (offset) { // e.g. +300, -2
var time = new Date();
time.setTime(time.getTime() + offset * 1000);
return time;
Method validate
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validate($uploaded_file, $file, $error, $index)
{
if ($error) {
$file->error = $this->get_error_message($error);
Consider simplifying this complex logical expression. Open
Open
if ( browser.android || browser.bb || browser.blackberry || browser.ipad || browser.iphone ||
browser.ipod || browser.kindle || browser.playbook || browser.silk || browser[ "windows phone" ]) {
browser.mobile = true;
}
Function _makeResizable
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeResizable: function() {
var that = this,
options = this.options,
handles = options.resizable,
// .ui-resizable has position: relative defined in the stylesheet
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
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 ) ) {
handlers.splice( j, 1 );
Consider simplifying this complex logical expression. Open
Open
if (!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
var ce = $(o.containment)[0];
if (!ce) return;
var co = $(o.containment).offset();
var over = ($(ce).css("overflow") != 'hidden');
Method getFormFeedback
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFormFeedback($action = false)
{
if (false === $action) {
$action = $_SERVER['REQUEST_URI'];
}
Method resizeAndCrop
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function resizeAndCrop()
{
// check file extension
switch ($this->imageMimetype) {
case 'image/png':
Function _setOption
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var isDraggable, isResizable,
uiDialog = this.uiDialog;
if ( key === "dialogClass" ) {
Function internalRemoveData
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function internalRemoveData( elem, name, pvt ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
Function insertCode
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
xoops_smallworld.fn.oembed.insertCode = function (container, embedMethod, oembedData) {
if (oembedData === null)
return;
if (embedMethod === 'auto' && container.attr('href') !== null) {
Function _determineDate
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineDate: function(inst, date, defaultDate) {
var offsetNumeric = function(offset) {
var date = new Date();
date.setDate(date.getDate() + offset);
return date;
Function addBindings
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addBindings() {
function clickHandler(e) {
// ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
// See: http://jacklmoore.com/notes/click-events/
if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey)) {
Function _mouseCapture
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function( event ) {
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
that = this,
o = this.options;
Function drag
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (event, ui) {
var inst = $(this).data("draggable"), self = this;
var checkPos = function (o) {
Function _updateDatepicker
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDatepicker: function (inst) {
var self = this;
var borders = $.datepicker._getBorders(inst.dpDiv);
inst.dpDiv.empty().append(this._generateHTML(inst));
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
Method __construct
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __construct()
{
parent::__construct();
$this->initVar('id', XOBJ_DTYPE_INT, null, false);
$this->initVar('userid', XOBJ_DTYPE_TXTBOX, null, false, 255);