Showing 7,504 of 7,504 total issues
Function uploadError
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uploadError(fileObj, errorCode, message) {
switch (errorCode) {
case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:
wpFileError(fileObj, swfuploadL10n.missing_upload_url);
Function createFilters
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createFilters: function() {
var type = this.model.get('type'),
types = media.view.settings.mimeTypes,
text;
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
Function SlideUp
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Effect.SlideUp = function(element) {
element = $(element).cleanWhitespace();
var oldInnerBottom = element.down().getStyle('bottom');
var elementDimensions = element.getDimensions();
return new Effect.Scale(element, window.opera ? 0 : 1,
Function startDrag
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startDrag: function(event) {
this.dragging = true;
if(!this.delta)
this.delta = this.currentDelta();
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( id, view, options ) {
var priority, views, index;
options = options || {};
Function scale
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var scale = function() {
// set stagewidth
self._stageWidth = width || self.$( 'stage' ).width();
self._stageHeight = height || self.$( 'stage' ).height();
Function refresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ScrollSpy.prototype.refresh = function () {
var that = this
var offsetMethod = 'offset'
var offsetBase = 0
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.hide = function () {
if (this.transitioning || !this.$element.hasClass('in')) return
var startEvent = $.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
Function next
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function next() {
$active
.removeClass('active')
.find('> .dropdown-menu > .active')
.removeClass('active')
Method privDirCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privDirCheck($p_dir, $p_is_dir=false)
{
$v_result = 1;
Function _playCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_playCheck : function() {
var self = this,
played = 0,
interval = 20,
now = Utils.timestamp(),
Method feedback
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function feedback( $data ) {
if ( is_wp_error( $data ) )
$string = $data->get_error_message();
else if ( is_array( $data ) )
return;
Method dirlist
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirlist($path = '.', $include_hidden = true, $recursive = false ) {
if ( $this->is_file($path) ) {
$limit_file = basename($path);
$path = dirname($path) . '/';
} else {
Method _data_prepare
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _data_prepare($mode=FTP_ASCII) {
if(!$this->_settype($mode)) return FALSE;
if($this->_passive) {
if(!$this->_exec("PASV", "pasv")) {
$this->_data_close();
Method WP_Filesystem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WP_Filesystem( $args = false, $context = false ) {
global $wp_filesystem;
require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');
Method update_option_new_admin_email
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_option_new_admin_email( $old_value, $value ) {
$email = get_option( 'admin_email' );
if ( $value == get_option( 'admin_email' ) || !is_email( $value ) )
return;
Method wp_ajax_save_attachment
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_save_attachment() {
if ( ! isset( $_REQUEST['id'] ) || ! isset( $_REQUEST['changes'] ) )
wp_send_json_error();
if ( ! $id = absint( $_REQUEST['id'] ) )