Showing 5,566 of 7,504 total issues
Function PopupWindow_isClicked
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PopupWindow_isClicked(e) {
if (this.divName != null) {
if (this.use_layers) {
var clickX = e.pageX;
var clickY = e.pageY;
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var self = this;
this.search();
this.uploader();
Function contingentController
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var contingentController = function ($scope, $http, dataService, $stateParams, $state) {
$scope.model = {};
$scope.loadContingent = loadContingent;
$scope.totalAverage = totalAverage;
Function _createButtons
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons : function() {
var t = this, ed = tinyMCE.activeEditor, DOM = tinymce.DOM, editButton, dellButton;
DOM.remove('wp_gallerybtns');
Function onKeyPress
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onKeyPress: function(event) {
if(this.active)
switch(event.keyCode) {
case Event.KEY_TAB:
case Event.KEY_RETURN:
Function createFilters
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createFilters: function() {
var filters = {};
_.each( media.view.settings.mimeTypes || {}, function( text, key ) {
filters[ key ] = {
Function complete
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function( thumb ) {
// shrink thumbnails to fit
var top = ['left', 'top'],
arr = ['Width', 'Height'],
Function loop
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loop: function() {
var distance = this.to - this.pos,
factor = 1;
Method install_theme_search
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function install_theme_search($page) {
global $theme_field_defaults;
$type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
$term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
Method wp_category_checklist
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
if ( empty($walker) || !is_a($walker, 'Walker') )
$walker = new Walker_Category_Checklist;
$descendants_and_self = (int) $descendants_and_self;
Method get_cli_args
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_cli_args( $param, $required = false ) {
$args = $_SERVER['argv'];
$out = array();
Method wp_ajax_send_attachment_to_editor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_send_attachment_to_editor() {
check_ajax_referer( 'media-send-to-editor', 'nonce' );
$attachment = wp_unslash( $_POST['attachment'] );
Method gethchmod
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function gethchmod($file){
$perms = $this->getchmod($file);
if (($perms & 0xC000) == 0xC000) // Socket
$info = 's';
elseif (($perms & 0xA000) == 0xA000) // Symbolic Link
Method process_attachment
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function process_attachment($postdata, $remote_url) {
if ($this->fetch_attachments and $remote_url) {
printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) );
// If the URL is absolute, but does not contain http, upload it assuming the base_site_url variable
Method wp_authors_form
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_authors_form() {
?>
<h2><?php _e('Assign Authors'); ?></h2>
<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as <code>admin</code>s entries.'); ?></p>
<?php
Method blogger_getRecentPosts
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_getRecentPosts($args) {
$this->escape($args);
$blog_ID = (int) $args[1]; /* though we don't use it yet */
Method echo_entry
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function echo_entry() { ?>
<entry xmlns="<?php echo $this->ATOM_NS ?>"
xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>">
<id><?php the_guid($GLOBALS['post']->ID); ?></id>
<?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?>
Method auto_check_update_meta
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function auto_check_update_meta( $id, $comment ) {
// failsafe for old WP versions
if ( !function_exists('add_comment_meta') )
return false;
Method spawn_cron
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function spawn_cron( $local_time = 0 ) {
if ( !$local_time )
$local_time = time();
Method wp_newCategory
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_newCategory($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];