Showing 5,566 of 7,504 total issues
Method display_setup_form
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function display_setup_form( $error = null ) {
// Ensure that Blogs appear in search engines by default
$blog_public = 1;
if ( isset($_POST) && !empty($_POST) ) {
$blog_public = isset($_POST['blog_public']);
Method dispatch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dispatch () {
if ( empty( $_GET['step'] ) ) {
$step = 0;
} else {
$step = (int) $_GET['step'];
Method get_file
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_file($postID) {
// check for not found
global $entry;
$this->set_current_entry($postID);
Method wp_getPages
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getPages($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method wp_insert_comment
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_insert_comment($commentdata) {
global $wpdb;
extract(stripslashes_deep($commentdata), EXTR_SKIP);
if ( ! isset($comment_author_IP) )
Method get_the_taxonomies
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_the_taxonomies($post = 0) {
if ( is_int($post) )
$post =& get_post($post);
elseif ( !is_object($post) )
$post =& $GLOBALS['post'];
Method APEtagItemIsUTF8Lookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function APEtagItemIsUTF8Lookup($itemkey) {
static $APEtagItemIsUTF8Lookup = array(
'title',
'subtitle',
'artist',
Method QuicktimeStoreFrontCodeLookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function QuicktimeStoreFrontCodeLookup($sfid) {
static $QuicktimeStoreFrontCodeLookup = array();
if (empty($QuicktimeStoreFrontCodeLookup)) {
$QuicktimeStoreFrontCodeLookup[143460] = 'Australia';
$QuicktimeStoreFrontCodeLookup[143445] = 'Austria';
Method applicationIDLookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function applicationIDLookup($applicationid) {
// http://flac.sourceforge.net/id.html
static $lookup = array(
0x41544348 => 'FlacFile', // "ATCH"
0x42534F4C => 'beSolo', // "BSOL"
Method fix_protocol
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function fix_protocol($url, $http = 1)
{
$url = SimplePie_Misc::normalize_url($url);
$parsed = SimplePie_Misc::parse_url($url);
if ($parsed['scheme'] !== '' && $parsed['scheme'] !== 'http' && $parsed['scheme'] !== 'https')
Method output_javascript
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function output_javascript()
{
if (function_exists('ob_gzhandler'))
{
ob_start('ob_gzhandler');
Method MagpieRSS
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MagpieRSS ($source) {
# if PHP xml isn't compiled in, die
#
if ( !function_exists('xml_parser_create') )
Method _wp_auto_add_pages_to_menu
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_auto_add_pages_to_menu( $new_status, $old_status, $post ) {
if ( 'publish' != $new_status || 'publish' == $old_status || 'page' != $post->post_type )
return;
if ( ! empty( $post->post_parent ) )
return;
Method form
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form( $instance ) {
//Defaults
$instance = wp_parse_args( (array) $instance, array( 'images' => true, 'name' => true, 'description' => false, 'rating' => false, 'category' => false ) );
$link_cats = get_terms( 'link_category');
Method _response_to_rss
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _response_to_rss ($resp) {
$rss = new MagpieRSS( $resp->results );
// if RSS parsed successfully
if ( $rss && (!isset($rss->ERROR) || !$rss->ERROR) ) {
Method get_post_class
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_post_class( $class = '', $post_id = null ) {
$post = get_post($post_id);
$classes = array();
Method wp_ajax_update_widget
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function wp_ajax_update_widget() {
if ( ! is_user_logged_in() ) {
wp_die( 0 );
}
Method fix_protocol
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fix_protocol($url, $http = 1)
{
$url = SimplePie_Misc::normalize_url($url);
$parsed = SimplePie_Misc::parse_url($url);
if ($parsed['scheme'] !== '' && $parsed['scheme'] !== 'http' && $parsed['scheme'] !== 'https')
Method replace_urls
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function replace_urls($data, $tag, $attributes)
{
if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags))
{
$elements = SimplePie_Misc::get_element($tag, $data);
Method get_comment_link
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_comment_link( $comment = null, $args = array() ) {
global $wp_rewrite, $in_comment_loop;
$comment = get_comment($comment);