Showing 5,566 of 7,504 total issues
Method twentythirteen_custom_header_setup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentythirteen_custom_header_setup() {
$args = array(
// Text color and image (empty to use none).
'default-text-color' => '220e10',
'default-image' => '%s/images/headers/circle.png',
Method twentytwelve_entry_meta
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentytwelve_entry_meta() {
// Translators: used between list items, there is a space after the comma.
$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
// Translators: used between list items, there is a space after the comma.
Method _prepare_comment
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _prepare_comment( $comment ) {
// Format page date.
$comment_date = $this->_convert_date( $comment->comment_date );
$comment_date_gmt = $this->_convert_date_gmt( $comment->comment_date_gmt, $comment->comment_date );
Method do_trackbacks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_trackbacks($post_id) {
global $wpdb;
$post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id) );
$to_ping = get_to_ping($post_id);
Method wp_deleteTerm
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_deleteTerm( $args ) {
if ( ! $this->minimum_args( $args, 5 ) )
return $this->error;
$this->escape( $args );
Method wp_unique_term_slug
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_unique_term_slug($slug, $term) {
global $wpdb;
// If the taxonomy supports hierarchy and the term has a parent, make the slug unique
// by incorporating parent slugs.
Method blogger_newPost
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_newPost($args) {
$this->escape($args);
$blog_ID = (int) $args[1]; /* though we don't use it yet */
Method APICPictureTypeLookup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function APICPictureTypeLookup($index, $returnarray=false) {
static $APICPictureTypeLookup = array(
0x00 => 'Other',
0x01 => '32x32 pixels \'file icon\' (PNG only)',
0x02 => 'Other file icon',
Method HashPassword
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HashPassword($password)
{
$random = '';
if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) {
Method WP_SimplePie_File
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WP_SimplePie_File($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
$this->url = $url;
$this->timeout = $timeout;
$this->redirects = $redirects;
$this->headers = $headers;
Method multi_resize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function multi_resize( $sizes ) {
$metadata = array();
$orig_size = $this->size;
foreach ( $sizes as $size => $size_data ) {
Method get_category_by_path
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_category_by_path( $category_path, $full_match = true, $output = OBJECT ) {
$category_path = rawurlencode( urldecode( $category_path ) );
$category_path = str_replace( '%2F', '/', $category_path );
$category_path = str_replace( '%20', ' ', $category_path );
$category_paths = '/' . trim( $category_path, '/' );
Method get
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get ($msgNum) {
// Retrieve the specified msg number. Returns an array
// where each line of the msg is an array element.
if(!isset($this->FP))
Method get_user_by
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_user_by($field, $value) {
global $wpdb;
switch ($field) {
case 'id':
Method set_host
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function set_host($host)
{
if ($host === null || $host === '')
{
$this->host = null;
Method calculateType
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateType() {
if ($this->data === true || $this->data === false) {
return 'boolean';
}
if (is_integer($this->data)) {
Method delete_option
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function delete_option( $option ) {
global $wpdb;
$option = trim( $option );
if ( empty( $option ) )
Method add_option
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_option( $name, $value = '', $deprecated = '', $autoload = 'yes' ) {
global $wpdb;
wp_protect_special_option( $name );
$safe_name = esc_sql( $name );
Method is_blog_installed
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function is_blog_installed() {
global $wpdb;
// Check cache first. If options table goes away and we have true cached, oh well.
if ( wp_cache_get( 'is_blog_installed' ) )
Method parse
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse() {
// first remove the XML declaration
// this method avoids the RAM usage of preg_replace on very large messages
$header = preg_replace( '/<\?xml.*?\?'.'>/', '', substr( $this->message, 0, 100 ), 1 );
$this->message = substr_replace($this->message, $header, 0, 100);