Showing 5,566 of 7,504 total issues
File edit.php
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Edit Posts Administration Panel.
*
* @package WordPress
Consider simplifying this complex logical expression. Open
Open
if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
(t == 'checkbox' || t == 'radio') && !el.checked ||
(t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
tag == 'select' && el.selectedIndex == -1))
return null;
WP_Filesystem_Direct
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WP_Filesystem_Direct extends WP_Filesystem_Base {
var $errors = null;
/**
* constructor
*
LJ_API_Import
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LJ_API_Import {
var $comments_url = 'http://www.livejournal.com/export_comments.bml';
var $ixr_url = 'http://www.livejournal.com/interface/xmlrpc';
var $ixr;
Consider simplifying this complex logical expression. Open
Open
if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content')) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content')) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml')
|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_20 && in_array(end($this->element), array('title')))
|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_090 && in_array(end($this->element), array('title')))
|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_10 && in_array(end($this->element), array('title'))))
Function success
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function() {
// calculate some cropping
var newWidth = ( width - options.margin * 2 ) / self.original.width,
newHeight = ( height - options.margin * 2 ) / self.original.height,
Function show
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function(index) {
lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
if ( !lightbox.initialized ) {
Function resultsController
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var resultsController = function ($scope, $location, dataService, $stateParams, $state, $timeout) {
var url = $location.absUrl();
var host = $location.host();
var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
var currentYear = url.slice(firstSlash, firstSlash + 4);
Function show
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function(index) {
lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
if ( !lightbox.initialized ) {
Function success
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function() {
// calculate some cropping
var newWidth = ( width - options.margin * 2 ) / self.original.width,
newHeight = ( height - options.margin * 2 ) / self.original.height,
File custom-header.php
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* The custom header image script.
*
* @package WordPress
Method mw_getRecentPosts
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mw_getRecentPosts($args) {
$this->escape($args);
$blog_ID = (int) $args[0];
Method Analyze
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function Analyze() {
$info = &$this->getid3->info;
$info['fileformat'] = 'dts';
$this->fseek($info['avdataoffset']);
Method absolutize
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function absolutize($base, $relative)
{
if (!($relative instanceof SimplePie_IRI))
{
$relative = new SimplePie_IRI($relative);
Method request
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function request($url, $args = array()) {
$defaults = array(
'method' => 'GET', 'timeout' => 5,
'redirection' => 5, 'httpversion' => '1.0',
'blocking' => true,
Method save
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function save($data)
{
if ($this->mysql)
{
$feed_id = "'" . mysql_real_escape_string($this->id) . "'";
File wp-lists.dev.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function($) {
var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
wpList = {
settings: {
Function _apply
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_apply: function (image, fn){
var
canvas = getCanvas()
, m = this.getMatrix(image)
, ctx = canvas.getContext('2d')
Function Page
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.Page = function (page, data) {
switch (page) {
case 'Game': {
dataService.LoadSchedule(year, data.Division).
success(function (divisionSchedule) {
Function dataToHtml
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dataToHtml(data) {
var html = '';
if (!data.source1) {
tinymce.extend(data, htmlToData(data.embed));