Showing 7,504 of 7,504 total issues
Function nth
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nth: function(nodes, formula, root, reverse, ofType) {
if (nodes.length == 0) return [];
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
var h = Selector.handlers, results = [], indexed = [], m;
Function walk
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk(node) {
var name = node.name, currentNode = node;
if (name === 'br') {
text += '\n';
Function fit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fit: function( dimensions ) {
var width = dimensions.width,
height = dimensions.height,
maxWidth = dimensions.maxWidth,
maxHeight = dimensions.maxHeight,
Function toViews
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toViews: function( content ) {
var pieces = [ { content: content } ],
current;
_.each( views, function( view, viewType ) {
Function extend
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Event.extend = (function() {
var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
m[name] = Event.Methods[name].methodize();
return m;
});
Function nth
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nth: function(nodes, formula, root, reverse, ofType) {
if (nodes.length == 0) return [];
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
var h = Selector.handlers, results = [], indexed = [], m;
Function keyHandler
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keyHandler : function(evt) {
keyCode = evt.keyCode;
charCode = evt.charCode;
fromChar = String.fromCharCode(charCode);
Function setParams
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},setParams:function(){
this.imgW=this.img.width;
this.imgH=this.img.height;
if(!this.isIE){
Element.setStyle($(this.overlay),{width:this.imgW+"px",height:this.imgH+"px"});
Function scroll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scroll: function() {
var current = new Date();
var delta = current - this.lastScrolled;
this.lastScrolled = current;
if(this.options.scroll == window) {
Function renderSettings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSettings: function( browser ) {
var library = this.get('library'),
collectionType = this.get('collectionType'),
dragInfoText = this.get('dragInfoText'),
SettingsView = this.get('SettingsView'),
Method privAddList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privAddList($p_filedescr_list, &$p_result_list, &$p_options)
{
$v_result=1;
// ----- Add the files
Function checkPosition
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Affix.prototype.checkPosition = function () {
if (!this.$element.is(':visible')) return
var height = this.$element.height()
var offset = this.options.offset
Function _getWH
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getWH : function() {
var $container = this.$( 'container' ),
$target = this.$( 'target' ),
self = this,
Method SetServer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SetServer($host, $port=21, $reconnect=true) {
if(!is_long($port)) {
$this->verbose=true;
$this->SendMSG("Incorrect port syntax");
return FALSE;
Method connect
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connect($server=NULL) {
if(!empty($server)) {
if(!$this->SetServer($server)) return false;
}
if($this->_ready) return true;
Method add_menu_classes
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_menu_classes($menu) {
$first = $lastorder = false;
$i = 0;
$mc = count($menu);
Method wp_delete_user
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_delete_user($id, $reassign = 'novalue') {
global $wpdb;
$id = (int) $id;
$user = new WP_User($id);
Method get_plugin_files
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_plugin_files($plugin) {
$plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
$dir = dirname($plugin_file);
$plugin_files = array($plugin);
if ( is_dir($dir) && $dir != WP_PLUGIN_DIR ) {
Method wp_ajax_add_user
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_add_user( $action ) {
global $wp_list_table;
if ( empty( $action ) )
$action = 'add-user';
Method wp_ajax_edit_comment
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_edit_comment() {
global $wp_list_table;
check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );