Showing 5,566 of 7,504 total issues
Function link
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
scope.$watch('shots', function () {
scope.shots = (scope.shots || '').toUpperCase();
scope.game = { frames: [], score: 0, fouls: 0 };
Function InlineWindowManager
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tinymce.WPWindowManager = tinymce.InlineWindowManager = function( editor ) {
if ( this.wp ) {
return this;
}
Function add
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function(handleObj) {
var getCoords = function(e) {
if ( e.touches && e.touches.length ) {
var touch = e.touches[0];
Method js_1
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function js_1() { ?>
<script type="text/javascript">
var buttons = ['#name', '#desc', '#pickcolor', '#defaultcolor'];
var farbtastic;
Method twentythirteen_admin_header_style
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentythirteen_admin_header_style() {
$header_image = get_header_image();
?>
<style type="text/css" id="twentythirteen-admin-header-css">
.appearance_page_custom-header #headimg {
Method login_header
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function login_header($title = 'Log In', $message = '', $wp_error = '') {
global $error, $is_iphone, $interim_login;
// Don't index any of these forms
add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
Method wp_underscore_video_template
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_underscore_video_template() {
$video_types = wp_get_video_extensions();
?>
<# var w, h, settings = wp.media.view.settings,
isYouTube = ! _.isEmpty( data.model.src ) && data.model.src.match(/youtube|youtu\.be/);
Method wp_get_nav_menu_items
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_nav_menu_items( $menu, $args = array() ) {
$menu = wp_get_nav_menu_object( $menu );
if ( ! $menu )
return false;
File po.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Class for working with PO files
*
* @version $Id: po.php 283 2009-09-23 16:21:51Z nbachiyski $
getID3
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class getID3
{
// public: Settings
public $encoding = 'UTF-8'; // CASE SENSITIVE! - i.e. (must be supported by iconv()). Examples: ISO-8859-1 UTF-8 UTF-16 UTF-16BE
public $encoding_id3v1 = 'ISO-8859-1'; // Should always be 'ISO-8859-1', but some tags may be written in other encodings such as 'EUC-CN' or 'CP1252'
WP_Admin_Bar
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WP_Admin_Bar {
private $nodes = array();
private $bound = false;
public $user;
WP_Query
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WP_Query {
/**
* Query string
*
Class ParticipantAggregate
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ParticipantAggregate : Aggregate,
IApplyEvent<ParticipantCreated>,
IApplyEvent<ParticipantRenamed>,
IApplyEvent<ParticipantAssignedToContingent>,
IApplyEvent<ParticipantAssignedToTeam>,
SMTP
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SMTP
{
/**
* SMTP server port
* @var int
Function link
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attr) {
// again we need the native object
var el = element[0];
el.addEventListener(
Function show
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Method users2wp
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function users2wp($users='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method wp_newComment
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_newComment($args) {
global $wpdb;
$this->escape($args);
Method get_type
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_type()
{
if (isset($this->file->headers['content-type']))
{
if (!isset($this->file->headers['content-encoding'])
Method interleave_changed_lines
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interleave_changed_lines( $orig, $final ) {
// Contains all pairwise string comparisons. Keys are such that this need only be a one dimensional array.
$matches = array();
foreach ( array_keys($orig) as $o ) {