Showing 5,566 of 7,504 total issues
Method openfile
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function openfile($filename) {
try {
if (!empty($this->startup_error)) {
throw new getid3_exception($this->startup_error);
}
Method MPEGaudioHeaderValid
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function MPEGaudioHeaderValid($rawarray, $echoerrors=false, $allowBitrate15=false) {
if (($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
return false;
}
Method date_rfc2822
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function date_rfc2822($date)
{
static $pcre;
if (!$pcre)
{
Method wp_update_themes
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_update_themes( ) {
global $wp_version;
if( defined( 'WP_INSTALLING' ) )
return false;
Method enqueue_scripts
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function enqueue_scripts() {
wp_enqueue_style( 'customize-widgets' );
wp_enqueue_script( 'customize-widgets' );
/** This action is documented in wp-admin/admin-header.php */
Method wp_notify_postauthor
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_notify_postauthor($comment_id, $comment_type='') {
$comment = get_comment($comment_id);
$post = get_post($comment->comment_post_ID);
$user = get_userdata( $post->post_author );
$current_user = wp_get_current_user();
Method wp_salt
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_salt($scheme = 'auth') {
global $wp_default_secret_key;
$secret_key = '';
if ( defined('SECRET_KEY') && ('' != SECRET_KEY) && ( $wp_default_secret_key != SECRET_KEY) )
$secret_key = SECRET_KEY;
Method date_rfc2822
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function date_rfc2822($date)
{
static $pcre;
if (!$pcre)
{
Method wpmu_validate_user_signup
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_validate_user_signup($user_name, $user_email) {
global $wpdb;
$errors = new WP_Error();
Method wp_link_dialog
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function wp_link_dialog() {
$search_panel_visible = '1' == get_user_setting( 'wplink', '0' ) ? ' search-panel-visible' : '';
// display: none is required here, see #WP27605
?>
Method get_links
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
$show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
$order = 'ASC';
Method wpmu_validate_blog_signup
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
global $wpdb, $domain;
$current_site = get_current_site();
$base = $current_site->path;
File class-wp-image-editor-imagick.php
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* WordPress Imagick Image Editor
*
* @package WordPress
Function $StateRefDirective
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $StateRefDirective($state, $timeout) {
var allowedOptions = ['location', 'inherit', 'reload', 'absolute'];
return {
restrict: 'A',
Function edit
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
edit : function(id) {
var t = this, fields, editRow, rowData, cats, status, pageOpt, f, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
t.revert();
if ( typeof(id) == 'object' )
Method wpmu_delete_blog
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_delete_blog( $blog_id, $drop = false ) {
global $wpdb;
$switch = false;
if ( get_current_blog_id() != $blog_id ) {
Method parselisting
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parselisting($line) {
$is_windows = ($this->OS_remote == FTP_OS_Windows);
if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/",$line,$lucifer)) {
$b = array();
if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix
Method pagination
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pagination( $which ) {
if ( empty( $this->_pagination_args ) )
return;
extract( $this->_pagination_args, EXTR_SKIP );
Method get_attachment_fields_to_edit
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_attachment_fields_to_edit($post, $errors = null) {
if ( is_int($post) )
$post =& get_post($post);
if ( is_array($post) )
$post = (object) $post;
Method wp_dashboard_incoming_links_output
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_dashboard_incoming_links_output() {
$widgets = get_option( 'dashboard_widget_options' );
@extract( @$widgets['dashboard_incoming_links'], EXTR_SKIP );
$rss = fetch_feed( $url );