Showing 5,566 of 7,504 total issues
File greymatter.php
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* GreyMatter Importer
*
* @package WordPress
Enumerable
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var Enumerable = {
each: function(iterator, context) {
var index = 0;
iterator = iterator.bind(context);
try {
wpImage
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var wpImage = {
preInit : function() {
// import colors stylesheet from parent
var win = tinyMCEPopup.getWin();
var styles = win.document.styleSheets;
Enumerable
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var Enumerable = {
each: function(iterator, context) {
var index = 0;
iterator = iterator.bind(context);
try {
Slider
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
Control.Slider = Class.create({
initialize: function(handle, track, options) {
var slider = this;
if (Object.isArray(handle)) {
Consider simplifying this complex logical expression. Open
Open
if (
isset( $parent_item->type ) &&
(
// ancestral post object
(
SimplePie_Source
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SimplePie_Source
{
var $item;
var $data = array();
Class ContingentViewQueries
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ContingentViewQueries :
IReadModel,
IContingentViewQueries,
ISubscribeTo<ContingentCreated>,
ISubscribeTo<ContingentAssignedToTournament>,
Function loadCSS
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadCSS : function( href, id, callback ) {
var link,
length;
Function _serializeObject
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Serializer._serializeObject = function (source, name) {
var circularReferenceCheck = "__aiCircularRefCheck";
var output = {};
if (!source) {
ApplicationInsights._InternalLogging.throwInternalUserActionable(0 /* CRITICAL */, "cannot serialize " + name + " because it is null or undefined");
Function refreshAdvancedAccessibility
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshAdvancedAccessibility : function() {
// Hide all links by default
$( '.menu-item-settings .field-move a' ).css( 'display', 'none' );
Function hoverIntent
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 100,
Function loadCSS
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadCSS : function( href, id, callback ) {
var link,
length;
Method _tag_row
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) {
$count = number_format_i18n( $tag->count );
$tagsel = ($taxonomy == 'post_tag' ? 'tag' : $taxonomy);
$count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug'>$count</a>" : $count;
Method wp_handle_upload
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_handle_upload( &$file, $overrides = false, $time = null ) {
// The default error handler.
if (! function_exists( 'wp_handle_upload_error' ) ) {
function wp_handle_upload_error( &$file, $message ) {
return array( 'error'=>$message );
Method delete_plugins
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function delete_plugins($plugins, $redirect = '' ) {
global $wp_filesystem;
if( empty($plugins) )
return false;
Method parse_comment
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse_comment( $comment ) {
global $wpdb;
// Get the top-level attributes
preg_match( '|<comment([^>]+)>|i', $comment, $attribs );
Method search_theme_directories
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function search_theme_directories() {
global $wp_theme_directories, $wp_broken_themes;
if ( empty( $wp_theme_directories ) )
return false;
Method mw_newMediaObject
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mw_newMediaObject($args) {
global $wpdb;
$blog_ID = (int) $args[0];
$username = $this->escape($args[1]);
Method wp_update_term
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_update_term( $term_id, $taxonomy, $args = array() ) {
global $wpdb;
if ( ! is_taxonomy($taxonomy) )
return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));