Showing 5,566 of 7,504 total issues
Function _applyDeviceContext
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TelemetryContext.prototype._applyDeviceContext = function (envelope, deviceContext) {
var tagKeys = new AI.ContextTagKeys();
if (deviceContext) {
if (typeof deviceContext.id === "string") {
envelope.tags[tagKeys.deviceId] = deviceContext.id;
Function modalFactory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var modalFactory = function ($modal) {
return {
Participant: getParticipantModal,
Divisions: getDivisionsModal
};
Function addHoverClass
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addHoverClass = function(t) {
var i, id, inA, hovering, ul, li,
ancestors = [],
ancestorLength = 0;
Function featureAnimate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slider.featureAnimate = function( target ) {
if ( target !== slider.currentSlide ) {
slider.direction = ( target > slider.currentSlide ) ? 'next' : 'prev';
}
Function go
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
go : function(id, mode) {
id = id || 'content';
mode = mode || this.mode || '';
var ed, qt = this.I('quicktags'), H = this.I('edButtonHTML'), P = this.I('edButtonPreview'), ta = this.I(id);
Function filterHistory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
filterHistory : function(postid, setSize) {
// apply undo state to history
var history = $('#imgedit-history-' + postid).val(), pop, n, o, i, op = [];
if ( history != '' ) {
Function update
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update : function() {
var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
tinyMCEPopup.restoreSelection();
Function innerText
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function innerText(html) {
var schema = new Schema(), domParser = new DomParser({}, schema), text = '';
var shortEndedElements = schema.getShortEndedElements();
var ignoreElements = Tools.makeMap('script noscript style textarea video audio iframe object', ' ');
var blockElements = schema.getBlockElements();
Function enter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
enter: function( callback ) {
fullscreen.beforeEnter(function() {
callback = fullscreen.parseCallback( callback, true );
Function node
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
node: function(elementName) {
elementName = elementName.toUpperCase();
// try innerHTML approach
var parentTag = this.NODEMAP[elementName] || 'div';
Function finishDrag
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finishDrag: function(event, success) {
this.dragging = false;
if(this.options.quiet){
Position.prepare();
Function htmlUpdate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
htmlUpdate: function() {
var attrs, html, begin, end, cursor, title, selection,
textarea = wpLink.textarea;
if ( ! textarea )
Function show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var activesData
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
Method media_upload_video
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function media_upload_video() {
$errors = array();
$id = 0;
if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
Method mget
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mget($remote, $local=".", $continious=false) {
$list=$this->rawlist($remote, "-lA");
if($list===false) {
$this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
return FALSE;
Method WP_Filesystem_SSH2
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WP_Filesystem_SSH2($opt='') {
$this->method = 'ssh2';
$this->errors = new WP_Error();
//Check if possible to use ssh2 functions.
Method media_upload_file
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function media_upload_file() {
$errors = array();
$id = 0;
if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
Method prepare_items
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepare_items() {
global $usersearch, $role, $wpdb, $mode;
$usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
Method media_upload_audio
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function media_upload_audio() {
$errors = array();
$id = 0;
if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
Method add_meta_box
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default', $callback_args=null) {
global $wp_meta_boxes;
if ( !isset($wp_meta_boxes) )
$wp_meta_boxes = array();