Showing 5,566 of 7,504 total issues
Method list_meta
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function list_meta( $meta ) {
// Exit if no meta
if ( ! $meta ) {
echo '
<table id="list-table" style="display: none;">
Method _list_meta_row
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _list_meta_row( $entry, &$count ) {
static $update_nonce = false;
if ( !$update_nonce )
$update_nonce = wp_create_nonce( 'add-meta' );
Method after
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function after() {
$this->decrement_update_count( 'theme' );
$update_actions = array();
if ( ! empty( $this->upgrader->result['destination_name'] ) && $theme_info = $this->upgrader->theme_info() ) {
Method get
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get($remotefile, $localfile=NULL, $rest=0) {
if(is_null($localfile)) $localfile=$remotefile;
if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
$fp = @fopen($localfile, "w");
if (!$fp) {
Method wp_get_nav_menu_to_edit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_nav_menu_to_edit( $menu_id = 0 ) {
$menu = wp_get_nav_menu_object( $menu_id );
// If the menu exists, get its items.
if ( is_nav_menu( $menu ) ) {
Method wp_ajax_get_comments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_get_comments( $action ) {
global $wp_list_table, $post_id;
if ( empty( $action ) )
$action = 'get-comments';
Method _page_rows
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {
if ( ! isset( $children_pages[$parent] ) )
return;
Method wp_ajax_menu_get_metabox
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_menu_get_metabox() {
if ( ! current_user_can( 'edit_theme_options' ) )
wp_die( -1 );
require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
Method load_image_to_edit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load_image_to_edit($post_id, $mime_type, $size = 'full') {
$filepath = get_attached_file($post_id);
if ( $filepath && file_exists($filepath) ) {
if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) )
Method put_post
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function put_post($postID) {
// checked for valid content-types (atom+xml)
// quick check and exit
$this->get_accepted_content_type($this->atom_content_types);
Method submit_spam_comment
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function submit_spam_comment( $comment_id ) {
global $wpdb, $current_user, $current_site;
$comment_id = (int) $comment_id;
Method get_comment
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &get_comment(&$comment, $output = OBJECT) {
global $wpdb;
$null = null;
if ( empty($comment) ) {
Method CleanUp
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function CleanUp() {
// remove possible empty keys
$AVpossibleEmptyKeys = array('dataformat', 'bits_per_sample', 'encoder_options', 'streams', 'bitrate');
foreach ($AVpossibleEmptyKeys as $dummy => $key) {
Method ParseRIFFdata
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ParseRIFFdata(&$RIFFdata) {
$info = &$this->getid3->info;
if ($RIFFdata) {
$tempfile = tempnam(GETID3_TEMP_DIR, 'getID3');
$fp_temp = fopen($tempfile, 'wb');
Method crypt_private
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function crypt_private($password, $setting)
{
$output = '*0';
if (substr($setting, 0, 2) == $output)
$output = '*1';
Method split_ns
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function split_ns($string)
{
static $cache = array();
if (!isset($cache[$string]))
{
Method chunked
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function chunked()
{
if (!preg_match('/^([0-9a-f]+)[^\r\n]*\r\n/i', trim($this->body)))
{
$this->state = 'emit';
Method __construct
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($link = null, $type = null, $length = null, $javascript = null, $bitrate = null, $captions = null, $categories = null, $channels = null, $copyright = null, $credits = null, $description = null, $duration = null, $expression = null, $framerate = null, $hashes = null, $height = null, $keywords = null, $lang = null, $medium = null, $player = null, $ratings = null, $restrictions = null, $samplingrate = null, $thumbnails = null, $title = null, $width = null)
{
$this->bitrate = $bitrate;
$this->captions = $captions;
$this->categories = $categories;
Method get_title
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_title()
{
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
{
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
Method widget
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function widget($args, $instance) {
$cache = wp_cache_get('widget_recent_posts', 'widget');
if ( !is_array($cache) )
$cache = array();