Showing 7,504 of 7,504 total issues
Method download_post_meta
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function download_post_meta() {
$total = (int) get_option( 'ljapi_total' );
$count = (int) get_option( 'ljapi_count' );
$lastsync = get_option( 'ljapi_lastsync' );
if ( !$lastsync ) {
Method list_theme_updates
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function list_theme_updates() {
$themes = get_theme_updates();
if ( empty($themes) )
return;
?>
Method process_conditionals
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process_conditionals() {
if(empty($this->params)) return;
if($_SERVER['REQUEST_METHOD'] == 'DELETE') return;
Method wp_newCategory
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_newCategory($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method twentyfourteen_the_attached_image
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentyfourteen_the_attached_image() {
$post = get_post();
/**
* Filter the default Twenty Fourteen attachment size.
*
Method akismet_auto_check_comment
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function akismet_auto_check_comment( $comment ) {
global $akismet_api_host, $akismet_api_port;
$comment['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
$comment['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
Method get_page_of_comment
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_page_of_comment( $comment_ID, $args = array() ) {
global $wpdb;
if ( !$comment = get_comment( $comment_ID ) )
return;
Method sanitize_term_field
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
if ( 'parent' == $field || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) {
$value = (int) $value;
if ( $value < 0 )
$value = 0;
Method CodecIDtoCommonName
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function CodecIDtoCommonName($codecid) {
// http://www.matroska.org/technical/specs/codecid/index.html
static $CodecIDlist = array();
if (empty($CodecIDlist)) {
$CodecIDlist['A_AAC'] = 'aac';
Method parseSTREAMINFO
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseSTREAMINFO($BlockData) {
$info = &$this->getid3->info;
$info['flac']['STREAMINFO'] = array();
$streaminfo = &$info['flac']['STREAMINFO'];
Method wp_post_mime_type_where
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_post_mime_type_where($post_mime_types) {
$where = '';
$wildcards = array('', '%', '%/%');
if ( is_string($post_mime_types) )
$post_mime_types = array_map('trim', explode(',', $post_mime_types));
Method image_downsize
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_downsize($id, $size = 'medium') {
if ( !wp_attachment_is_image($id) )
return false;
Method sanitize_bookmark_field
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_bookmark_field($field, $value, $bookmark_id, $context) {
$int_fields = array('link_id', 'link_rating');
if ( in_array($field, $int_fields) )
$value = (int) $value;
Method markup_header
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function markup_header( $header, $value, $translate ) {
switch ( $header ) {
case 'Name' :
if ( empty( $value ) )
$value = $this->get_stylesheet();
Method all_deps
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function all_deps( $handles, $recursion = false, $group = false ) {
if ( !$handles = (array) $handles )
return false;
foreach ( $handles as $handle ) {
Method update_site_option
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_site_option( $option, $value ) {
global $wpdb;
wp_protect_special_option( $option );
Method utf8_uri_encode
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function utf8_uri_encode( $utf8_string, $length = 0 ) {
$unicode = '';
$values = array();
$num_octets = 1;
$unicode_length = 0;
Method __get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __get( $offset ) {
switch ( $offset ) {
case 'name' :
case 'title' :
return $this->get('Name');
Method Execute
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void Execute(ICommandQueries commandQueries, IContingentViewQueries contingentViewQueries, MessageDispatcher dispatcher)
{
var commands = new List<ReorderParticipant>();
var provinces = new List<string> { "BC", "AB", "SK", "MB", "NO", "SO", "QC", "NL" };
Method Handle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(ParticipantGameCompleted e)
{
var divisionName = SimplifyDivision(e.Division);
var year = "2014";
if (Matches.ContainsKey(e.Id))