Showing 5,566 of 7,504 total issues
Function dfwWidth
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
api.dfwWidth = function( pixels, total ) {
var width;
if ( pixels && pixels.toString().indexOf('%') !== -1 ) {
s.$editorContainer.css( 'width', pixels );
Function toggleToolbars
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toggleToolbars( state ) {
var iframe, initial, toolbars,
pixels = 0;
initial = ( state === 'hide' );
Function initialize
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(testcases) {
this.options = Object.extend({
testLog: 'testlog'
}, arguments[1] || {});
this.options.resultsURL = this.parseResultsURLQueryParameter();
Function Video
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Video = function( type, id ) {
for( var i=0; i<_video._inst.length; i++ ) {
if ( _video._inst[i].id === id && _video._inst[i].type == type ) {
return _video._inst[i];
Function formatUnits
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SWFUpload.speed.formatUnits = function (baseNumber, unitDivisors, unitLabels, singleFractional) {
var i, unit, unitDivisor, unitLabel;
if (baseNumber === 0) {
return "0 " + unitLabels[unitLabels.length - 1];
Method errorName
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function errorName($p_with_code=false)
{
$v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR',
PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL',
PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL',
Method post_preview
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function post_preview() {
$post_ID = (int) $_POST['post_ID'];
if ( $post_ID < 1 )
wp_die( __('Preview not available. Please save as a draft first.') );
Method _rows
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
$end = $start + $per_page;
foreach ( $terms as $key => $term ) {
Method _cat_rows
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
$start = ($page - 1) * $per_page;
$end = $start + $per_page;
ob_start();
Method after
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function after() {
if ( empty($this->upgrader->result['destination_name']) )
return;
$theme_info = $this->upgrader->theme_info();
Method upgrade_110
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade_110() {
global $wpdb;
// Set user_nicename.
$users = $wpdb->get_results("SELECT ID, user_nickname, user_nicename FROM $wpdb->users");
Method display_rows_or_placeholder
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function display_rows_or_placeholder() {
$taxonomy = $this->screen->taxonomy;
$args = wp_parse_args( $this->callback_args, array(
'page' => 1,
Method tags_form
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tags_form() { ?>
<script type="text/javascript">
/* <![CDATA[ */
var checktags = "false";
Method twentyfourteen_paging_nav
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentyfourteen_paging_nav() {
// Don't print empty markup if there's only one page.
if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
return;
}
Method handle_request
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handle_request() {
global $always_authenticate;
if( !empty( $_SERVER['ORIG_PATH_INFO'] ) )
$path = $_SERVER['ORIG_PATH_INFO'];
Method pingback
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pingback($content, $post_ID) {
global $wp_version;
include_once(ABSPATH . WPINC . '/class-IXR.php');
// original code by Mort (http://mort.mine.nu:8080)
Method discover_pingback_server_uri
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function discover_pingback_server_uri($url, $deprecated = 2048) {
$pingback_str_dquote = 'rel="pingback"';
$pingback_str_squote = 'rel=\'pingback\'';
Method wp_editProfile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_editProfile( $args ) {
if ( ! $this->minimum_args( $args, 4 ) )
return $this->error;
$this->escape( $args );
Method feed_links_extra
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function feed_links_extra( $args ) {
$defaults = array(
/* translators: Separator between blog name and feed type in feed links */
'separator' => _x('»', 'feed link'),
/* translators: 1: blog name, 2: separator(raquo), 3: post title */
Method iconv_fallback_utf8_utf16le
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function iconv_fallback_utf8_utf16le($string, $bom=false) {
$newcharstring = '';
if ($bom) {
$newcharstring .= "\xFF\xFE";
}