Showing 5,566 of 7,504 total issues
Method wp_getRevisions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getRevisions( $args ) {
if ( ! $this->minimum_args( $args, 4 ) )
return $this->error;
$this->escape( $args );
Method ASF_WMpicture
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ASF_WMpicture(&$data) {
//typedef struct _WMPicture{
// LPWSTR pwszMIMEType;
// BYTE bPictureType;
// LPWSTR pwszDescription;
Method multi_resize
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function multi_resize( $sizes ) {
$metadata = array();
$orig_size = $this->size;
$orig_image = $this->image->getImage();
Method wp_register_widget_control
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
global $wp_registered_widget_controls, $wp_registered_widget_updates, $wp_registered_widgets, $_wp_deprecated_widgets_callbacks;
$id = strtolower($id);
$id_base = _get_widget_id_base($id);
Method get_element
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function get_element($realname, $string)
{
$return = array();
$name = preg_quote($realname, '/');
if (preg_match_all("/<($name)" . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . "(>(.*)<\/$name>|(\/)?>)/siU", $string, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE))
Method get_updated_date
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_updated_date($date_format = 'j F Y, g:i a')
{
if (!isset($this->data['updated']))
{
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'updated'))
Method error
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function error($message, $level, $file, $line)
{
if ((ini_get('error_reporting') & $level) > 0)
{
switch ($level)
Method __construct
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __construct($dbuser, $dbpassword, $dbname, $dbhost) {
register_shutdown_function(array(&$this, "__destruct"));
if ( WP_DEBUG )
$this->show_errors();
Method SimplePie_Enclosure
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SimplePie_Enclosure($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 get_element
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_element($realname, $string)
{
$return = array();
$name = preg_quote($realname, '/');
if (preg_match_all("/<($name)" . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . "(>(.*)<\/$name>|(\/)?>)/siU", $string, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE))
Method wp_fix_server_vars
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_fix_server_vars() {
global $PHP_SELF;
$default_server_values = array(
'SERVER_SOFTWARE' => '',
Method add_node
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add_node( $args ) {
// Shim for old method signature: add_node( $parent_id, $menu_obj, $args )
if ( func_num_args() >= 3 && is_string( func_get_arg(0) ) )
$args = array_merge( array( 'parent' => func_get_arg(0) ), func_get_arg(2) );
Method get_option
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_option( $setting, $default = false ) {
global $wpdb;
// Allow plugins to short-circuit options.
$pre = apply_filters( 'pre_option_' . $setting, false );
Method wp_specialchars_decode
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_specialchars_decode( $string, $quote_style = ENT_NOQUOTES ) {
$string = (string) $string;
if ( 0 === strlen( $string ) ) {
return '';
Method serve
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function serve($data = false) {
if (!$data) {
global $HTTP_RAW_POST_DATA;
if (!$HTTP_RAW_POST_DATA) {
header( 'Content-Type: text/plain' );
Method wpmu_welcome_notification
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
$current_site = get_current_site();
/**
* Filter whether to bypass the welcome email after site activation.
Method wp_link_query
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function wp_link_query( $args = array() ) {
$pts = get_post_types( array( 'public' => true ), 'objects' );
$pt_names = array_keys( $pts );
$query = array(
Method Handle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(TravelPlansChanged e)
{
var tournament = GetTournamentFromContingentId(e.Id);
var travelPlans = e.TravelPlans.Select(travelPlan => new TravelPlan
Method Handle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(TeamGameCompleted e)
{
var isPOASingles = e.IsPOA && e.Division.Contains("Single");
Guid actualTeamId = isPOASingles ? Singles[e.TeamId] : e.TeamId;
Function $RootScopeDecorator
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
var $rootScopePrototype = Object.getPrototypeOf($delegate);
$rootScopePrototype.$countChildScopes = countChildScopes;