Showing 5,566 of 7,504 total issues
Function updateStyle
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateStyle : function(ty) {
var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : f.img_style.value});
if (tinyMCEPopup.editor.settings.inline_styles) {
// Handle align
Function Dispatcher
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Dispatcher(target, newEventName, argsMap, defaultScope) {
target = target || this;
if (!newEventName) {
this.add = this.addToTop = this.remove = this.dispatch = noop;
Function _slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _slide = function(params, complete, fade, door) {
var easing = this.getOptions('easing'),
distance = this.getStageWidth(),
from = { left: distance * ( params.rewind ? -1 : 1 ) },
Function slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Carousel.prototype.slide = function (type, next) {
var $active = this.$element.find('.item.active')
var $next = next || this.getItemForDirection(type, $active)
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
Method make_thumb
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function make_thumb($folder,$file,$dest,$thumb_width) {
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
switch($ext)
Method step_1
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function step_1() {
if ( $_GET['updated'] ) { ?>
<div id="message" class="updated fade">
<p><?php _e('Header updated.') ?></p>
</div>
Method comments2wp
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function comments2wp($comments='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method setup
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setup() {
global $verified;
// Get details from form or from DB
if ( !empty( $_POST['lj_username'] ) && !empty( $_POST['lj_password'] ) ) {
// Store details for later
Method check_comment
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $comment_type) {
global $wpdb;
if ( 1 == get_option('comment_moderation') )
return false; // If moderation is set to manual
Method get_comments
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_comments( $args = '' ) {
global $wpdb;
$defaults = array('status' => '', 'orderby' => 'comment_date_gmt', 'order' => 'DESC', 'number' => '', 'offset' => '', 'post_id' => 0);
Method HandleEMBLClusterBlock
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function HandleEMBLClusterBlock($element, $block_type, &$info) {
// http://www.matroska.org/technical/specs/index.html#block_structure
// http://www.matroska.org/technical/specs/index.html#simpleblock_structure
$block_data = array();
Method get_links
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_links()
{
if ($this->dom === null)
{
throw new SimplePie_Exception('DOMDocument not found, unable to use locator');
Method wp_kses_check_attr_val
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) {
$ok = true;
switch (strtolower($checkname)) {
case 'maxlen' :
Method get_description
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_description($description_only = false)
{
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'summary'))
{
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
Method do_enclose
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_enclose( $content, $post_ID ) {
global $wpdb;
include_once( ABSPATH . WPINC . '/class-IXR.php' );
$log = debug_fopen( ABSPATH . 'enclosures.log', 'a' );
Method wptexturize
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wptexturize($text) {
global $wp_cockneyreplace;
static $static_setup = false, $opening_quote, $closing_quote, $default_no_texturize_tags, $default_no_texturize_shortcodes, $static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements;
$output = '';
$curl = '';
Method end_element
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function end_element($parser, $name) {
$tag = array_pop(split(":", $name));
$ccount = count($this->in_content);
Method get_active_blog_for_user
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_active_blog_for_user( $user_id ) {
global $wpdb;
$blogs = get_blogs_of_user( $user_id );
if ( empty( $blogs ) )
return null;
Method wp_list_bookmarks
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_list_bookmarks($args = '') {
$defaults = array(
'orderby' => 'name', 'order' => 'ASC',
'limit' => -1, 'category' => '', 'exclude_category' => '',
'category_name' => '', 'hide_invisible' => 1,
Method parse_settings
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function parse_settings( $editor_id, $settings ) {
$set = wp_parse_args( $settings, array(
'wpautop' => true,
'media_buttons' => true,
'default_editor' => '',