Showing 7,504 of 7,504 total issues
Function initSortable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initSortable: function() {
var collection = this.collection;
if ( ! this.options.sortable || ! $.fn.sortable ) {
return;
Function init
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
inputs.wrap = $('#wp-link-wrap');
inputs.dialog = $( '#wp-link' );
inputs.backdrop = $( '#wp-link-backdrop' );
inputs.submit = $( '#wp-link-submit' );
Function draw
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(point) {
var pos = Position.cumulativeOffset(this.element);
if(this.options.ghosting) {
var r = Position.realOffset(this.element);
pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
Function selector
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selector: function(instance) {
var ret = []; // Beginning matches
var partial = []; // Inside matches
var entry = instance.getToken();
var count = 0;
Function calculateMovingAverage
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SWFUpload.speed.calculateMovingAverage = function (history) {
var vals = [], size, sum = 0.0, mean = 0.0, varianceTemp = 0.0, variance = 0.0, standardDev = 0.0;
var i;
var mSum = 0, mCount = 0;
Method get_sample_permalink
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_sample_permalink($id, $title = null, $name = null) {
$post = &get_post($id);
if (!$post->ID) {
return array('', '');
}
Method after
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function after() {
$this->decrement_update_count( 'theme' );
$update_actions = array();
if ( ! empty( $this->upgrader->result['destination_name'] ) && $theme_info = $this->upgrader->theme_info() ) {
Method wp_get_nav_menu_to_edit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_nav_menu_to_edit( $menu_id = 0 ) {
$menu = wp_get_nav_menu_object( $menu_id );
// If the menu exists, get its items.
if ( is_nav_menu( $menu ) ) {
Method get
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get($remotefile, $localfile=NULL, $rest=0) {
if(is_null($localfile)) $localfile=$remotefile;
if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
$fp = @fopen($localfile, "w");
if (!$fp) {
Method _list_meta_row
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _list_meta_row( $entry, &$count ) {
static $update_nonce = false;
if ( !$update_nonce )
$update_nonce = wp_create_nonce( 'add-meta' );
Method wp_ajax_menu_get_metabox
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_menu_get_metabox() {
if ( ! current_user_can( 'edit_theme_options' ) )
wp_die( -1 );
require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
Method wp_ajax_get_comments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_get_comments( $action ) {
global $wp_list_table, $post_id;
if ( empty( $action ) )
$action = 'get-comments';
Method list_meta
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function list_meta( $meta ) {
// Exit if no meta
if ( ! $meta ) {
echo '
<table id="list-table" style="display: none;">
Method _page_rows
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {
if ( ! isset( $children_pages[$parent] ) )
return;
Method load_image_to_edit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load_image_to_edit($post_id, $mime_type, $size = 'full') {
$filepath = get_attached_file($post_id);
if ( $filepath && file_exists($filepath) ) {
if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) )
Method put_post
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function put_post($postID) {
// checked for valid content-types (atom+xml)
// quick check and exit
$this->get_accepted_content_type($this->atom_content_types);
Method get_comment
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &get_comment(&$comment, $output = OBJECT) {
global $wpdb;
$null = null;
if ( empty($comment) ) {
Method submit_spam_comment
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function submit_spam_comment( $comment_id ) {
global $wpdb, $current_user, $current_site;
$comment_id = (int) $comment_id;
Method CleanUp
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function CleanUp() {
// remove possible empty keys
$AVpossibleEmptyKeys = array('dataformat', 'bits_per_sample', 'encoder_options', 'streams', 'bitrate');
foreach ($AVpossibleEmptyKeys as $dummy => $key) {
Method ParseRIFFdata
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ParseRIFFdata(&$RIFFdata) {
$info = &$this->getid3->info;
if ($RIFFdata) {
$tempfile = tempnam(GETID3_TEMP_DIR, 'getID3');
$fp_temp = fopen($tempfile, 'wb');