Showing 7,504 of 7,504 total issues
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 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 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 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 image_get_intermediate_size
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_get_intermediate_size($post_id, $size='thumbnail') {
if ( !is_array( $imagedata = wp_get_attachment_metadata( $post_id ) ) )
return false;
// get the best one for a specified set of dimensions
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();
Method _compareseq
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _compareseq ($xoff, $xlim, $yoff, $ylim)
{
/* Slide down the bottom initial diagonal. */
while ($xoff < $xlim && $yoff < $ylim
&& $this->xv[$xoff] == $this->yv[$yoff]) {
Method wp_list_pages
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_list_pages($args = '') {
$defaults = array(
'depth' => 0, 'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0, 'exclude' => '',
Method get_title
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_title()
{
if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
{
return $this->sanitize($return[0]['data'], SimplePie_Misc::atom_10_construct_type($return[0]['attribs']), $this->get_base($return[0]));
Method get_image_tags
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_image_tags($namespace, $tag)
{
$type = $this->get_type();
if ($type & SIMPLEPIE_TYPE_RSS_10)
{
Method get_language
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_language()
{
if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'language'))
{
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
Method get_title
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_title()
{
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
{
return $this->sanitize($return[0]['data'], SimplePie_Misc::atom_10_construct_type($return[0]['attribs']), $this->get_base($return[0]));
Method _wp_timezone_choice_usort_callback
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_timezone_choice_usort_callback( $a, $b ) {
// Don't use translated versions of Etc
if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) {
// Make the order of these more like the old dropdown
if ( 'GMT+' === substr( $a['city'], 0, 4 ) && 'GMT+' === substr( $b['city'], 0, 4 ) ) {
Method is_email
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function is_email( $email, $check_dns = false ) {
// Test for the minimum length the email can be
if ( strlen( $email ) < 3 ) {
return apply_filters( 'is_email', false, $email, 'email_too_short' );
}
Method do_action
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_action($tag, $arg = '') {
global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;
if ( is_array($wp_actions) )
$wp_actions[] = $tag;
Method discover
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function discover( $url ) {
$providers = array();
// Fetch URL content
if ( $html = wp_remote_retrieve_body( wp_remote_get( $url ) ) ) {
Method wpmu_signup_blog_notification
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = array() ) {
/**
* Filter whether to bypass the new site email notification.
*
* @since MU
Method wpmu_create_blog
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $site_id = 1 ) {
$defaults = array( 'public' => 0 );
$meta = wp_parse_args( $meta, $defaults );
$domain = preg_replace( '/\s+/', '', sanitize_user( $domain, true ) );
Method Send
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Send() {
$header = '';
$body = '';
$result = true;