Eye4web/Eye4webZfcUserPm

View on GitHub

Showing 68 of 124 total issues

File select2.js has 2595 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
Copyright 2012 Igor Vaynberg

Version: 3.5.2 Timestamp: Sat Nov  1 14:43:36 EDT 2014

Severity: Major
Found in data/public/select2-3.5.2/select2.js - About 1 wk to fix

    Function initContainer has 147 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            initContainer: function () {
    
                var selection,
                    container = this.container,
                    dropdown = this.dropdown,
    Severity: Major
    Found in data/public/select2-3.5.2/select2.js - About 5 hrs to fix

      Function initContainer has 144 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              initContainer: function () {
      
                  var selector = ".select2-choices", selection;
      
                  this.searchContainer = this.container.find(".select2-search-field");
      Severity: Major
      Found in data/public/select2-3.5.2/select2.js - About 5 hrs to fix

        Function prepareOpts has 140 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                prepareOpts: function (opts) {
                    var element, select, idKey, ajaxUrl, self = this;
        
                    element = opts.element;
        
        
        Severity: Major
        Found in data/public/select2-3.5.2/select2.js - About 5 hrs to fix

          Function updateResults has 109 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  updateResults: function (initial) {
                      var search = this.search,
                          results = this.results,
                          opts = this.opts,
                          data,
          Severity: Major
          Found in data/public/select2-3.5.2/select2.js - About 4 hrs to fix

            Function init has 107 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    init: function (opts) {
                        var results, search, resultsSelector = ".select2-results";
            
                        // prepare options
                        this.opts = opts = this.prepareOpts(opts);
            Severity: Major
            Found in data/public/select2-3.5.2/select2.js - About 4 hrs to fix

              Function positionDropdown has 92 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      positionDropdown: function() {
                          var $dropdown = this.dropdown,
                              container = this.container,
                              offset = container.offset(),
                              height = container.outerHeight(false),
              Severity: Major
              Found in data/public/select2-3.5.2/select2.js - About 3 hrs to fix

                File PmMapper.php has 311 lines of code (exceeds 250 allowed). Consider refactoring.
                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
                Severity: Minor
                Found in src/Eye4web/ZfcUser/Pm/Mapper/DoctrineORM/PmMapper.php - About 3 hrs to fix

                  File PmService.php has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                  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
                  Severity: Minor
                  Found in src/Eye4web/ZfcUser/Pm/Service/PmService.php - About 3 hrs to fix

                    PmService has 21 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class PmService implements PmServiceInterface, EventManagerAwareInterface
                    {
                        use EventManagerAwareTrait;
                    
                        /**
                    Severity: Minor
                    Found in src/Eye4web/ZfcUser/Pm/Service/PmService.php - About 2 hrs to fix

                      Function ajax has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function ajax(options) {
                              var timeout, // current scheduled but not yet executed request
                                  handler = null,
                                  quietMillis = options.quietMillis || 100,
                                  ajaxUrl = options.url,
                      Severity: Minor
                      Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                        Function local has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                        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
                        Severity: Minor
                        Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                          Method __construct has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function __construct($name = 'create-conversation')
                              {
                                  parent::__construct($name);
                          
                                  $this->add(
                          Severity: Minor
                          Found in src/Eye4web/ZfcUser/Pm/Form/NewConversationForm.php - About 1 hr to fix

                            Function opening has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    opening: function() {
                                        var cid = this.containerEventName,
                                            scroll = "scroll." + cid,
                                            resize = "resize."+cid,
                                            orient = "orientationchange."+cid,
                            Severity: Minor
                            Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                              Function select2 has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $.fn.select2 = function () {
                              
                                      var args = Array.prototype.slice.call(arguments, 0),
                                          opts,
                                          select2,
                              Severity: Minor
                              Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                                Function prepareOpts has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        prepareOpts: function () {
                                            var opts = this.parent.prepareOpts.apply(this, arguments),
                                                self=this;
                                
                                            // TODO validate placeholder is a string if specified
                                Severity: Minor
                                Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                                  Function addSelectedChoice has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          addSelectedChoice: function (data) {
                                              var enableChoice = !data.locked,
                                                  enabledItem = $(
                                                      "<li class='select2-search-choice'>" +
                                                      "    <div></div>" +
                                  Severity: Minor
                                  Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                                    Function val has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            val: function () {
                                                var val,
                                                    triggerChange = false,
                                                    data = null,
                                                    self = this,
                                    Severity: Minor
                                    Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix

                                      Method getInputFilterSpecification has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getInputFilterSpecification()
                                          {
                                              return [
                                                  [
                                                      'name' => 'headline',
                                      Severity: Minor
                                      Found in src/Eye4web/ZfcUser/Pm/Form/NewConversationForm.php - About 1 hr to fix

                                        Function populateResults has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                        populateResults: function(container, results, query) {
                                                            var populate, id=this.opts.id, liveRegion=this.liveRegion;
                                        
                                                            populate=function(results, container, depth) {
                                        
                                        
                                        Severity: Minor
                                        Found in data/public/select2-3.5.2/select2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language