Showing 5,566 of 7,504 total issues
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 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 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 wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
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 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 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 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 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 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 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 upgrade
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade($plugin) {
$this->init();
$this->upgrade_strings();
Method wp_ajax_save_attachment_compat
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_save_attachment_compat() {
if ( ! isset( $_REQUEST['id'] ) )
wp_send_json_error();
if ( ! $id = absint( $_REQUEST['id'] ) )
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'] ) )
Method extra_tablenav
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extra_tablenav( $which ) {
global $cat;
?>
<div class="alignleft actions">
<?php
Method _post_states
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _post_states($post) {
$post_states = array();
if ( isset($_GET['post_status']) )
$post_status = $_GET['post_status'];
else
Method post_categories_meta_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function post_categories_meta_box($post) {
?>
<ul id="category-tabs">
<li class="tabs"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
<li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>