Showing 5,566 of 7,504 total issues
Method wp_get_associated_nav_menu_items
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_associated_nav_menu_items( $object_id = 0, $object_type = 'post_type', $taxonomy = '' ) {
$object_id = (int) $object_id;
$menu_item_ids = array();
$query = new WP_Query;
Method get_attachment_icon
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) {
$id = (int) $id;
if ( !$post = & get_post($id) )
return false;
Method wp_text_diff
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_text_diff( $left_string, $right_string, $args = null ) {
$defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' );
$args = wp_parse_args( $args, $defaults );
if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) )
Method is_subclass_of
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function is_subclass_of($class1, $class2)
{
if (func_num_args() !== 2)
{
trigger_error('Wrong parameter count for SimplePie_Misc::is_subclass_of()', E_USER_WARNING);
Method get_feed_tags
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_feed_tags($namespace, $tag)
{
$type = $this->get_type();
if ($type & SIMPLEPIE_TYPE_ATOM_10)
{
Method change_encoding
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function change_encoding($data, $input, $output)
{
$input = SimplePie_Misc::encoding($input);
$output = SimplePie_Misc::encoding($output);
Method date_i18n
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
global $wp_locale;
$i = $unixtimestamp;
// Sanity check for PHP 5.1.0-
if ( false === $i || intval($i) < 0 ) {
Method add_site_option
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_site_option( $option, $value ) {
global $wpdb;
wp_protect_special_option( $option );
Method get_date_permastruct
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_date_permastruct() {
if (isset($this->date_structure)) {
return $this->date_structure;
}
Method get_site_option
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_site_option( $option, $default = false, $use_cache = true ) {
global $wpdb;
/**
* Filter an existing site option before it is retrieved.
Method wp_maintenance
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_maintenance() {
if ( !file_exists( ABSPATH . '.maintenance' ) || defined( 'WP_INSTALLING' ) )
return;
global $upgrading;
Method IXR_IntrospectionServer
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function IXR_IntrospectionServer() {
$this->setCallbacks();
$this->setCapabilities();
$this->capabilities['introspection'] = array(
'specUrl' => 'http://xmlrpc.usefulinc.com/doc/reserved.html',
Method get_output_format
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_output_format( $filename = null, $mime_type = null ) {
$new_ext = $file_ext = null;
$file_mime = null;
// By default, assume specified type takes priority
Method Handle
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public IEnumerable Handle(Func<Guid, ParticipantAggregate> al, UpdateParticipantProfile command)
{
var agg = al(command.Id);
yield return new ParticipantProfileChanged
Method CanCreateParticipant
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public void CanCreateParticipant()
{
Test(
Given(),
Function queue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var queue = api.queue(function (){
flash.uploadInProgress = true;
flash.cmd(flashId, 'upload', {
url: _getUrl(options.url.replace(/([a-z]+)=(\?)&?/i, ''))
, data: data
Function $ViewDirectiveFill
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate) {
return {
restrict: 'ECA',
priority: -400,
compile: function (tElement) {
Function galleria
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.galleria = function( options ) {
var selector = this.selector;
// try domReady if element not found
Function User
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function User(accountId) {
var cookie = ApplicationInsights.Util.getCookie(User.userCookieName);
if (cookie) {
var params = cookie.split(User.cookieSeparator);
if (params.length > 0) {
Function modalDivisionsController
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var modalDivisionsController = function ($scope, $modalInstance, $http, title, divisions) {
$scope.model = {};
$scope.model.title = title;
$scope.model.divisions = [