Showing 5,566 of 7,504 total issues
Method __construct
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
// Check for PHP version
$required_php_version = '5.0.5';
if (version_compare(PHP_VERSION, $required_php_version, '<')) {
Method wp_get_sidebars_widgets
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_sidebars_widgets($deprecated = true) {
global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets;
// If loading from front page, consult $_wp_sidebars_widgets rather than options
// to see if wp_convert_widget_settings() has made manipulations in memory.
Method wp_widget_rss_output
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_widget_rss_output( $rss, $args = array() ) {
if ( is_string( $rss ) ) {
$rss = fetch_feed($rss);
} elseif ( is_array($rss) && isset($rss['url']) ) {
$args = $rss;
Method smilies_init
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smilies_init() {
global $wpsmiliestrans, $wp_smiliessearch;
// don't bother setting up smilies if they are disabled
if ( !get_option( 'use_smilies' ) )
Function $IntervalProvider
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$IntervalProvider = function() {
this.$get = ['$browser', '$rootScope', '$q', '$$q',
function($browser, $rootScope, $q, $$q) {
var repeatFns = [],
nextRepeatId = 0,
Function load
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load : function( source, selector, config ) {
var self = this,
o = this._options;
Function add_postbox_toggles
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add_postbox_toggles : function(page,args) {
this.init(page,args);
$('.postbox h3, .postbox .handlediv').click( function() {
var p = $(this).parent('.postbox'), id = p.attr('id');
p.toggleClass('closed');
Function onSubmitForm
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onSubmitForm() {
function waitLoad(imgElm) {
function selectImage() {
imgElm.onload = imgElm.onerror = null;
editor.selection.select(imgElm);
Function load
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load : function( source, selector, config ) {
var self = this,
o = this._options;
Method get_type
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_type()
{
if (!isset($this->data['type']))
{
$this->data['type'] = SIMPLEPIE_TYPE_ALL;
Method entity
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function entity()
{
switch ($this->consume())
{
case "\x09":
prototype
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
Cropper.Img.prototype={initialize:function(_7,_8){
this.options=Object.extend({ratioDim:{x:0,y:0},minWidth:0,minHeight:0,displayOnInit:false,onEndCrop:Prototype.emptyFunction,captureKeys:true},_8||{});
if(this.options.minWidth>0&&this.options.minHeight>0){
this.options.ratioDim.x=this.options.minWidth;
this.options.ratioDim.y=this.options.minHeight;
getid3_id3v2
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class getid3_id3v2 extends getid3_handler
{
public $StartingOffset = 0;
public function Analyze() {
getid3_mp3
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class getid3_mp3 extends getid3_handler
{
public $allow_bruteforce = false; // forces getID3() to scan the file byte-by-byte and log all the valid audio frame headers - extremely slow, unrecommended, but may provide data from otherwise-unusuable files
Function UrlMatcher
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UrlMatcher(pattern, config, parentMatcher) {
config = extend({ params: {} }, isObject(config) ? config : {});
// Find all placeholders and create a compiled pattern, using either classic or curly syntax:
// '*' name
Function tabHandler
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tabHandler(e) {
var x, el, v, i;
if (e.keyCode !== 9 || e.ctrlKey || e.altKey || e.metaKey) {
return;
Method type_url_form_image
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function type_url_form_image() {
if ( !apply_filters( 'disable_captions', '' ) ) {
$caption = '
<tr>
Method _wp_ajax_add_hierarchical_term
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_ajax_add_hierarchical_term() {
$action = $_POST['action'];
$taxonomy = get_taxonomy(substr($action, 4));
check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name );
if ( !current_user_can( $taxonomy->cap->edit_terms ) )
Method wp_get_object_terms
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
global $wpdb;
if ( !is_array($taxonomies) )
$taxonomies = array($taxonomies);
Method request
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function request( $url, $args = array() ) {
global $wp_version;
$defaults = array(
'method' => 'GET',