Showing 759 of 1,838 total issues
Function _mouseDrag
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function (event) {
//Compute the helpers position
this.position = this._generatePosition(event);
this.positionAbs = this._convertPositionTo("absolute");
Function bounce
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.bounce = function (o) {
return this.queue(function () {
// Create element
Function done
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
done: function (e, data) {
var that = $(this).data('blueimp-fileupload') ||
$(this).data('fileupload'),
files = that._getFilesFromResponse(data),
template,
Function _mouseStart
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var that = this,
options = this.options;
this.opos = [ event.pageX, event.pageY ];
Function keydown
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
var preventDefault = true;
switch ( event.keyCode ) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ESCAPE:
Function _determineDate
has 54 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;
Method create_scaled_image
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function create_scaled_image($file_name, $version, $options)
{
$file_path = $this->get_upload_path($file_name);
if (!empty($version)) {
$version_dir = $this->get_upload_path(null, $version);
Function keydown
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
if ( this.element.prop( "readOnly" ) ) {
suppressKeyPress = true;
suppressInput = true;
suppressKeyPressRepeat = true;
Function parse
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function( red, green, blue, alpha ) {
if ( red === undefined ) {
this._rgba = [ null, null, null, null ];
return this;
}
Function _setOption
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function (key, value) {
var self = this,
uiDialog = self.uiDialog;
switch (key) {
Function _refreshValue
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function() {
var lastValPercent, valPercent, value, valueMin, valueMax,
oRange = this.options.range,
o = this.options,
that = this,
Function _mouseStart
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event) {
var self = this;
this.opos = [event.pageX, event.pageY];
Method __construct
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($options = null, $initialize = true)
{
$userID = $GLOBALS['xoopsUser']->getVar('uid');
$this->options = [
'script_url' => $this->get_full_url() . '/imgupload.php',
Method mergeImage
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mergeImage()
{
$dest = imagecreatefromjpeg($this->endFile);
$src = imagecreatefromjpeg($this->sourceFile);
if (4 == $this->mergeType) {
Method handle_file_upload
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function handle_file_upload(
$uploaded_file,
$name,
$size,
$type,
Method Updates
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function Updates($last, $moderators)
{
/** @var \XoopsModules\Smallworld\Helper $helper */
$helper = Helper::getInstance();
$moderators = is_array($moderators) ? $moderators : [$moderators];
Function showImage
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showImage: function (img) {
var modal = this.$element,
transition = $.support.transition && modal.hasClass('fade'),
method = transition ? modal.animate : modal.css,
modalImage = modal.find('.modal-image'),
Function _animate
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_animate: function( toShow, toHide, data ) {
var total, easing, duration,
that = this,
adjust = 0,
boxSizing = toShow.css( "box-sizing" ),
Function start
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
var element, p, co, ch, cw, width, height,
that = $( this ).resizable( "instance" ),
o = that.options,
el = that.element,
Function slideshow
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function slideshow() {
var
timeOut,
className = prefix + "Slideshow_",
click = "click." + prefix,