Showing 5,566 of 7,504 total issues
Method SmtpSend
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SmtpSend($header, $body) {
include_once($this->PluginDir . 'class-smtp.php');
$error = '';
$bad_rcpt = array();
Method CreateHeader
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CreateHeader() {
$result = '';
/* Set the boundaries */
$uniq_id = md5(uniqid(time()));
Method send_headers
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function send_headers() {
$headers = array('X-Pingback' => get_bloginfo('pingback_url'));
$status = null;
$exit_required = false;
Function link
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, uiSrefActive) {
var ref = parseStateRef(attrs.uiSref, $state.current.name);
var params = null, url = null, base = stateContext(element) || $state.$current;
// SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
var hrefKind = Object.prototype.toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
Function sponsorsController
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var sponsorsController = function ($http, $q, $location, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var year = url.slice(lastSlash + 1);
Function _exit
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_exit: function( callback ) {
fullscreen.active = false;
var inBrowser = !self._options.trueFullscreen || !_nativeFullscreen.support,
Consider simplifying this complex logical expression. Open
Open
if ( ! inputs[i].checked &&
( 'left' == side && 1 > checkCount || 'right' == side && 1 < checkCount && ( ! inputs[i-1] || ! inputs[i-1].checked ) ) &&
! ( inputs[i+1] && inputs[i+1].checked && 'right' == inputs[i+1].getAttribute('name') ) )
inputs[i].style.visibility = 'hidden';
else if ( 'left' == side || 'right' == side )
Function _setupUpdateUI
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupUpdateUI: function() {
var self = this, $widgetRoot, $widgetContent,
$saveBtn, updateWidgetDebounced, formSyncHandler;
$widgetRoot = this.container.find( '.widget:first' );
Function init
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
slider.animating = false;
slider.currentSlide = 0;
slider.animatingTo = slider.currentSlide;
slider.atEnd = ( slider.currentSlide === 0 || slider.currentSlide === slider.last );
Function calculateImageSelectOptions
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculateImageSelectOptions: function(attachment, controller) {
var xInit = parseInt(_wpCustomizeHeader.data.width, 10),
yInit = parseInt(_wpCustomizeHeader.data.height, 10),
flexWidth = !! parseInt(_wpCustomizeHeader.data['flex-width'], 10),
flexHeight = !! parseInt(_wpCustomizeHeader.data['flex-height'], 10),
Function mapColors
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapColors() {
var i, colors = [], colorMap;
colorMap = editor.settings.textcolor_map || [
"000000", "Black",
Function _exit
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_exit: function( callback ) {
fullscreen.active = false;
var inBrowser = !self._options.trueFullscreen || !_nativeFullscreen.support,
Function initialize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(element) {
var defaults = {
handle: false,
reverteffect: function(element, top_offset, left_offset) {
var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;
Method privReadFileHeader
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privReadFileHeader(&$p_header)
{
$v_result=1;
// ----- Read the 4 bytes signature
Method wp_nav_menu_update_menu_items
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) {
$unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) );
$menu_items = array();
// Index menu items by db ID
Method wp_ajax_save_widget
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_save_widget() {
global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' );
Method meta_form
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function meta_form() {
global $wpdb;
$limit = (int) apply_filters( 'postmeta_form_limit', 30 );
$keys = $wpdb->get_col( "
SELECT meta_key
Method wp_ajax_inline_save
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_inline_save() {
global $wp_list_table;
check_ajax_referer( 'inlineeditnonce', '_inline_edit' );
Method _display_rows_hierarchical
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
global $wpdb;
$level = 0;
Method get_feed
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_feed($page = 1, $post_type = 'post') {
global $post, $wp, $wp_query, $posts, $wpdb, $blog_id;
log_app('function',"get_feed($page, '$post_type')");
ob_start();