Showing 5,566 of 7,504 total issues
Method wp_editComment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_editComment($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method wp_newTerm
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_newTerm( $args ) {
if ( ! $this->minimum_args( $args, 4 ) )
return $this->error;
$this->escape( $args );
Method CalculateCompressionRatioVideo
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function CalculateCompressionRatioVideo() {
if (empty($this->info['video'])) {
return false;
}
if (empty($this->info['video']['resolution_x']) || empty($this->info['video']['resolution_y'])) {
Method ParseOggPageHeader
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ParseOggPageHeader() {
// http://xiph.org/ogg/vorbis/doc/framing.html
$oggheader['page_start_offset'] = $this->ftell(); // where we started from in the file
$filedata = $this->fread($this->getid3->fread_buffer_size());
Method readData
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function readData() {
$value = null;
$type = $this->stream->readByte();
switch ($type) {
Method wp_admin_bar_new_content_menu
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
$actions = array();
$cpts = (array) get_post_types( array( 'show_in_admin_bar' => true ), 'objects' );
Method image_resize
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
$image = wp_load_image( $file );
if ( !is_resource( $image ) )
return new WP_Error('error_loading_image', $image);
Method sanitize_user_field
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_user_field($field, $value, $user_id, $context) {
$int_fields = array('ID');
if ( in_array($field, $int_fields) )
$value = (int) $value;
Method wp_upload_dir
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_upload_dir( $time = null ) {
$siteurl = get_option( 'siteurl' );
$upload_path = get_option( 'upload_path' );
$upload_path = trim($upload_path);
if ( empty($upload_path) ) {
Method convert_chars
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convert_chars($content, $deprecated = '') {
// Translation of invalid Unicode references range to valid range
$wp_htmltranswinuni = array(
'€' => '€', // the Euro sign
'' => '',
Method _wp_upgrade_revisions_of_post
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_upgrade_revisions_of_post( $post, $revisions ) {
global $wpdb;
// Add post option exclusively
$lock = "revision-upgrade-{$post->ID}";
Method GetGuestPackages
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<GuestPackage> GetGuestPackages(string year)
{
var tournament = Tournaments.Single(x => x.Year == year);
var guestPackages = GuestPackages.Where(x => x.TournamentId == tournament.Id).ToList();
Method Then
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Action<object> Then(params object[] expectedEvents)
{
return got =>
{
var gotEvents = got as object[];
Function _apply
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_apply: function (file, fn){
api.log('FlashAPI.Image._apply:', file);
if( _isHtmlFile(file) ){
this.parent.apply(this, arguments);
Function _call
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_call: function( type, url, params, callback ) {
url = 'https://picasaweb.google.com/data/feed/api/' + url + '?';
if (typeof params == 'function') {
Function open
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.open = function( args, params ) {
var $element,
self = this,
wp = this.wp;
Function getAttrib
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAttrib : function(e, at) {
var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
if (ed.settings.inline_styles) {
switch (at) {
Function _call
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_call: function( type, url, params, callback ) {
url = 'https://picasaweb.google.com/data/feed/api/' + url + '?';
if (typeof params == 'function') {
Function createToolbar
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createToolbar: function() {
var filters, FiltersConstructor;
/**
* @member {wp.media.view.Toolbar}
Method wp_dashboard
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_dashboard() {
global $screen_layout_columns;
$hide2 = $hide3 = $hide4 = '';
switch ( $screen_layout_columns ) {