Showing 5,566 of 7,504 total issues
Method start_element
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start_element($parser, $name, $attrs) {
$tag = array_pop(split(":", $name));
array_unshift($this->ns_contexts, $this->ns_decls);
Method press_it
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function press_it() {
// define some basic variables
$quick['post_status'] = 'draft'; // set as draft first
$quick['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null;
$quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;
Method handle_upload
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handle_upload() {
if ( empty($_FILES) )
return;
Method check_column
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
global $wpdb, $debug;
$diffs = 0;
$results = $wpdb->get_results("DESC $table_name");
Method blogger_editPost
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_editPost($args) {
$this->escape($args);
$post_ID = (int) $args[1];
Method display_configuration_page
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function display_configuration_page() {
$api_key = Akismet::get_api_key();
$akismet_user = self::get_akismet_user( $api_key );
$stat_totals = self::get_stats( $api_key );
Method customize_register
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function customize_register( $wp_customize ) {
$wp_customize->add_section( 'featured_content', array(
'title' => __( 'Featured Content', 'twentyfourteen' ),
'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
Method hello_dolly_get_lyric
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hello_dolly_get_lyric() {
/** These are the lyrics to Hello Dolly */
$lyrics = "Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
Method submit_nonspam_comment
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function submit_nonspam_comment( $comment_id ) {
global $wpdb, $current_user, $current_site;
$comment_id = (int) $comment_id;
Method twentythirteen_the_attached_image
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentythirteen_the_attached_image() {
/**
* Filter the image attachment size to use.
*
* @since Twenty thirteen 1.0
Method twentytwelve_admin_header_style
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentytwelve_admin_header_style() {
?>
<style type="text/css" id="twentytwelve-admin-header-css">
.appearance_page_custom-header #headimg {
border: none;
Method wp_editPost
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_editPost( $args ) {
if ( ! $this->minimum_args( $args, 5 ) )
return $this->error;
$this->escape( $args );
Method frameSizeLookup
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function frameSizeLookup($frmsizecod, $fscod) {
$padding = (bool) ($frmsizecod % 2);
$framesizeid = floor($frmsizecod / 2);
static $frameSizeLookup = array();
Method wp_getPageList
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getPageList($args) {
global $wpdb;
$this->escape($args);
Method get_iri
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_iri()
{
if (!$this->is_valid())
{
return false;
Method change_encoding
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function change_encoding($data, $input, $output)
{
$input = SimplePie_Misc::encoding($input);
$output = SimplePie_Misc::encoding($output);
Method processHeaders
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processHeaders($headers) {
// split headers, one per array element
if ( is_string($headers) ) {
// tolerate line terminator: CRLF = LF (RFC 2616 19.3)
$headers = str_replace("\r\n", "\n", $headers);
Method parse_w3cdtf
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse_w3cdtf ( $date_str ) {
# regex to match wc3dtf
$pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
Method _save
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _save( $image, $filename = null, $mime_type = null ) {
list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type );
if ( ! $filename )
$filename = $this->generate_filename( null, null, $extension );
Method top
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function top ($msgNum, $numLines = "0") {
// Gets the header and first $numLines of the msg body
// returns data in an array with each returned line being
// an array element. If $numLines is empty, returns
// only the header information, and none of the body.