Showing 5,566 of 7,504 total issues
Method display_start_page
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function display_start_page() {
if ( isset( $_GET['action'] ) ) {
if ( $_GET['action'] == 'delete-key' ) {
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
delete_option( 'wordpress_api_key' );
Method get_featured_post_ids
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function get_featured_post_ids() {
// Return array of cached results if they exist.
$featured_ids = get_transient( 'featured_content_ids' );
if ( ! empty( $featured_ids ) ) {
return array_map( 'absint', (array) $featured_ids );
Method blogger_newPost
has 28 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 wp_delete_comment
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_delete_comment($comment_id) {
global $wpdb;
if (!$comment = get_comment($comment_id))
return false;
Method wp_getUsersBlogs
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getUsersBlogs( $args ) {
// If this isn't on WPMU then just use blogger_getUsersBlogs
if ( !is_multisite() ) {
array_unshift( $args, 1 );
return $this->blogger_getUsersBlogs( $args );
Method get_term_link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_term_link( $term, $taxonomy ) {
global $wp_rewrite;
if ( !is_object($term) ) {
if ( is_int($term) ) {
Method RecursiveFrameScanning
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) {
$info = &$this->getid3->info;
$firstframetestarray = array('error'=>'', 'warning'=>'', 'avdataend'=>$info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
$this->decodeMPEGaudioHeader($offset, $firstframetestarray, false);
Method GenerateID3v1Tag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function GenerateID3v1Tag($title, $artist, $album, $year, $genreid, $comment, $track='') {
$ID3v1Tag = 'TAG';
$ID3v1Tag .= str_pad(trim(substr($title, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
$ID3v1Tag .= str_pad(trim(substr($artist, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
$ID3v1Tag .= str_pad(trim(substr($album, 0, 30)), 30, "\x00", STR_PAD_RIGHT);
Method blogger_editPost
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_editPost($args) {
$this->escape($args);
$post_ID = (int) $args[1];
Method value
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function value()
{
if ($this->is_linear_whitespace())
{
$this->linear_whitespace();
Method test
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function test( $args = array() ) {
// First, test Imagick's extension and classes.
if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick' ) || ! class_exists( 'ImagickPixel' ) )
return false;
Method wp_kses_split2
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_kses_split2($string, $allowed_html, $allowed_protocols) {
$string = wp_kses_stripslashes($string);
if (substr($string, 0, 1) != '<')
return '>';
Method standalone_value
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function standalone_value()
{
if ($standalone = $this->get_value())
{
switch ($standalone)
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __construct( $data ) {
if ( is_string( $data ) ) {
// Assume it's a header string direct from a previous request
$pairs = explode( ';', $data );
Method get_results
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_results($query = null, $output = OBJECT) {
$this->func_call = "\$db->get_results(\"$query\", $output)";
if ( $query )
$this->query($query);
Method _getTransport
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &_getTransport( $args = array() ) {
static $working_transport, $blocking_transport, $nonblocking_transport;
if ( is_null($working_transport) ) {
if ( true === WP_Http_ExtHttp::test($args) ) {
Method get_bookmark
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_bookmark($bookmark, $output = OBJECT, $filter = 'raw') {
global $wpdb;
if ( empty($bookmark) ) {
if ( isset($GLOBALS['link']) )
Method connect
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connect ($server, $port = 110) {
// Opens a socket to the specified server. Unless overridden,
// port defaults to 110. Returns true on success, false on fail
// If MAILSERVER is set, override $server with it's value
Method start_el
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = '';
Method ms_subdomain_constants
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ms_subdomain_constants() {
static $error = null;
static $error_warn = false;
if ( false === $error )