Showing 68 of 124 total issues
File select2.js
has 2595 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Copyright 2012 Igor Vaynberg
Version: 3.5.2 Timestamp: Sat Nov 1 14:43:36 EDT 2014
Function initContainer
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initContainer: function () {
var selection,
container = this.container,
dropdown = this.dropdown,
Function initContainer
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initContainer: function () {
var selector = ".select2-choices", selection;
this.searchContainer = this.container.find(".select2-search-field");
Function prepareOpts
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepareOpts: function (opts) {
var element, select, idKey, ajaxUrl, self = this;
element = opts.element;
Function updateResults
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateResults: function (initial) {
var search = this.search,
results = this.results,
opts = this.opts,
data,
Function init
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (opts) {
var results, search, resultsSelector = ".select2-results";
// prepare options
this.opts = opts = this.prepareOpts(opts);
Function positionDropdown
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
positionDropdown: function() {
var $dropdown = this.dropdown,
container = this.container,
offset = container.offset(),
height = container.outerHeight(false),
File PmMapper.php
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
File PmService.php
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
PmService
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PmService implements PmServiceInterface, EventManagerAwareInterface
{
use EventManagerAwareTrait;
/**
Function ajax
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajax(options) {
var timeout, // current scheduled but not yet executed request
handler = null,
quietMillis = options.quietMillis || 100,
ajaxUrl = options.url,
Function local
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function local(options) {
var data = options, // data elements
dataText,
tmp,
text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search
Method __construct
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($name = 'create-conversation')
{
parent::__construct($name);
$this->add(
Function opening
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
opening: function() {
var cid = this.containerEventName,
scroll = "scroll." + cid,
resize = "resize."+cid,
orient = "orientationchange."+cid,
Function select2
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.select2 = function () {
var args = Array.prototype.slice.call(arguments, 0),
opts,
select2,
Function prepareOpts
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepareOpts: function () {
var opts = this.parent.prepareOpts.apply(this, arguments),
self=this;
// TODO validate placeholder is a string if specified
Function addSelectedChoice
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addSelectedChoice: function (data) {
var enableChoice = !data.locked,
enabledItem = $(
"<li class='select2-search-choice'>" +
" <div></div>" +
Function val
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function () {
var val,
triggerChange = false,
data = null,
self = this,
Method getInputFilterSpecification
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputFilterSpecification()
{
return [
[
'name' => 'headline',
Function populateResults
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
populateResults: function(container, results, query) {
var populate, id=this.opts.id, liveRegion=this.liveRegion;
populate=function(results, container, depth) {