Showing 5,566 of 7,504 total issues
Method uncomment_rfc822
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uncomment_rfc822($string)
{
$string = (string) $string;
$position = 0;
$length = strlen($string);
Method remove_rfc2822_comments
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function remove_rfc2822_comments($string)
{
$string = (string) $string;
$position = 0;
$length = strlen($string);
Method global_terms
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function global_terms( $term_id, $deprecated = '' ) {
global $wpdb;
static $global_terms_recurse = null;
if ( !global_terms_enabled() )
Function getFiles
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFiles: function (input, filter, callback){
var files = [];
if( callback ){
api.filterFiles(api.getFiles(input), filter, callback);
Function animate
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.config(['$provide', function($provide) {
var reflowQueue = [];
$provide.value('$$animateReflow', function(fn) {
var index = reflowQueue.length;
Function dump
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.dump = function(object) {
return serialize(object);
function serialize(object) {
var out;
Function load
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.prototype.load = function() {
// pass if no data is provided or facebook option not found
if ( arguments.length || typeof this._options.facebook !== 'string' ) {
load.apply( this, Galleria.utils.array( arguments ) );
Function PopupWindow
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PopupWindow() {
if (!window.popupWindowIndex) { window.popupWindowIndex = 0; }
if (!window.popupWindowObjects) { window.popupWindowObjects = new Array(); }
if (!window.listenerAttached) {
window.listenerAttached = true;
Function prepareMediaItemInit
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareMediaItemInit(fileObj) {
var item = jQuery('#media-item-' + fileObj.id);
// Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename
jQuery('.thumbnail', item).clone().attr('class', 'pinkynail toggle').prependTo(item);
Function update
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update : function() {
var f = document.forms[0], ed = tinyMCEPopup.editor, e, b;
tinyMCEPopup.restoreSelection();
e = ed.dom.getParent(ed.selection.getNode(), 'A');
Function Coords
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
opt.keySupport=$.browser.msie?false:true;var defaults={trackDocument:false,baseClass:'jcrop',addClass:null,bgColor:'black',bgOpacity:.6,borderOpacity:.4,handleOpacity:.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}};var options=defaults;setOptions(opt);var $origimg=$(obj);var $img=$origimg.clone().removeAttr('id').css({position:'absolute'});$img.width($origimg.width());$img.height($origimg.height());$origimg.after($img).hide();presize($img,options.boxWidth,options.boxHeight);var boundx=$img.width(),boundy=$img.height(),$div=$('<div />').width(boundx).height(boundy).addClass(cssClass('holder')).css({position:'relative',backgroundColor:options.bgColor}).insertAfter($origimg).append($img);;if(options.addClass)$div.addClass(options.addClass);var $img2=$('<img />').attr('src',$img.attr('src')).css('position','absolute').width(boundx).height(boundy);var $img_holder=$('<div />').width(pct(100)).height(pct(100)).css({zIndex:310,position:'absolute',overflow:'hidden'}).append($img2);var $hdl_holder=$('<div />').width(pct(100)).height(pct(100)).css('zIndex',320);var $sel=$('<div />').css({position:'absolute',zIndex:300}).insertBefore($img).append($img_holder,$hdl_holder);var bound=options.boundary;var $trk=newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)).css({position:'absolute',top:px(-bound),left:px(-bound),zIndex:290}).mousedown(newSelection);var xlimit,ylimit,xmin,ymin;var xscale,yscale,enabled=true;var docOffset=getPos($img),btndown,lastcurs,dimmed,animating,shift_down;var Coords=function()
{var x1=0,y1=0,x2=0,y2=0,ox,oy;function setPressed(pos)
{var pos=rebound(pos);x2=x1=pos[0];y2=y1=pos[1];};function setCurrent(pos)
{var pos=rebound(pos);ox=pos[0]-x2;oy=pos[1]-y2;x2=pos[0];y2=pos[1];};function getOffset()
{return[ox,oy];};function moveOffset(offset)
Function onLoad
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},onLoad:function(){
var _f="imgCrop_";
var _10=this.img.parentNode;
var _11="";
if(this.isOpera8){
Function load
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.prototype.load = function() {
// pass if no data is provided or facebook option not found
if ( arguments.length || typeof this._options.facebook !== 'string' ) {
load.apply( this, Galleria.utils.array( arguments ) );
Function initialize
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initialize() {
if ( typeof window.pagenow === 'string' ) {
settings.screenId = window.pagenow;
}
Method install_themes_dashboard
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function install_themes_dashboard() {
install_theme_search_form();
?>
<h4><?php _e('Feature Filter') ?></h4>
<form method="post" action="<?php echo admin_url( 'theme-install.php?tab=search' ); ?>">
Method print_column_headers
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function print_column_headers( $with_id = true ) {
list( $columns, $hidden, $sortable ) = $this->get_column_info();
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
$current_url = remove_query_arg( 'paged', $current_url );
Method choose_primary_blog
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function choose_primary_blog() {
?>
<table class="form-table">
<tr>
<?php /* translators: My sites label */ ?>
Method bulk_upgrade
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bulk_upgrade($plugins) {
$this->init();
$this->bulk = true;
$this->upgrade_strings();
Method create_post
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create_post() {
global $blog_id, $user_ID;
$this->get_accepted_content_type($this->atom_content_types);
$parser = new AtomParser();
Method remove_dot_segments
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function remove_dot_segments($input)
{
$output = '';
while (strpos($input, './') !== false || strpos($input, '/.') !== false || $input === '.' || $input === '..')
{