gopheracademy/gcon

View on GitHub
assets/admin/global/plugins/jstree/dist/jstree.js

Summary

Maintainability
F
4 mos
Test Coverage

File jstree.js has 5569 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*globals jQuery, define, module, exports, require, window, document, postMessage */
(function (factory) {
    "use strict";
    if (typeof define === 'function' && define.amd) {
        define(['jquery'], factory);
Severity: Major
Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 wks to fix

    Function checkbox has 603 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.jstree.plugins.checkbox = function (options, parent) {
            this.bind = function () {
                parent.bind.call(this);
                this._data.checkbox.uto = false;
                this._data.checkbox.selected = [];
    Severity: Major
    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 days to fix

      Function _append_json_data has 371 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              _append_json_data : function (dom, data, cb, force_processing) {
                  if(this.element === null) { return; }
                  dom = this.get_node(dom);
                  dom.children = [];
                  dom.children_d = [];
      Severity: Major
      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 day to fix

        Function bind has 278 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                this.bind = function () {
                    parent.bind.call(this);
                    this._data.checkbox.uto = false;
                    this._data.checkbox.selected = [];
                    if(this.settings.checkbox.three_state) {
        Severity: Major
        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 day to fix

          Function func has 261 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          func = function (data, undefined) {
                              if(data.data) { data = data.data; }
                              var dat = data.dat,
                                  par = data.par,
                                  chd = [],
          Severity: Major
          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 day to fix

            Function bind has 227 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    bind : function () {
                        var word = '',
                            tout = null,
                            was_click = 0;
                        this.element
            Severity: Major
            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 day to fix

              Function redraw_node has 192 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      redraw_node : function (node, deep, is_callback, force_render) {
                          var obj = this.get_node(node),
                              par = false,
                              ind = false,
                              old = false,
              Severity: Major
              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 7 hrs to fix

                Function types has 166 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.jstree.plugins.types = function (options, parent) {
                        this.init = function (el, options) {
                            var i, j;
                            if(options && options.types && options.types['default']) {
                                for(i in options.types) {
                Severity: Major
                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 6 hrs to fix

                  Function search has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.jstree.plugins.search = function (options, parent) {
                          this.bind = function () {
                              parent.bind.call(this);
                  
                              this._data.search.str = "";
                  Severity: Major
                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 6 hrs to fix

                    Function move_node has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            move_node : function (obj, par, pos, callback, is_loaded, skip_redraw, origin) {
                                var t1, t2, old_par, old_pos, new_par, old_ins, is_multi, dpc, tmp, i, j, k, l, p;
                    
                                par = this.get_node(par);
                                pos = pos === undefined ? 0 : pos;
                    Severity: Major
                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 5 hrs to fix

                      Function search has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              $.vakata.search = function(pattern, txt, options) {
                                  options = options || {};
                                  options = $.extend({}, $.vakata.search.defaults, options);
                                  if(options.fuzzy !== false) {
                                      options.fuzzy = true;
                      Severity: Major
                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 4 hrs to fix

                        Function _parse_model_from_html has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _parse_model_from_html : function (d, p, ps) {
                                    if(!ps) { ps = []; }
                                    else { ps = [].concat(ps); }
                                    if(p) { ps.unshift(p); }
                                    var c, e, m = this._model.data,
                        Severity: Major
                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 4 hrs to fix

                          Function parse_nest has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                                  parse_nest = function (d, p, ps) {
                                                      if(!ps) { ps = []; }
                                                      else { ps = ps.concat(); }
                                                      if(p) { ps.unshift(p); }
                                                      var tid = false, i, j, c, e, tmp;
                          Severity: Major
                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                            Function _parse_model_from_json has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    _parse_model_from_json : function (d, p, ps) {
                                        if(!ps) { ps = []; }
                                        else { ps = ps.concat(); }
                                        if(p) { ps.unshift(p); }
                                        var tid = false, i, j, c, e, m = this._model.data, df = this._model.default_state, tmp;
                            Severity: Major
                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                              Function edit has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      edit : function (obj, default_text, callback) {
                                          var rtl, w, a, s, t, h1, h2, fn, tmp, cancel = false;
                                          obj = this.get_node(obj);
                                          if(!obj) { return false; }
                                          if(this.settings.core.check_callback === false) {
                              Severity: Major
                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                Function items has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        items : function (o, cb) { // Could be an object directly
                                            return {
                                                "create" : {
                                                    "separator_before"    : false,
                                                    "separator_after"    : true,
                                Severity: Major
                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

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

                                          copy_node : function (obj, par, pos, callback, is_loaded, skip_redraw, origin) {
                                              var t1, t2, dpc, tmp, i, j, node, old_par, new_par, old_ins, is_multi;
                                  
                                              par = this.get_node(par);
                                              pos = pos === undefined ? 0 : pos;
                                  Severity: Major
                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                    Function contextmenu has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $.jstree.plugins.contextmenu = function (options, parent) {
                                            this.bind = function () {
                                                parent.bind.call(this);
                                    
                                                var last_ts = 0, cto = null, ex, ey;
                                    Severity: Major
                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                      Function _parse_model_from_flat_json has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _parse_model_from_flat_json : function (d, p, ps) {
                                                  if(!ps) { ps = []; }
                                                  else { ps = ps.concat(); }
                                                  if(p) { ps.unshift(p); }
                                                  var tid = d.id.toString(),
                                      Severity: Major
                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                        Function parse_flat has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                                parse_flat = function (d, p, ps) {
                                                                    if(!ps) { ps = []; }
                                                                    else { ps = ps.concat(); }
                                                                    if(p) { ps.unshift(p); }
                                                                    var tid = d.id.toString(),
                                        Severity: Major
                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                          Function search has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                                  this.search = function (str, skip_async, show_only_matches, inside, append, show_only_matches_children) {
                                                      if(str === false || $.trim(str.toString()) === "") {
                                                          return this.clear_search();
                                                      }
                                                      inside = this.get_node(inside);
                                          Severity: Major
                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                                    if(ref && ref.length && ref.parent().is('.jstree-closed, .jstree-open, .jstree-leaf')) {
                                                                        off = ref.offset();
                                                                        rel = data.event.pageY - off.top;
                                                                        h = ref.outerHeight();
                                                                        if(rel < h / 3) {
                                            Severity: Critical
                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 hrs to fix

                                              Function _load_node has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                      _load_node : function (obj, callback) {
                                                          var s = this.settings.core.data, t;
                                                          // use original HTML
                                                          if(!s) {
                                                              if(obj.id === $.jstree.root) {
                                              Severity: Major
                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                Function drag has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                            drag : function (e) {
                                                                if(e.type === "touchmove" && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0]) {
                                                                    e.pageX = e.originalEvent.changedTouches[0].pageX;
                                                                    e.pageY = e.originalEvent.changedTouches[0].pageY;
                                                                    e.target = document.elementFromPoint(e.originalEvent.changedTouches[0].pageX - window.pageXOffset, e.originalEvent.changedTouches[0].pageY - window.pageYOffset);
                                                Severity: Major
                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                  Function wholerow has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      $.jstree.plugins.wholerow = function (options, parent) {
                                                          this.bind = function () {
                                                              parent.bind.call(this);
                                                  
                                                              this.element
                                                  Severity: Major
                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                    Function unique has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        $.jstree.plugins.unique = function (options, parent) {
                                                            this.check = function (chk, obj, par, pos, more) {
                                                                if(parent.check.call(this, chk, obj, par, pos, more) === false) { return false; }
                                                                obj = obj && obj.id ? obj : this.get_node(obj);
                                                                par = par && par.id ? par : this.get_node(par);
                                                    Severity: Major
                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                      Function open_node has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                              open_node : function (obj, callback, animation) {
                                                                  var t1, t2, d, t;
                                                                  if($.isArray(obj)) {
                                                                      obj = obj.slice();
                                                                      for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                      Severity: Major
                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                        Function create_node has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                create_node : function (par, node, pos, callback, is_loaded) {
                                                                    if(par === null) { par = $.jstree.root; }
                                                                    par = this.get_node(par);
                                                                    if(!par) { return false; }
                                                                    pos = pos === undefined ? "last" : pos;
                                                        Severity: Major
                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                          Function delete_node has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                                  delete_node : function (obj) {
                                                                      var t1, t2, par, pos, tmp, i, j, k, l, c, top, lft;
                                                                      if($.isArray(obj)) {
                                                                          obj = obj.slice();
                                                                          for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                          Severity: Major
                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                            Function set_state has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                    set_state : function (state, callback) {
                                                                        if(state) {
                                                                            if(state.core) {
                                                                                var res, n, t, _this, i;
                                                                                if(state.core.open) {
                                                            Severity: Major
                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                              Function show has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                          show : function (reference, position, data) {
                                                                              var o, e, x, y, w, h, dw, dh, cond = true;
                                                                              if(vakata_context.element && vakata_context.element.length) {
                                                                                  vakata_context.element.width('');
                                                                              }
                                                              Severity: Major
                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                Function massload has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    $.jstree.plugins.massload = function (options, parent) {
                                                                        this.init = function (el, options) {
                                                                            parent.init.call(this, el, options);
                                                                            this._data.massload = {};
                                                                        };
                                                                Severity: Major
                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                  Function _undetermined has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                          this._undetermined = function () {
                                                                              if(this.element === null) { return; }
                                                                              var i, j, k, l, o = {}, m = this._model.data, t = this.settings.checkbox.tie_selection, s = this._data[ t ? 'core' : 'checkbox' ].selected, p = [], tt = this;
                                                                              for(i = 0, j = s.length; i < j; i++) {
                                                                                  if(m[s[i]] && m[s[i]].parents) {
                                                                  Severity: Major
                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                    Function bind has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                            this.bind = function () {
                                                                                parent.bind.call(this);
                                                                    
                                                                                this.element
                                                                                    .on('ready.jstree set_state.jstree', $.proxy(function () {
                                                                    Severity: Major
                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                      Function load_node has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                              load_node : function (obj, callback) {
                                                                                  var k, l, i, j, c;
                                                                                  if($.isArray(obj)) {
                                                                                      this._load_nodes(obj.slice(), callback);
                                                                                      return true;
                                                                      Severity: Major
                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                        Function activate_node has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                                activate_node : function (obj, e) {
                                                                                    if(this.is_disabled(obj)) {
                                                                                        return false;
                                                                                    }
                                                                                    if(!e || typeof e !== 'object') {
                                                                        Severity: Major
                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                          Consider simplifying this complex logical expression.
                                                                          Open

                                                                                              if( (data.event.target === ins.element[0] || data.event.target === ins.get_container_ul()[0]) && ins.get_container_ul().children().length === 0) {
                                                                                                  ok = true;
                                                                                                  for(t1 = 0, t2 = data.data.nodes.length; t1 < t2; t1++) {
                                                                                                      ok = ok && ins.check( (data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (data.event.metaKey || data.event.ctrlKey)) ) ? "copy_node" : "move_node"), (data.data.origin && data.data.origin !== ins ? data.data.origin.get_node(data.data.nodes[t1]) : data.data.nodes[t1]), $.jstree.root, 'last', { 'dnd' : true, 'ref' : ins.get_node($.jstree.root), 'pos' : 'i', 'origin' : data.data.origin, 'is_multi' : (data.data.origin && data.data.origin !== ins), 'is_foreign' : (!data.data.origin) });
                                                                                                      if(!ok) { break; }
                                                                          Severity: Critical
                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 hrs to fix

                                                                            Function get_json has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                    get_json : function (obj, options, flat) {
                                                                                        obj = this.get_node(obj || $.jstree.root);
                                                                                        if(!obj) { return false; }
                                                                                        if(options && options.flat && !flat) { flat = []; }
                                                                                        var tmp = {
                                                                            Severity: Minor
                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

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

                                                                                      init : function (el, options) {
                                                                                          this._model = {
                                                                                              data : {},
                                                                                              changed : [],
                                                                                              force_full_redraw : false,
                                                                              Severity: Minor
                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

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

                                                                                        this.bind = function () {
                                                                                            parent.bind.call(this);
                                                                                
                                                                                            var last_ts = 0, cto = null, ex, ey;
                                                                                            this.element
                                                                                Severity: Minor
                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                  Function _parse has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                              _parse : function (o, is_callback) {
                                                                                                  if(!o) { return false; }
                                                                                                  if(!is_callback) {
                                                                                                      vakata_context.html        = "";
                                                                                                      vakata_context.items    = [];
                                                                                  Severity: Minor
                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                    Function check has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                            this.check = function (chk, obj, par, pos, more) {
                                                                                                if(parent.check.call(this, chk, obj, par, pos, more) === false) { return false; }
                                                                                                obj = obj && obj.id ? obj : this.get_node(obj);
                                                                                                par = par && par.id ? par : this.get_node(par);
                                                                                                if(!par || !par.children) { return true; }
                                                                                    Severity: Minor
                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

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

                                                                                              this.check = function (chk, obj, par, pos, more) {
                                                                                                  if(parent.check.call(this, chk, obj, par, pos, more) === false) { return false; }
                                                                                                  obj = obj && obj.id ? obj : this.get_node(obj);
                                                                                                  par = par && par.id ? par : this.get_node(par);
                                                                                                  var m = obj && obj.id ? (more && more.origin ? more.origin : $.jstree.reference(obj.id)) : null, tmp, d, i, j;
                                                                                      Severity: Minor
                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

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

                                                                                                this._load_nodes = function (nodes, callback, is_callback) {
                                                                                                    var s = this.settings.massload;
                                                                                                    if(is_callback && !$.isEmptyObject(this._data.massload)) {
                                                                                                        return parent._load_nodes.call(this, nodes, callback, is_callback);
                                                                                                    }
                                                                                        Severity: Minor
                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                          Function _append_html_data has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                                  _append_html_data : function (dom, data, cb) {
                                                                                                      dom = this.get_node(dom);
                                                                                                      dom.children = [];
                                                                                                      dom.children_d = [];
                                                                                                      var dat = data.is('ul') ? data.children() : data,
                                                                                          Severity: Minor
                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                            Function close_node has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                                    close_node : function (obj, animation) {
                                                                                                        var t1, t2, t, d;
                                                                                                        if($.isArray(obj)) {
                                                                                                            obj = obj.slice();
                                                                                                            for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                            Severity: Minor
                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                              Function get_next_dom has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                      get_next_dom : function (obj, strict) {
                                                                                                          var tmp;
                                                                                                          obj = this.get_node(obj, true);
                                                                                                          if(obj[0] === this.element[0]) {
                                                                                                              tmp = this._firstChild(this.get_container_ul()[0]);
                                                                                              Severity: Minor
                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                Function state has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    $.jstree.plugins.state = function (options, parent) {
                                                                                                        this.bind = function () {
                                                                                                            parent.bind.call(this);
                                                                                                            var bind = $.proxy(function () {
                                                                                                                this.element.on(this.settings.state.events, $.proxy(function () {
                                                                                                Severity: Minor
                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                  Consider simplifying this complex logical expression.
                                                                                                  Open

                                                                                                                      if(obj && obj.id && obj.id !== $.jstree.root && (e.which === 1 || e.type === "touchstart") &&
                                                                                                                          (this.settings.dnd.is_draggable === true || ($.isFunction(this.settings.dnd.is_draggable) && this.settings.dnd.is_draggable.call(this, (mlt > 1 ? this.get_top_selected(true) : [obj]), e)))
                                                                                                                      ) {
                                                                                                                          this.element.trigger('mousedown.jstree');
                                                                                                                          return $.vakata.dnd.start(e, { 'jstree' : true, 'origin' : this, 'obj' : this.get_node(obj,true), 'nodes' : mlt > 1 ? this.get_top_selected() : [obj.id] }, '<div id="jstree-dnd" class="jstree-' + this.get_theme() + ' jstree-' + this.get_theme() + '-' + this.get_theme_variant() + ' ' + ( this.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ) + '"><i class="jstree-icon jstree-er"></i>' + txt + '<ins class="jstree-copy" style="display:none;">+</ins></div>');
                                                                                                  Severity: Critical
                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                    Consider simplifying this complex logical expression.
                                                                                                    Open

                                                                                                                    if(v.text && (!s.search_leaves_only || (v.state.loaded && v.children.length === 0)) && ( (s.search_callback && s.search_callback.call(this, str, v)) || (!s.search_callback && f.search(v.text).isMatch) ) ) {
                                                                                                                        r.push(i);
                                                                                                                        p = p.concat(v.parents);
                                                                                                                    }
                                                                                                    Severity: Critical
                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                      Consider simplifying this complex logical expression.
                                                                                                      Open

                                                                                                                  if(!this.settings.core.multiple || (!e.metaKey && !e.ctrlKey && !e.shiftKey) || (e.shiftKey && (!this._data.core.last_clicked || !this.get_parent(obj) || this.get_parent(obj) !== this._data.core.last_clicked.parent ) )) {
                                                                                                                      if(!this.settings.core.multiple && (e.metaKey || e.ctrlKey || e.shiftKey) && this.is_selected(obj)) {
                                                                                                                          this.deselect_node(obj, false, e);
                                                                                                                      }
                                                                                                                      else {
                                                                                                      Severity: Critical
                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                        Function rslt has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                                        rslt = function (rslt, worker) {
                                                                                                                            if(this.element === null) { return; }
                                                                                                                            this._cnt = rslt.cnt;
                                                                                                                            this._model.data = rslt.mod; // breaks the reference in load_node - careful
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                          Function changed has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              $.jstree.plugins.changed = function (options, parent) {
                                                                                                                  var last = [];
                                                                                                                  this.trigger = function (ev, data) {
                                                                                                                      var i, j;
                                                                                                                      if(!data) {
                                                                                                          Severity: Minor
                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                            Function start has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                        start : function (e, data, html) {
                                                                                                                            if(e.type === "touchstart" && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0]) {
                                                                                                                                e.pageX = e.originalEvent.changedTouches[0].pageX;
                                                                                                                                e.pageY = e.originalEvent.changedTouches[0].pageY;
                                                                                                                                e.target = document.elementFromPoint(e.originalEvent.changedTouches[0].pageX - window.pageXOffset, e.originalEvent.changedTouches[0].pageY - window.pageYOffset);
                                                                                                            Severity: Minor
                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                              Function refresh has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                      refresh : function (skip_loading, forget_state) {
                                                                                                                          this._data.core.state = forget_state === true ? {} : this.get_state();
                                                                                                                          if(forget_state && $.isFunction(forget_state)) { this._data.core.state = forget_state.call(this, this._data.core.state); }
                                                                                                                          this._cnt = 0;
                                                                                                                          this._model.data = {};
                                                                                                              Severity: Minor
                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                Function get_prev_dom has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                        get_prev_dom : function (obj, strict) {
                                                                                                                            var tmp;
                                                                                                                            obj = this.get_node(obj, true);
                                                                                                                            if(obj[0] === this.element[0]) {
                                                                                                                                tmp = this.get_container_ul()[0].lastChild;
                                                                                                                Severity: Minor
                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                  Function set_icon has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                          set_icon : function (obj, icon) {
                                                                                                                              var t1, t2, dom, old;
                                                                                                                              if($.isArray(obj)) {
                                                                                                                                  obj = obj.slice();
                                                                                                                                  for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                  Severity: Minor
                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                    Function bind has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                            this.bind = function () {
                                                                                                                                parent.bind.call(this);
                                                                                                                    
                                                                                                                                this._data.search.str = "";
                                                                                                                                this._data.search.dom = $();
                                                                                                                    Severity: Minor
                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                      Function get_node has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                              get_node : function (obj, as_dom) {
                                                                                                                                  if(obj && obj.id) {
                                                                                                                                      obj = obj.id;
                                                                                                                                  }
                                                                                                                                  var dom;
                                                                                                                      Severity: Minor
                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                        Function set_id has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                                set_id : function (obj, id) {
                                                                                                                                    obj = this.get_node(obj);
                                                                                                                                    if(!obj || obj.id === $.jstree.root) { return false; }
                                                                                                                                    var i, j, m = this._model.data;
                                                                                                                                    id = id.toString();
                                                                                                                        Severity: Minor
                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                          Function sort has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              $.jstree.plugins.sort = function (options, parent) {
                                                                                                                                  this.bind = function () {
                                                                                                                                      parent.bind.call(this);
                                                                                                                                      this.element
                                                                                                                                          .on("model.jstree", $.proxy(function (e, data) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                            Function blur has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                                    "blur" : $.proxy(function (e) {
                                                                                                                                                        e.stopImmediatePropagation();
                                                                                                                                                        e.preventDefault();
                                                                                                                                                        var i = s.children(".jstree-rename-input"),
                                                                                                                                                            v = i.val(),
                                                                                                                            Severity: Minor
                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                              Function select_node has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                      select_node : function (obj, supress_event, prevent_open, e) {
                                                                                                                                          var dom, t1, t2, th;
                                                                                                                                          if($.isArray(obj)) {
                                                                                                                                              obj = obj.slice();
                                                                                                                                              for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                              Severity: Minor
                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                Function trigger has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                        this.trigger = function (ev, data) {
                                                                                                                                            var i, j;
                                                                                                                                            if(!data) {
                                                                                                                                                data = {};
                                                                                                                                            }
                                                                                                                                Severity: Minor
                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                  Function get_json has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                          this.get_json = function (obj, options, flat) {
                                                                                                                                              var i, j,
                                                                                                                                                  m = this._model.data,
                                                                                                                                                  opt = options ? $.extend(true, {}, options, {no_id:false}) : {},
                                                                                                                                                  tmp = parent.get_json.call(this, obj, opt, flat);
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                    Function create_node has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                            this.create_node = function (par, node, pos, callback, is_loaded) {
                                                                                                                                                if(!node || node.text === undefined) {
                                                                                                                                                    if(par === null) {
                                                                                                                                                        par = $.jstree.root;
                                                                                                                                                    }
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                      Open

                                                                                                                                                      if((!more || !more.is_multi) && (obj.id === par.id || $.inArray(obj.id, par.children) === pos || $.inArray(par.id, obj.children_d) !== -1)) {
                                                                                                                                                          this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_01', 'reason' : 'Moving parent inside child', 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                          return false;
                                                                                                                                                      }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                        Open

                                                                                                                                                    if(chc === false || ($.isFunction(chc) && chc.call(this, chk, obj, par, pos, more) === false) || (chc && chc[chk] === false)) {
                                                                                                                                                        this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : 'User config for core.check_callback prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                        return false;
                                                                                                                                                    }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                          Open

                                                                                                                                                          if(ins && ins._data && ins._data.dnd) {
                                                                                                                                                              marker.attr('class', 'jstree-' + ins.get_theme() + ( ins.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ));
                                                                                                                                                              data.helper
                                                                                                                                                                  .children().attr('class', 'jstree-' + ins.get_theme() + ' jstree-' + ins.get_theme() + '-' + ins.get_theme_variant() + ' ' + ( ins.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ))
                                                                                                                                                                  .find('.jstree-copy').first()[ data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (data.event.metaKey || data.event.ctrlKey))) ? 'show' : 'hide' ]();
                                                                                                                                          Severity: Major
                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                            Open

                                                                                                                                                                        if(key === 27 || key === 13 || key === 37 || key === 38 || key === 39 || key === 40 || key === 32) {
                                                                                                                                                                            e.stopImmediatePropagation();
                                                                                                                                                                        }
                                                                                                                                            Severity: Major
                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                              Open

                                                                                                                                                              if(data && data.data && data.data.jstree) {
                                                                                                                                                                  data.helper.find('.jstree-copy').first()[ data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (e.metaKey || e.ctrlKey))) ? 'show' : 'hide' ]();
                                                                                                                                                                  if(lastev) {
                                                                                                                                                                      lastev.metaKey = e.metaKey;
                                                                                                                                                                      lastev.ctrlKey = e.ctrlKey;
                                                                                                                                              Severity: Major
                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 1 hr to fix

                                                                                                                                                Function copy_node has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                        copy_node : function (obj, par, pos, callback, is_loaded, skip_redraw, origin) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 50 mins to fix

                                                                                                                                                  Function move_node has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                          move_node : function (obj, par, pos, callback, is_loaded, skip_redraw, origin) {
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 50 mins to fix

                                                                                                                                                    Function search has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                            this.search = function (str, skip_async, show_only_matches, inside, append, show_only_matches_children) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                                          if(!ok) {
                                                                                                                                                                                              if(ins && ins.last_error) { laster = ins.last_error(); }
                                                                                                                                                                                              break;
                                                                                                                                                                                          }
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                                    if(this.settings.core.expand_selected_onload) {
                                                                                                                                                                                                        var tmp = [], i, j;
                                                                                                                                                                                                        for(i = 0, j = this._data.core.selected.length; i < j; i++) {
                                                                                                                                                                                                            tmp = tmp.concat(this._model.data[this._data.core.selected[i]].parents);
                                                                                                                                                                                                        }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                                  if(tmp && tmp.length) {
                                                                                                                                                                                                      tmp.attr('aria-selected', false).children('.jstree-anchor').removeClass(t ? 'jstree-clicked' : 'jstree-checked');
                                                                                                                                                                                                  }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                                if(op === "move_node" && v === 'a' && (data.data.origin && data.data.origin === ins) && p === ins.get_parent(data.data.nodes[t1])) {
                                                                                                                                                                                                    pr = ins.get_node(p);
                                                                                                                                                                                                    if(ps > $.inArray(data.data.nodes[t1], pr.children)) {
                                                                                                                                                                                                        ps -= 1;
                                                                                                                                                                                                    }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                                      for(i = 0, j = p.children.length; i < j; i++) {
                                                                                                                                                                                                          c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
                                                                                                                                                                                                      }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                                        if(tmp && tmp.length) {
                                                                                                                                                                                                            tmp.attr('aria-selected', true).children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
                                                                                                                                                                                                        }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                                      if(o[tmp2.parents[k]] === undefined && tmp2.parents[k] !== $.jstree.root) {
                                                                                                                                                                                                          o[tmp2.parents[k]] = true;
                                                                                                                                                                                                          p.push(tmp2.parents[k]);
                                                                                                                                                                                                      }
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                                            if(m[dpc[i]].state[ t ? 'selected' : 'checked' ]) {
                                                                                                                                                                                                                for(k = 0, l = m[dpc[i]].children_d.length; k < l; k++) {
                                                                                                                                                                                                                    m[m[dpc[i]].children_d[k]].state[ t ? 'selected' : 'checked' ] = true;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                this._data[ t ? 'core' : 'checkbox' ].selected = this._data[ t ? 'core' : 'checkbox' ].selected.concat(m[dpc[i]].children_d);
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                                      if (bestLoc > MATCH_LOCATION) {
                                                                                                                                                                                                          start = Math.max(1, 2 * MATCH_LOCATION - bestLoc);
                                                                                                                                                                                                      } else {
                                                                                                                                                                                                          break;
                                                                                                                                                                                                      }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                    if(options.types['default'].hasOwnProperty(j) && options.types[i][j] === undefined) {
                                                                                                                                                                                                        options.types[i][j] = options.types['default'][j];
                                                                                                                                                                                                    }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                                                  if(c === j) {
                                                                                                                                                                                                                      p.state[ t ? 'selected' : 'checked' ] = true;
                                                                                                                                                                                                                      this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
                                                                                                                                                                                                                      tmp = this.get_node(p, true);
                                                                                                                                                                                                                      if(tmp && tmp.length) {
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                                    if(tmp && tmp.length) {
                                                                                                                                                                                                                        tmp.attr('aria-selected', true).children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
                                                                                                                                                                                                                    }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                                      if(tmp && tmp.length) {
                                                                                                                                                                                                                          tmp.attr('aria-selected', true).children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
                                                                                                                                                                                                                      }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 45 mins to fix

                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                Open

                                                                                                                                                                                                        if(e.which !== 32 && e.which !== 13 && (e.shiftKey || e.ctrlKey || e.altKey || e.metaKey)) { return true; }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 40 mins to fix

                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          if(cto && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0] && (Math.abs(ex - e.pageX) > 50 || Math.abs(ey - e.pageY) > 50)) {
                                                                                                                                                                                                              clearTimeout(cto);
                                                                                                                                                                                                          }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 40 mins to fix

                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                    Open

                                                                                                                                                                                                            if(tmp.valid_children !== undefined && tmp.valid_children !== -1 && $.inArray((obj.type || 'default'), tmp.valid_children) === -1) {
                                                                                                                                                                                                                this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_02', 'reason' : 'valid_children prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                return false;
                                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 40 mins to fix

                                                                                                                                                                                      Function check has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                      Open

                                                                                                                                                                                              this.check = function (chk, obj, par, pos, more) {
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 35 mins to fix

                                                                                                                                                                                        Function create_node has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                        Open

                                                                                                                                                                                                this.create_node = function (par, node, pos, callback, is_loaded) {
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 35 mins to fix

                                                                                                                                                                                          Function create_node has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                          Open

                                                                                                                                                                                                  create_node : function (par, node, pos, callback, is_loaded) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 35 mins to fix

                                                                                                                                                                                            Function check has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                            Open

                                                                                                                                                                                                    check : function (chk, obj, par, pos, more) {
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 35 mins to fix

                                                                                                                                                                                              Function check has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                              Open

                                                                                                                                                                                                      this.check = function (chk, obj, par, pos, more) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 35 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                    return i;
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                              return tmp && tmp.className && tmp.className.indexOf('jstree-node') !== -1 ? $(tmp) : false;
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    return true;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                  if(!node) { return false; }
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                            return this._append_json_data(obj, t, function (status) {
                                                                                                                                                                                                                                callback.call(this, status);
                                                                                                                                                                                                                            });
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                return this._append_html_data(obj, $($.parseHTML(s)).filter(function () { return this.nodeType !== 3; }), function (status) {
                                                                                                                                                                                                                                    callback.call(this, status);
                                                                                                                                                                                                                                });
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                  return callback.call(this, false);
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                            return callback.call(this, false);
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                              return obj.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first();
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                          return callback.call(this, false);
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                      return obj.id;
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  return tmp;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                              if(!node) { return false; }
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(end) { return; }
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                      return $(tmp);
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                            return i;
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                      return true;
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                        return node.id;
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                              return tmp.id;
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 30 mins to fix

                                                                                                                                                                                                                                                    TODO found
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!node || !node.length) { return false; } // TODO: quick toggle

                                                                                                                                                                                                                                                    TODO found
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                        // TODO: now check works by checking for each node individually, how about max_children, unique, etc?

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                while(p && p.id !== $.jstree.root && !p.state[ t ? 'selected' : 'checked' ]) {
                                                                                                                                                                                                                                                                                    c = 0;
                                                                                                                                                                                                                                                                                    for(i = 0, j = p.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                                        c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4980..4997

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 285.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    while(p && p.id !== $.jstree.root && !p.state[ t ? 'selected' : 'checked' ]) {
                                                                                                                                                                                                                                                                                        c = 0;
                                                                                                                                                                                                                                                                                        for(i = 0, j = p.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                                            c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4952..4969

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 285.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            cut : function (obj) {
                                                                                                                                                                                                                                                                if(!obj) { obj = this._data.core.selected.concat(); }
                                                                                                                                                                                                                                                                if(!$.isArray(obj)) { obj = [obj]; }
                                                                                                                                                                                                                                                                if(!obj.length) { return false; }
                                                                                                                                                                                                                                                                var tmp = [], o, t1, t2;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4191..4211

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 263.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            copy : function (obj) {
                                                                                                                                                                                                                                                                if(!obj) { obj = this._data.core.selected.concat(); }
                                                                                                                                                                                                                                                                if(!$.isArray(obj)) { obj = [obj]; }
                                                                                                                                                                                                                                                                if(!obj.length) { return false; }
                                                                                                                                                                                                                                                                var tmp = [], o, t1, t2;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4164..4184

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 263.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        while(p && p.id !== $.jstree.root) {
                                                                                                                                                                                                                                                                                            c = 0;
                                                                                                                                                                                                                                                                                            for(i = 0, j = p.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                                                c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4858..4875

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 257.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    while(par && par.id !== $.jstree.root) {
                                                                                                                                                                                                                                                                                        c = 0;
                                                                                                                                                                                                                                                                                        for(i = 0, j = par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                                            c += m[par.children[i]].state[ t ? 'selected' : 'checked' ];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4814..4831

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 257.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            disable_node : function (obj) {
                                                                                                                                                                                                                                                                var t1, t2;
                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2773..2795

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 221.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            enable_node : function (obj) {
                                                                                                                                                                                                                                                                var t1, t2;
                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2802..2824

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 221.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(tmp.original && tmp.original.state && tmp.original.state.undetermined && tmp.original.state.undetermined === true) {
                                                                                                                                                                                                                                                                                if(o[tmp.id] === undefined && tmp.id !== $.jstree.root) {
                                                                                                                                                                                                                                                                                    o[tmp.id] = true;
                                                                                                                                                                                                                                                                                    p.push(tmp.id);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5073..5084

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 194.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(!tmp2.state.loaded && tmp2.original && tmp2.original.state && tmp2.original.state.undetermined && tmp2.original.state.undetermined === true) {
                                                                                                                                                                                                                                                                                    if(o[tmp2.id] === undefined && tmp2.id !== $.jstree.root) {
                                                                                                                                                                                                                                                                                        o[tmp2.id] = true;
                                                                                                                                                                                                                                                                                        p.push(tmp2.id);
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5057..5068

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 194.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                case 40:
                                                                                                                                                                                                                                                                                    if(vakata_context.is_visible) {
                                                                                                                                                                                                                                                                                        o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first();
                                                                                                                                                                                                                                                                                        if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first(); }
                                                                                                                                                                                                                                                                                        o.addClass("vakata-context-hover").children('a').focus();
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6084..6092

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 187.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                case 38:
                                                                                                                                                                                                                                                                                    if(vakata_context.is_visible) {
                                                                                                                                                                                                                                                                                        o = vakata_context.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first();
                                                                                                                                                                                                                                                                                        if(!o.length) { o = vakata_context.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last(); }
                                                                                                                                                                                                                                                                                        o.addClass("vakata-context-hover").children('a').focus();
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6100..6108

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 187.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(e.type === "touchstart" && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0]) {
                                                                                                                                                                                                                                                                        e.pageX = e.originalEvent.changedTouches[0].pageX;
                                                                                                                                                                                                                                                                        e.pageY = e.originalEvent.changedTouches[0].pageY;
                                                                                                                                                                                                                                                                        e.target = document.elementFromPoint(e.originalEvent.changedTouches[0].pageX - window.pageXOffset, e.originalEvent.changedTouches[0].pageY - window.pageYOffset);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6551..6555
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6651..6655

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 173.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(e.type === "touchmove" && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0]) {
                                                                                                                                                                                                                                                                        e.pageX = e.originalEvent.changedTouches[0].pageX;
                                                                                                                                                                                                                                                                        e.pageY = e.originalEvent.changedTouches[0].pageY;
                                                                                                                                                                                                                                                                        e.target = document.elementFromPoint(e.originalEvent.changedTouches[0].pageX - window.pageXOffset, e.originalEvent.changedTouches[0].pageY - window.pageYOffset);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6517..6521
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6651..6655

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 173.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(e.type === "touchend" && e.originalEvent && e.originalEvent.changedTouches && e.originalEvent.changedTouches[0]) {
                                                                                                                                                                                                                                                                        e.pageX = e.originalEvent.changedTouches[0].pageX;
                                                                                                                                                                                                                                                                        e.pageY = e.originalEvent.changedTouches[0].pageY;
                                                                                                                                                                                                                                                                        e.target = document.elementFromPoint(e.originalEvent.changedTouches[0].pageX - window.pageXOffset, e.originalEvent.changedTouches[0].pageY - window.pageYOffset);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6517..6521
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6551..6555

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 173.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    case "create_node":
                                                                                                                                                                                                                                                                        i = ($.inArray(n, c) === -1);
                                                                                                                                                                                                                                                                        if(!i) {
                                                                                                                                                                                                                                                                            this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_04', 'reason' : 'Child with name ' + n + ' already exists. Preventing: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7609..7614

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 160.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    case "copy_node":
                                                                                                                                                                                                                                                                        i = ($.inArray(n, c) === -1);
                                                                                                                                                                                                                                                                        if(!i) {
                                                                                                                                                                                                                                                                            this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_02', 'reason' : 'Child with name ' + n + ' already exists. Preventing: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7603..7608

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 160.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    if(obj.length === 1) {
                                                                                                                                                                                                                                                                        obj = obj[0];
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    else {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3878..3893

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 135.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    if(obj.length === 1) {
                                                                                                                                                                                                                                                                        obj = obj[0];
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    else {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4051..4066

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 135.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        this._data.search.dom = $(this.element[0].querySelectorAll('#' + $.map(r, function (v) { return "0123456789".indexOf(v[0]) !== -1 ? '\\3' + v[0] + ' ' + v.substr(1).replace($.jstree.idregex,'\\$&') : v.replace($.jstree.idregex,'\\$&'); }).join(', #')));
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6964..6964

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 133.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        this._data.search.dom = this._data.search.dom.add($(this.element[0].querySelectorAll('#' + $.map(r, function (v) { return "0123456789".indexOf(v[0]) !== -1 ? '\\3' + v[0] + ' ' + v.substr(1).replace($.jstree.idregex,'\\$&') : v.replace($.jstree.idregex,'\\$&'); }).join(', #'))));
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6960..6960

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 133.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(this.scrollWidth > this.offsetWidth) {
                                                                                                                                                                                                                                                                                if(o.left + t.width() - e.pageX < $.vakata.dnd.settings.scroll_proximity)    { vakata_dnd.scroll_l = 1; }
                                                                                                                                                                                                                                                                                if(e.pageX - o.left < $.vakata.dnd.settings.scroll_proximity)                { vakata_dnd.scroll_l = -1; }
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6598..6601

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 132.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(this.scrollHeight > this.offsetHeight) {
                                                                                                                                                                                                                                                                                if(o.top + t.height() - e.pageY < $.vakata.dnd.settings.scroll_proximity)    { vakata_dnd.scroll_t = 1; }
                                                                                                                                                                                                                                                                                if(e.pageY - o.top < $.vakata.dnd.settings.scroll_proximity)                { vakata_dnd.scroll_t = -1; }
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6602..6605

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 132.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    tmp = {
                                                                                                                                                                                                                                                                        id            : tid,
                                                                                                                                                                                                                                                                        text        : d.text || '',
                                                                                                                                                                                                                                                                        icon        : d.icon !== undefined ? d.icon : true,
                                                                                                                                                                                                                                                                        parent        : p,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1524..1537

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 127.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    tmp = {
                                                                                                                                                                                                                                                                                        id            : tid,
                                                                                                                                                                                                                                                                                        text        : d.text || '',
                                                                                                                                                                                                                                                                                        icon        : d.icon !== undefined ? d.icon : true,
                                                                                                                                                                                                                                                                                        parent        : p,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1999..2012

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 127.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                tmp = {
                                                                                                                                                                                                                                                                                    id            : false,
                                                                                                                                                                                                                                                                                    text        : typeof d === 'string' ? d : '',
                                                                                                                                                                                                                                                                                    icon        : typeof d === 'object' && d.icon !== undefined ? d.icon : true,
                                                                                                                                                                                                                                                                                    parent        : p,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2098..2111

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 123.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                tmp = {
                                                                                                                                                                                                                                                                    id            : false,
                                                                                                                                                                                                                                                                    text        : typeof d === 'string' ? d : '',
                                                                                                                                                                                                                                                                    icon        : typeof d === 'object' && d.icon !== undefined ? d.icon : true,
                                                                                                                                                                                                                                                                    parent        : p,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1614..1627

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 123.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(this._model.data[this._data.checkbox.selected[i]]) {
                                                                                                                                                                                                                                                                        this._model.data[this._data.checkbox.selected[i]].state.checked = false;
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3172..3176
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3197..3201
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5347..5351

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 122.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = this._data.core.selected.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(this._model.data[this._data.core.selected[i]]) {
                                                                                                                                                                                                                                                                        this._model.data[this._data.core.selected[i]].state.selected = true;
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3197..3201
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5347..5351
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5371..5375

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 122.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = this._data.core.selected.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(this._model.data[this._data.core.selected[i]]) {
                                                                                                                                                                                                                                                                        this._model.data[this._data.core.selected[i]].state.selected = false;
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3172..3176
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5347..5351
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5371..5375

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 122.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(this._model.data[this._data.checkbox.selected[i]]) {
                                                                                                                                                                                                                                                                        this._model.data[this._data.checkbox.selected[i]].state.checked = true;
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3172..3176
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3197..3201
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5371..5375

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 122.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(tmp.max_children !== undefined && tmp.max_children !== -1 && tmp.max_children === par.children.length) {
                                                                                                                                                                                                                                                                                this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_01', 'reason' : 'max_children prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3842..3845
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7467..7470
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7480..7483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(tmp.valid_children !== undefined && tmp.valid_children !== -1 && $.inArray((obj.type || 'default'), tmp.valid_children) === -1) {
                                                                                                                                                                                                                                                                                this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_02', 'reason' : 'valid_children prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3842..3845
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7463..7466
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7480..7483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                switch(pos) {
                                                                                                                                                                                                                                                                    case "before":
                                                                                                                                                                                                                                                                        pos = $.inArray(par.id, new_par.children);
                                                                                                                                                                                                                                                                        break;
                                                                                                                                                                                                                                                                    case "after" :
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4083..4100

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                switch(pos) {
                                                                                                                                                                                                                                                                    case "before":
                                                                                                                                                                                                                                                                        pos = $.inArray(par.id, new_par.children);
                                                                                                                                                                                                                                                                        break;
                                                                                                                                                                                                                                                                    case "after" :
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3919..3936

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(tmp.max_depth !== undefined && tmp.max_depth !== -1 && tmp.max_depth < d) {
                                                                                                                                                                                                                                                                                    this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_03', 'reason' : 'max_depth prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3842..3845
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7463..7466
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7467..7470

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(chc === false || ($.isFunction(chc) && chc.call(this, chk, obj, par, pos, more) === false) || (chc && chc[chk] === false)) {
                                                                                                                                                                                                                                                                    this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : 'User config for core.check_callback prevents function: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7463..7466
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7467..7470
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7480..7483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 121.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    .on("click.jstree", ".jstree-wholerow", function (e) {
                                                                                                                                                                                                                                                                            e.stopImmediatePropagation();
                                                                                                                                                                                                                                                                            var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
                                                                                                                                                                                                                                                                            $(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).focus();
                                                                                                                                                                                                                                                                        })
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7720..7724

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 119.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    .on("click.jstree", ".jstree-leaf > .jstree-ocl", $.proxy(function (e) {
                                                                                                                                                                                                                                                                            e.stopImmediatePropagation();
                                                                                                                                                                                                                                                                            var tmp = $.Event('click', { metaKey : e.metaKey, ctrlKey : e.ctrlKey, altKey : e.altKey, shiftKey : e.shiftKey });
                                                                                                                                                                                                                                                                            $(e.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(tmp).focus();
                                                                                                                                                                                                                                                                        }, this))
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7715..7719

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 119.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!this.check("move_node", obj, new_par, pos, { 'core' : true, 'origin' : origin, 'is_multi' : (old_ins && old_ins._id && old_ins._id !== this._id), 'is_foreign' : (!old_ins || !old_ins._id) })) {
                                                                                                                                                                                                                                                                    this.settings.core.error.call(this, this._data.core.last_error);
                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4102..4105

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 117.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!this.check("copy_node", obj, new_par, pos, { 'core' : true, 'origin' : origin, 'is_multi' : (old_ins && old_ins._id && old_ins._id !== this._id), 'is_foreign' : (!old_ins || !old_ins._id) })) {
                                                                                                                                                                                                                                                                    this.settings.core.error.call(this, this._data.core.last_error);
                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3938..3941

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 117.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    for(k = 0, l = tmp[i].children_d.length; k < l; k++) {
                                                                                                                                                                                                                                                                        if(obj[tmp[i].children_d[k]]) {
                                                                                                                                                                                                                                                                            delete obj[tmp[i].children_d[k]];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3250..3256

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 116.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    for(k = 0, l = tmp[i].children_d.length; k < l; k++) {
                                                                                                                                                                                                                                                                        if(obj[tmp[i].children_d[k]]) {
                                                                                                                                                                                                                                                                            delete obj[tmp[i].children_d[k]];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5426..5432

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 116.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(obj.id === $.jstree.root) {
                                                                                                                                                                                                                                                                        return this._append_html_data(obj, $($.parseHTML(s)).filter(function () { return this.nodeType !== 3; }), function (status) {
                                                                                                                                                                                                                                                                            callback.call(this, status);
                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1377..1386

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 115.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(obj.id === $.jstree.root) {
                                                                                                                                                                                                                                                                        return this._append_json_data(obj, t, function (status) {
                                                                                                                                                                                                                                                                            callback.call(this, status);
                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1390..1399

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 115.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    for(i = 0, j = obj.childNodes.length; i < j; i++) {
                                                                                                                                                                                                                                                                        if(obj.childNodes[i] && obj.childNodes[i].className && obj.childNodes[i].className.indexOf("jstree-anchor") !== -1) {
                                                                                                                                                                                                                                                                            tmp = obj.childNodes[i];
                                                                                                                                                                                                                                                                            break;
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2454..2459
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7017..7022

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 113.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    for(i = 0, j = par.childNodes.length; i < j; i++) {
                                                                                                                                                                                                                                                                        if(par.childNodes[i] && par.childNodes[i].className && par.childNodes[i].className.indexOf('jstree-children') !== -1) {
                                                                                                                                                                                                                                                                            tmp = par.childNodes[i];
                                                                                                                                                                                                                                                                            break;
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5103..5108
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7017..7022

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 113.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        for(i = 0, j = obj.childNodes.length; i < j; i++) {
                                                                                                                                                                                                                                                                            if(obj.childNodes[i] && obj.childNodes[i].className && obj.childNodes[i].className.indexOf("jstree-anchor") !== -1) {
                                                                                                                                                                                                                                                                                tmp = obj.childNodes[i];
                                                                                                                                                                                                                                                                                break;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2454..2459
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5103..5108

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 113.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.data) {
                                                                                                                                                                                                                                                                                    tmp.data = d.data;
                                                                                                                                                                                                                                                                                    if(d.data.jstree) {
                                                                                                                                                                                                                                                                                        for(i in d.data.jstree) {
                                                                                                                                                                                                                                                                                            if(d.data.jstree.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1549..1558
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2024..2033
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2125..2134

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 112.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.data) {
                                                                                                                                                                                                                                                                                    tmp.data = d.data;
                                                                                                                                                                                                                                                                                    if(d.data.jstree) {
                                                                                                                                                                                                                                                                                        for(i in d.data.jstree) {
                                                                                                                                                                                                                                                                                            if(d.data.jstree.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1641..1650
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2024..2033
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2125..2134

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 112.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.data) {
                                                                                                                                                                                                                                                                    tmp.data = d.data;
                                                                                                                                                                                                                                                                    if(d.data.jstree) {
                                                                                                                                                                                                                                                                        for(i in d.data.jstree) {
                                                                                                                                                                                                                                                                            if(d.data.jstree.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1549..1558
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1641..1650
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2125..2134

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 112.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.data) {
                                                                                                                                                                                                                                                                    tmp.data = d.data;
                                                                                                                                                                                                                                                                    if(d.data.jstree) {
                                                                                                                                                                                                                                                                        for(i in d.data.jstree) {
                                                                                                                                                                                                                                                                            if(d.data.jstree.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1549..1558
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1641..1650
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2024..2033

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 112.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        return a.call(this, str, $.proxy(function (d) {
                                                                                                                                                                                                                                                                                if(d && d.d) { d = d.d; }
                                                                                                                                                                                                                                                                                this._load_nodes(!$.isArray(d) ? [] : $.vakata.array_unique(d), function () {
                                                                                                                                                                                                                                                                                    this.search(str, true, show_only_matches, inside, append);
                                                                                                                                                                                                                                                                                }, true);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6927..6932

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 104.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            .done($.proxy(function (d) {
                                                                                                                                                                                                                                                                                if(d && d.d) { d = d.d; }
                                                                                                                                                                                                                                                                                this._load_nodes(!$.isArray(d) ? [] : $.vakata.array_unique(d), function () {
                                                                                                                                                                                                                                                                                    this.search(str, true, show_only_matches, inside, append);
                                                                                                                                                                                                                                                                                }, true);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6908..6913

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 104.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    for(i = 0, j = new_par.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                        this._model.data[new_par.parents[i]].children_d = this._model.data[new_par.parents[i]].children_d.concat(tmp);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4119..4121

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 101.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = new_par.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                    this._model.data[new_par.parents[i]].children_d = this._model.data[new_par.parents[i]].children_d.concat(dpc);
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3975..3977

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 101.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                "action"            : function (data) {
                                                                                                                                                                                                                                                                                    var inst = $.jstree.reference(data.reference),
                                                                                                                                                                                                                                                                                        obj = inst.get_node(data.reference);
                                                                                                                                                                                                                                                                                    if(inst.is_selected(obj)) {
                                                                                                                                                                                                                                                                                        inst.copy(inst.get_top_selected());
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5607..5616
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5629..5638

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 99.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                "action"            : function (data) {
                                                                                                                                                                                                                                                                                    var inst = $.jstree.reference(data.reference),
                                                                                                                                                                                                                                                                                        obj = inst.get_node(data.reference);
                                                                                                                                                                                                                                                                                    if(inst.is_selected(obj)) {
                                                                                                                                                                                                                                                                                        inst.cut(inst.get_top_selected());
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5607..5616
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5645..5654

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 99.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        "action"            : function (data) {
                                                                                                                                                                                                                                                                            var inst = $.jstree.reference(data.reference),
                                                                                                                                                                                                                                                                                obj = inst.get_node(data.reference);
                                                                                                                                                                                                                                                                            if(inst.is_selected(obj)) {
                                                                                                                                                                                                                                                                                inst.delete_node(inst.get_selected());
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5629..5638
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5645..5654

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 99.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(this._model.data[obj.children_d[k]].state.selected) {
                                                                                                                                                                                                                                                                            c = true;
                                                                                                                                                                                                                                                                            this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.children_d[k]);
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5465..5468

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 94.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(this._model.data[tmp.children_d[k]].state.checked) {
                                                                                                                                                                                                                                                                                c = true;
                                                                                                                                                                                                                                                                                this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, tmp.children_d[k]);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1198..1201

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 94.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    for(i = 0, j = par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                        dpc.push(s ? m[par.children[i]].text : m[par.children[i]].text.toLowerCase());
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7590..7592

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 92.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                    c.push(s ? m[par.children[i]].text : m[par.children[i]].text.toLowerCase());
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7641..7643

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 92.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.hide_node(obj[t1], true);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2870..2877

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 90.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.show_node(obj[t1], true);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2834..2841

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 90.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        data.helper
                                                                                                                                                                                                                                                                            .children().attr('class', 'jstree-' + ins.get_theme() + ' jstree-' + ins.get_theme() + '-' + ins.get_theme_variant() + ' ' + ( ins.settings.core.themes.responsive ? ' jstree-dnd-responsive' : '' ))
                                                                                                                                                                                                                                                                            .find('.jstree-copy').first()[ data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (data.event.metaKey || data.event.ctrlKey))) ? 'show' : 'hide' ]();
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6389..6389

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 88.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        lastmv.ins[ data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (data.event.metaKey || data.event.ctrlKey))) ? 'copy_node' : 'move_node' ](nodes, lastmv.par, lastmv.pos, false, false, false, data.data.origin);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6279..6281

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 88.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                old_pos = old_ins && old_ins._id && old_par && old_ins._model.data[old_par] && old_ins._model.data[old_par].children ? $.inArray(obj.id, old_ins._model.data[old_par].children) : -1;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4155..4155

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 86.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                this.trigger('copy_node', { "node" : tmp, "original" : obj, "parent" : new_par.id, "position" : pos, "old_parent" : old_par, "old_position" : old_ins && old_ins._id && old_par && old_ins._model.data[old_par] && old_ins._model.data[old_par].children ? $.inArray(obj.id, old_ins._model.data[old_par].children) : -1,'is_multi' : (old_ins && old_ins._id && old_ins._id !== this._id), 'is_foreign' : (!old_ins || !old_ins._id), 'old_instance' : old_ins, 'new_instance' : this });
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3902..3902

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 86.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!obj.state.checkbox_disabled) {
                                                                                                                                                                                                                                                                    obj.state.checkbox_disabled = true;
                                                                                                                                                                                                                                                                    if(dom && dom.length) {
                                                                                                                                                                                                                                                                        dom.children('.jstree-anchor').children('.jstree-checkbox').addClass('jstree-checkbox-disabled');
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5219..5232

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 83.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(obj.state.checkbox_disabled) {
                                                                                                                                                                                                                                                                    obj.state.checkbox_disabled = false;
                                                                                                                                                                                                                                                                    if(dom && dom.length) {
                                                                                                                                                                                                                                                                        dom.children('.jstree-anchor').children('.jstree-checkbox').removeClass('jstree-checkbox-disabled');
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5183..5196

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 83.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(this._data.core.worker_queue.length) {
                                                                                                                                                                                                                                                                                    this._append_json_data.apply(this, this._data.core.worker_queue.shift());
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                else {
                                                                                                                                                                                                                                                                                    this._data.core.working = false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1841..1846
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1858..1863

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(this._data.core.worker_queue.length) {
                                                                                                                                                                                                                                                                                    this._append_json_data.apply(this, this._data.core.worker_queue.shift());
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                else {
                                                                                                                                                                                                                                                                                    this._data.core.working = false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1833..1838
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1858..1863

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(this._data.core.worker_queue.length) {
                                                                                                                                                                                                                                                                            this._append_json_data.apply(this, this._data.core.worker_queue.shift());
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                        else {
                                                                                                                                                                                                                                                                            this._data.core.working = false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1833..1838
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1841..1846

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.deselect_node(obj[t1], supress_event, e);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2500..2506

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.open_node(obj[t1], callback, animation);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3131..3137

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.close_node(obj[t1], animation);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.check_node(obj[t1], e);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.uncheck_node(obj[t1], e);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.set_text(obj[t1], val);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.set_icon(obj[t1], icon);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.set_type(obj[t1], type);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3712..3718
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if($.isArray(obj)) {
                                                                                                                                                                                                                                                                    obj = obj.slice();
                                                                                                                                                                                                                                                                    for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
                                                                                                                                                                                                                                                                        this.rename_node(obj[t1], val);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2616..2622
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3526..3532
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4497..4503
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5267..5273
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5307..5313
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7530..7536

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    return s.call(this, nodes, $.proxy(function (data) {
                                                                                                                                                                                                                                                                        if(data) {
                                                                                                                                                                                                                                                                            for(var i in data) {
                                                                                                                                                                                                                                                                                if(data.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                    this._data.massload[i] = data[i];
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6741..6750

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        .done($.proxy(function (data,t,x) {
                                                                                                                                                                                                                                                                                if(data) {
                                                                                                                                                                                                                                                                                    for(var i in data) {
                                                                                                                                                                                                                                                                                        if(data.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            this._data.massload[i] = data[i];
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6721..6730

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 80.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                col.slice(0, ind).each($.proxy(function (i, v) {
                                                                                                                                                                                                                                                                                    if($(v).text().toLowerCase().indexOf(word) === 0) {
                                                                                                                                                                                                                                                                                        $(v).focus();
                                                                                                                                                                                                                                                                                        end = true;
                                                                                                                                                                                                                                                                                        return false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 758..764

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 79.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                col.slice(0, ind + 1).each($.proxy(function (i, v) {
                                                                                                                                                                                                                                                                                    if($(v).text().toLowerCase().charAt(0) === chr) {
                                                                                                                                                                                                                                                                                        $(v).focus();
                                                                                                                                                                                                                                                                                        end = true;
                                                                                                                                                                                                                                                                                        return false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 780..786

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 79.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                col.slice(ind + 1).each($.proxy(function (i, v) {
                                                                                                                                                                                                                                                                                    if($(v).text().toLowerCase().charAt(0) === chr) {
                                                                                                                                                                                                                                                                                        $(v).focus();
                                                                                                                                                                                                                                                                                        end = true;
                                                                                                                                                                                                                                                                                        return false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 790..796

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 79.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                col.slice(ind).each($.proxy(function (i, v) {
                                                                                                                                                                                                                                                                                    if($(v).text().toLowerCase().indexOf(word) === 0) {
                                                                                                                                                                                                                                                                                        $(v).focus();
                                                                                                                                                                                                                                                                                        end = true;
                                                                                                                                                                                                                                                                                        return false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 768..774

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 79.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!pos.toString().match(/^(before|after)$/) && !is_loaded && !this.is_loaded(par)) {
                                                                                                                                                                                                                                                                    return this.load_node(par, function () { this.copy_node(obj, par, pos, callback, true, false, origin); });
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3874..3876

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 78.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!pos.toString().match(/^(before|after)$/) && !is_loaded && !this.is_loaded(par)) {
                                                                                                                                                                                                                                                                    return this.load_node(par, function () { this.move_node(obj, par, pos, callback, true, false, origin); });
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4047..4049

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 78.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.state === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.state) {
                                                                                                                                                                                                                                                                                        if(d.state.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.state[i] = d.state[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.a_attr === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.a_attr) {
                                                                                                                                                                                                                                                                                        if(d.a_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.a_attr[i] = d.a_attr[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.a_attr === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.a_attr) {
                                                                                                                                                                                                                                                                        if(d.a_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.a_attr[i] = d.a_attr[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.li_attr === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.li_attr) {
                                                                                                                                                                                                                                                                                        if(d.li_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.li_attr[i] = d.li_attr[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.li_attr === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.li_attr) {
                                                                                                                                                                                                                                                                                        if(d.li_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.li_attr[i] = d.li_attr[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.state === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.state) {
                                                                                                                                                                                                                                                                                        if(d.state.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.state[i] = d.state[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && typeof d.a_attr === 'object') {
                                                                                                                                                                                                                                                                                    for (i in d.a_attr) {
                                                                                                                                                                                                                                                                                        if(d.a_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                                            tmp.a_attr[i] = d.a_attr[i];
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.li_attr === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.li_attr) {
                                                                                                                                                                                                                                                                        if(d.li_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.li_attr[i] = d.li_attr[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.state === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.state) {
                                                                                                                                                                                                                                                                        if(d.state.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.state[i] = d.state[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.li_attr === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.li_attr) {
                                                                                                                                                                                                                                                                        if(d.li_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.li_attr[i] = d.li_attr[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.state === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.state) {
                                                                                                                                                                                                                                                                        if(d.state.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.state[i] = d.state[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2158..2164

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && typeof d.a_attr === 'object') {
                                                                                                                                                                                                                                                                    for (i in d.a_attr) {
                                                                                                                                                                                                                                                                        if(d.a_attr.hasOwnProperty(i)) {
                                                                                                                                                                                                                                                                            tmp.a_attr[i] = d.a_attr[i];
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 11 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1559..1565
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1566..1572
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1576..1582
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1651..1657
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1658..1664
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1674..1680
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2034..2040
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2041..2047
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2051..2057
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2135..2141
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2142..2148

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 76.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                this._model.data[$.jstree.root] = {
                                                                                                                                                                                                                                                                    id : $.jstree.root,
                                                                                                                                                                                                                                                                    parent : null,
                                                                                                                                                                                                                                                                    parents : [],
                                                                                                                                                                                                                                                                    children : [],
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3404..3411

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                this._model.data[$.jstree.root] = {
                                                                                                                                                                                                                                                                    id : $.jstree.root,
                                                                                                                                                                                                                                                                    parent : null,
                                                                                                                                                                                                                                                                    parents : [],
                                                                                                                                                                                                                                                                    children : [],
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 486..493

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!obj.state.hidden) {
                                                                                                                                                                                                                                                                    obj.state.hidden = true;
                                                                                                                                                                                                                                                                    this._node_changed(obj.parent);
                                                                                                                                                                                                                                                                    if(!skip_redraw) {
                                                                                                                                                                                                                                                                        this.redraw();
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2882..2895

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(obj.state.hidden) {
                                                                                                                                                                                                                                                                    obj.state.hidden = false;
                                                                                                                                                                                                                                                                    this._node_changed(obj.parent);
                                                                                                                                                                                                                                                                    if(!skip_redraw) {
                                                                                                                                                                                                                                                                        this.redraw();
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2846..2859

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(!tmp[i].children.length) {
                                                                                                                                                                                                                                                                        obj.push(tmp[i].id);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3274..3278

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    if(!tmp[i].children.length) {
                                                                                                                                                                                                                                                                        obj.push(tmp[i].id);
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5452..5456

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            var vakata_dnd = {
                                                                                                                                                                                                                                                                element    : false,
                                                                                                                                                                                                                                                                target    : false,
                                                                                                                                                                                                                                                                is_down    : false,
                                                                                                                                                                                                                                                                is_drag    : false,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6468..6483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    vakata_dnd = {
                                                                                                                                                                                                                                                                        element    : false,
                                                                                                                                                                                                                                                                        target    : false,
                                                                                                                                                                                                                                                                        is_down    : false,
                                                                                                                                                                                                                                                                        is_drag    : false,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6428..6443

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            d
                                                                                                                                                                                                                                                                                .children(".jstree-children").css("display","none").end()
                                                                                                                                                                                                                                                                                .removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded", true)
                                                                                                                                                                                                                                                                                .children(".jstree-children").stop(true, true)
                                                                                                                                                                                                                                                                                    .slideDown(animation, function () {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2639..2646

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        d
                                                                                                                                                                                                                                                                            .children(".jstree-children").attr("style","display:block !important").end()
                                                                                                                                                                                                                                                                            .removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded", false)
                                                                                                                                                                                                                                                                            .children(".jstree-children").stop(true, true).slideUp(animation, function () {
                                                                                                                                                                                                                                                                                this.style.display = "";
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2546..2553

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(s.indexOf('down') !== -1 && dom.length) {
                                                                                                                                                                                                                                                                                    dom.find('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked').parent().attr('aria-selected', true);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4940..4942

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(s.indexOf('down') !== -1 && dom.length) {
                                                                                                                                                                                                                                                                                    dom.find('.jstree-anchor').removeClass(t ? 'jstree-clicked' : 'jstree-checked').parent().attr('aria-selected', false);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4879..4881

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 72.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    if(tmp) {
                                                                                                                                                                                                                                                                        chd.push(tmp);
                                                                                                                                                                                                                                                                        dpc.push(tmp);
                                                                                                                                                                                                                                                                        if(m[tmp].children_d.length) {
                                                                                                                                                                                                                                                                            dpc = dpc.concat(m[tmp].children_d);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1746..1752

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(tmp) {
                                                                                                                                                                                                                                                                                    chd.push(tmp);
                                                                                                                                                                                                                                                                                    dpc.push(tmp);
                                                                                                                                                                                                                                                                                    if(m[tmp].children_d.length) {
                                                                                                                                                                                                                                                                                        dpc = dpc.concat(m[tmp].children_d);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1438..1444

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                ok = ok && ins.check( (data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (data.event.metaKey || data.event.ctrlKey)) ) ? "copy_node" : "move_node"), (data.data.origin && data.data.origin !== ins ? data.data.origin.get_node(data.data.nodes[t1]) : data.data.nodes[t1]), $.jstree.root, 'last', { 'dnd' : true, 'ref' : ins.get_node($.jstree.root), 'pos' : 'i', 'origin' : data.data.origin, 'is_multi' : (data.data.origin && data.data.origin !== ins), 'is_foreign' : (!data.data.origin) });
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6347..6347

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        ok = ok && ( (ins && ins.settings && ins.settings.dnd && ins.settings.dnd.check_while_dragging === false) || ins.check(op, (data.data.origin && data.data.origin !== ins ? data.data.origin.get_node(data.data.nodes[t1]) : data.data.nodes[t1]), p, ps, { 'dnd' : true, 'ref' : ins.get_node(ref.parent()), 'pos' : v, 'origin' : data.data.origin, 'is_multi' : (data.data.origin && data.data.origin !== ins), 'is_foreign' : (!data.data.origin) }) );
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6288..6288

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                    tmp[i >= pos ? i+1 : i] = par.children[i];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3979..3981
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4123..4125

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 69.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = new_par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                    dpc[i >= pos ? i+1 : i] = new_par.children[i];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3683..3685
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3979..3981

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 69.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    for(i = 0, j = new_par.children.length; i < j; i++) {
                                                                                                                                                                                                                                                                        dpc[i >= pos ? i+1 : i] = new_par.children[i];
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3683..3685
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4123..4125

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 69.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                case 40: // down
                                                                                                                                                                                                                                                                                    e.preventDefault();
                                                                                                                                                                                                                                                                                    o = this.get_next_dom(e.currentTarget);
                                                                                                                                                                                                                                                                                    if(o && o.length) { o.children('.jstree-anchor').focus(); }
                                                                                                                                                                                                                                                                                    break;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 644..648

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 69.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                case 38: // up
                                                                                                                                                                                                                                                                                    e.preventDefault();
                                                                                                                                                                                                                                                                                    o = this.get_prev_dom(e.currentTarget);
                                                                                                                                                                                                                                                                                    if(o && o.length) { o.children('.jstree-anchor').focus(); }
                                                                                                                                                                                                                                                                                    break;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 659..663

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 69.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : x }) };
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1372..1372

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 68.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : f }) };
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1366..1366

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 68.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            _firstChild : function (dom) {
                                                                                                                                                                                                                                                                dom = dom ? dom.firstChild : null;
                                                                                                                                                                                                                                                                while(dom !== null && dom.nodeType !== 1) {
                                                                                                                                                                                                                                                                    dom = dom.nextSibling;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 918..924
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 932..938

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 67.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            _nextSibling : function (dom) {
                                                                                                                                                                                                                                                                dom = dom ? dom.nextSibling : null;
                                                                                                                                                                                                                                                                while(dom !== null && dom.nodeType !== 1) {
                                                                                                                                                                                                                                                                    dom = dom.nextSibling;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 904..910
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 932..938

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 67.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            _previousSibling : function (dom) {
                                                                                                                                                                                                                                                                dom = dom ? dom.previousSibling : null;
                                                                                                                                                                                                                                                                while(dom !== null && dom.nodeType !== 1) {
                                                                                                                                                                                                                                                                    dom = dom.previousSibling;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 904..910
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 918..924

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 67.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            Math.abs(e.pageX - vakata_dnd.init_x) > (vakata_dnd.is_touch ? $.vakata.dnd.settings.threshold_touch : $.vakata.dnd.settings.threshold) ||
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6560..6560

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 67.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            Math.abs(e.pageY - vakata_dnd.init_y) > (vakata_dnd.is_touch ? $.vakata.dnd.settings.threshold_touch : $.vakata.dnd.settings.threshold)
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6559..6559

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 67.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.children && d.children === true) {
                                                                                                                                                                                                                                                                                    tmp.state.loaded = false;
                                                                                                                                                                                                                                                                                    tmp.children = [];
                                                                                                                                                                                                                                                                                    tmp.children_d = [];
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1692..1696
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2058..2062
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2176..2180

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.children && d.children === true) {
                                                                                                                                                                                                                                                                    tmp.state.loaded = false;
                                                                                                                                                                                                                                                                    tmp.children = [];
                                                                                                                                                                                                                                                                    tmp.children_d = [];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1583..1587
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1692..1696
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2176..2180

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.children && d.children === true) {
                                                                                                                                                                                                                                                                    tmp.state.loaded = false;
                                                                                                                                                                                                                                                                    tmp.children = [];
                                                                                                                                                                                                                                                                    tmp.children_d = [];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1583..1587
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1692..1696
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2058..2062

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.data && d.data.jstree && d.data.jstree.icon) {
                                                                                                                                                                                                                                                                                    tmp.icon = d.data.jstree.icon;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1543..1545
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2018..2020
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2119..2121

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.children && d.children === true) {
                                                                                                                                                                                                                                                                                    tmp.state.loaded = false;
                                                                                                                                                                                                                                                                                    tmp.children = [];
                                                                                                                                                                                                                                                                                    tmp.children_d = [];
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1583..1587
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2058..2062
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2176..2180

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(d && d.data && d.data.jstree && d.data.jstree.icon) {
                                                                                                                                                                                                                                                                                    tmp.icon = d.data.jstree.icon;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1635..1637
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2018..2020
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2119..2121

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.data && d.data.jstree && d.data.jstree.icon) {
                                                                                                                                                                                                                                                                    tmp.icon = d.data.jstree.icon;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1543..1545
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1635..1637
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2018..2020

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(d && d.data && d.data.jstree && d.data.jstree.icon) {
                                                                                                                                                                                                                                                                    tmp.icon = d.data.jstree.icon;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1543..1545
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1635..1637
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2119..2121

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        return this._append_html_data(obj, $($.parseHTML(d)).filter(function () { return this.nodeType !== 3; }), function (status) { callback.call(this, status); });
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1391..1393

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        return this._append_html_data(obj, $($.parseHTML(s)).filter(function () { return this.nodeType !== 3; }), function (status) {
                                                                                                                                                                                                                                                                            callback.call(this, status);
                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1363..1363

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 66.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(strict) {
                                                                                                                                                                                                                                                                    tmp = obj[0];
                                                                                                                                                                                                                                                                    do {
                                                                                                                                                                                                                                                                        tmp = this._nextSibling(tmp);
                                                                                                                                                                                                                                                                    } while (tmp && tmp.offsetHeight === 0);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1063..1069

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 65.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(strict) {
                                                                                                                                                                                                                                                                    tmp = obj[0];
                                                                                                                                                                                                                                                                    do {
                                                                                                                                                                                                                                                                        tmp = this._previousSibling(tmp);
                                                                                                                                                                                                                                                                    } while (tmp && tmp.offsetHeight === 0);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1018..1024

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 65.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            get_text : function (obj) {
                                                                                                                                                                                                                                                                obj = this.get_node(obj);
                                                                                                                                                                                                                                                                return (!obj || obj.id === $.jstree.root) ? false : obj.text;
                                                                                                                                                                                                                                                            },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4534..4537

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 63.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            get_icon : function (obj) {
                                                                                                                                                                                                                                                                obj = this.get_node(obj);
                                                                                                                                                                                                                                                                return (!obj || obj.id === $.jstree.root) ? false : obj.icon;
                                                                                                                                                                                                                                                            },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3511..3514

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 63.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(this._data.core.themes.variant) {
                                                                                                                                                                                                                                                                    this.element.removeClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.variant);
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4434..4436

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 63.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(variant_name) {
                                                                                                                                                                                                                                                                    this.element.addClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.variant);
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4430..4432

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 63.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
                                                                                                                                                                                                                                                                                            tmp.original.state.undetermined = false;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4889..4891
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4907..4909
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4918..4920

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                    if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
                                                                                                                                                                                                                                                                                        tmp.original.state.undetermined = false;
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4850..4852
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4907..4909
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4918..4920

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
                                                                                                                                                                                                                                                                                            tmp.original.state.undetermined = false;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4850..4852
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4889..4891
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4907..4909

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
                                                                                                                                                                                                                                                                                            tmp.original.state.undetermined = false;
                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4850..4852
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4889..4891
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4918..4920

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                new_par = (!pos.toString().match(/^(before|after)$/) || par.id === $.jstree.root) ? par : this.get_node(par.parent);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3899..3899

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(state.core.scroll && state.core.scroll.top !== undefined) {
                                                                                                                                                                                                                                                                                this.element.scrollTop(state.core.scroll.top);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3346..3348

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                new_par = (!pos.toString().match(/^(before|after)$/) || par.id === $.jstree.root) ? par : this.get_node(par.parent);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4071..4071

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(state.core.scroll && state.core.scroll.left !== undefined) {
                                                                                                                                                                                                                                                                                this.element.scrollLeft(state.core.scroll.left);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3349..3351

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 62.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            this.show_checkboxes = function () { this._data.core.themes.checkboxes = true; this.get_container_ul().removeClass("jstree-no-checkboxes"); };
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5133..5133

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 61.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            this.hide_checkboxes = function () { this._data.core.themes.checkboxes = false; this.get_container_ul().addClass("jstree-no-checkboxes"); };
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5127..5127

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 61.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = obj.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                    m[obj.parents[i]].children_d[$.inArray(obj.id, m[obj.parents[i]].children_d)] = id;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3486..3488

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 60.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        (s.indexOf('up') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.parents) === -1)
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4931..4931

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 60.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = obj.children_d.length; i < j; i++) {
                                                                                                                                                                                                                                                                    m[obj.children_d[i]].parents[$.inArray(obj.id, m[obj.children_d[i]].parents)] = id;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3479..3481

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 60.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        (s.indexOf('down') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.children_d) === -1) &&
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4932..4932

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 60.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(par.id === $.jstree.root) {
                                                                                                                                                                                                                                                                    if(pos === "before") { pos = "first"; }
                                                                                                                                                                                                                                                                    if(pos === "after") { pos = "last"; }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4079..4082

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(par.id === $.jstree.root) {
                                                                                                                                                                                                                                                                    if(pos === "before") { pos = "first"; }
                                                                                                                                                                                                                                                                    if(pos === "after") { pos = "last"; }
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3636..3639

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            toggle_dots : function () { if(this._data.core.themes.dots) { this.hide_dots(); } else { this.show_dots(); } },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4458..4458
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4488..4488

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            toggle_icons : function () { if(this._data.core.themes.icons) { this.hide_icons(); } else { this.show_icons(); } },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4458..4458
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4473..4473

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            toggle_stripes : function () { if(this._data.core.themes.stripes) { this.hide_stripes(); } else { this.show_stripes(); } },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4473..4473
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4488..4488

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        "action"            : function (data) {
                                                                                                                                                                                                                                                                            var inst = $.jstree.reference(data.reference),
                                                                                                                                                                                                                                                                                obj = inst.get_node(data.reference);
                                                                                                                                                                                                                                                                            inst.edit(obj);
                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5664..5668

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                "action"            : function (data) {
                                                                                                                                                                                                                                                                                    var inst = $.jstree.reference(data.reference),
                                                                                                                                                                                                                                                                                        obj = inst.get_node(data.reference);
                                                                                                                                                                                                                                                                                    inst.paste(obj);
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5595..5599

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!this.check("delete_node", obj, par, pos)) {
                                                                                                                                                                                                                                                                    this.settings.core.error.call(this, this._data.core.last_error);
                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3664..3667

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!this.check("create_node", node, par, pos)) {
                                                                                                                                                                                                                                                                    this.settings.core.error.call(this, this._data.core.last_error);
                                                                                                                                                                                                                                                                    return false;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3759..3762

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 59.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            themes            : {
                                                                                                                                                                                                                                                                /**
                                                                                                                                                                                                                                                                 * the name of the theme to use (if left as `false` the default theme is used)
                                                                                                                                                                                                                                                                 * @name $.jstree.defaults.core.themes.name
                                                                                                                                                                                                                                                                 */
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6780..6835

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 58.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(dw > ww && ww - (e.pageX - dl) < $.vakata.dnd.settings.scroll_proximity)    { vakata_dnd.scroll_l = 1; }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6618..6618

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 58.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(dh > wh && wh - (e.pageY - dt) < $.vakata.dnd.settings.scroll_proximity)    { vakata_dnd.scroll_t = 1; }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6620..6620

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 58.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                        $.jstree.defaults.search = {
                                                                                                                                                                                                                                                            /**
                                                                                                                                                                                                                                                             * a jQuery-like AJAX config, which jstree uses if a server should be queried for results. 
                                                                                                                                                                                                                                                             * 
                                                                                                                                                                                                                                                             * A `str` (which is the search string) parameter will be added with the request, an optional `inside` parameter will be added if the search is limited to a node id. The expected result is a JSON array with nodes that need to be opened so that matching nodes will be revealed.
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 384..425

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 58.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                m[dpc[i]].state.checked = m[dpc[i]].state.checked || (m[dpc[i]].original && m[dpc[i]].original.state && m[dpc[i]].original.state.checked);
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7392..7392

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 57.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(m[dpc[i]].data && m[dpc[i]].data.jstree && m[dpc[i]].data.jstree.type && t[m[dpc[i]].data.jstree.type]) {
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4768..4768

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 57.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(dw > ww && e.pageX - dl < $.vakata.dnd.settings.scroll_proximity)        { vakata_dnd.scroll_l = -1; }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6617..6617

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 56.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        if(dh > wh && e.pageY - dt < $.vakata.dnd.settings.scroll_proximity)        { vakata_dnd.scroll_t = -1;  }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6619..6619

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 56.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(data.li_attr['class']) {
                                                                                                                                                                                                                                                                    data.li_attr['class'] = data.li_attr['class'].replace('jstree-closed','').replace('jstree-open','');
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1973..1975

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 56.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(data.a_attr['class']) {
                                                                                                                                                                                                                                                                    data.a_attr['class'] = data.a_attr['class'].replace('jstree-clicked','').replace('jstree-disabled','');
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1970..1972

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 56.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    obj[tmp[i].id] = tmp[i];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3247..3249

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = tmp.length; i < j; i++) {
                                                                                                                                                                                                                                                                    obj[tmp[i].id] = tmp[i];
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5423..5425

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            hide_stripes : function () { this._data.core.themes.stripes = false; this.get_container_ul().removeClass("jstree-striped"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4448..4448
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4463..4463
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4468..4468
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4478..4478
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4483..4483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            show_icons : function () { this._data.core.themes.icons = true; this.get_container_ul().removeClass("jstree-no-icons"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4448..4448
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4453..4453
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4463..4463
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4468..4468
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4483..4483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            hide_icons : function () { this._data.core.themes.icons = false; this.get_container_ul().addClass("jstree-no-icons"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4448..4448
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4453..4453
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4463..4463
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4468..4468
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4478..4478

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            hide_dots : function () { this._data.core.themes.dots = false; this.get_container_ul().addClass("jstree-no-dots"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4448..4448
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4453..4453
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4463..4463
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4478..4478
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4483..4483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            show_stripes : function () { this._data.core.themes.stripes = true; this.get_container_ul().addClass("jstree-striped"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4453..4453
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4463..4463
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4468..4468
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4478..4478
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4483..4483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            show_dots : function () { this._data.core.themes.dots = true; this.get_container_ul().removeClass("jstree-no-dots"); },
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 5 other locations - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4448..4448
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4453..4453
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4468..4468
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4478..4478
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4483..4483

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : 'style="margin-left:0px;"') + ">&#160;<"+"/a><"+"/li>";
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5897..5897

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            str += "<"+"li class='vakata-context-separator'><"+"a href='#' " + ($.vakata.context.settings.icons ? '' : 'style="margin-left:0px;"') + ">&#160;<"+"/a><"+"/li>";
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5877..5877

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 53.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            for(i = 0, j = p.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                                m[p.parents[i]].children_d = m[p.parents[i]].children_d.concat(dpc);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1448..1450
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1756..1758

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                for(i = 0, j = p.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                    m[p.parents[i]].children_d = m[p.parents[i]].children_d.concat(dpc);
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1730..1732
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1756..1758

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            for(i = 0, j = p.parents.length; i < j; i++) {
                                                                                                                                                                                                                                                                                m[p.parents[i]].children_d = m[p.parents[i]].children_d.concat(dpc);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1448..1450
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1730..1732

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(tmp.li_attr.id && !tmp.id) {
                                                                                                                                                                                                                                                                                    tmp.id = tmp.li_attr.id.toString();
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2149..2151

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(tmp.li_attr.id && !tmp.id) {
                                                                                                                                                                                                                                                                    tmp.id = tmp.li_attr.id.toString();
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1665..1667

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            is_disabled : function (obj) {
                                                                                                                                                                                                                                                                obj = this.get_node(obj);
                                                                                                                                                                                                                                                                return obj && obj.state && obj.state.disabled;
                                                                                                                                                                                                                                                            },
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1139..1142

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            is_loading : function (obj) {
                                                                                                                                                                                                                                                                obj = this.get_node(obj);
                                                                                                                                                                                                                                                                return obj && obj.state && obj.state.loading;
                                                                                                                                                                                                                                                            },
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2763..2766

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                old_ins = origin ? origin : (this._model.data[obj.id] ? this : $.jstree.reference(obj.id));
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 4072..4072

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                old_ins = origin ? origin : (this._model.data[obj.id] ? this : $.jstree.reference(obj.id));
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3900..3900

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(tmp.icon === undefined || tmp.icon === null || tmp.icon === "") {
                                                                                                                                                                                                                                                                                    tmp.icon = true;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 4 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1638..1640
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1946..1948
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2021..2023
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2122..2124

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                if(tmp.icon === undefined || tmp.icon === null || tmp.icon === "") {
                                                                                                                                                                                                                                                                                    tmp.icon = true;
                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 4 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1546..1548
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1946..1948
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2021..2023
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2122..2124

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(data.icon === undefined || data.icon === null || data.icon === "") {
                                                                                                                                                                                                                                                                    data.icon = true;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 4 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1546..1548
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1638..1640
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2021..2023
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2122..2124

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(tmp.icon === undefined || tmp.icon === null || tmp.icon === "") {
                                                                                                                                                                                                                                                                    tmp.icon = true;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 4 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1546..1548
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1638..1640
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1946..1948
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2122..2124

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(tmp.icon === undefined || tmp.icon === null || tmp.icon === "") {
                                                                                                                                                                                                                                                                    tmp.icon = true;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 4 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1546..1548
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1638..1640
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1946..1948
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 2021..2023

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                this._data.core.selected = this._model.data[$.jstree.root].children_d.concat();
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5346..5346

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                this._data.checkbox.selected = this._model.data[$.jstree.root].children_d.concat();
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3171..3171

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                        this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $($.parseHTML(d)).filter(function () { return this.nodeType !== 3; }) : d, function (status) {
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6760..6760

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    return this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $($.parseHTML(d)).filter(function () { return this.nodeType !== 3; }) : d, function (status) {
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 1340..1340

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!supress_event) {
                                                                                                                                                                                                                                                                    this.trigger('changed', { 'action' : 'select_all', 'selected' : this._data.core.selected, 'old_selection' : tmp });
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3212..3214

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                if(!supress_event) {
                                                                                                                                                                                                                                                                    this.trigger('changed', { 'action' : 'deselect_all', 'selected' : this._data.core.selected, 'old_selection' : tmp });
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3185..3187

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                return full ? $.map(this._data.core.selected, $.proxy(function (i) { return this.get_node(i); }, this)) : this._data.core.selected.slice();
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5410..5410

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                return full ? $.map(this._data.checkbox.selected, $.proxy(function (i) { return this.get_node(i); }, this)) : this._data.checkbox.selected;
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3236..3236

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        vakata_context.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children('a').focus();
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6095..6095

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                        vakata_context.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children('a').focus();
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 6079..6079

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, obj.id);
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3145..3145

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(tmp[i].a_attr && tmp[i].a_attr.id) {
                                                                                                                                                                                                                                                                                delete tmp[i].a_attr.id;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7415..7417

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(tmp[i].li_attr && tmp[i].li_attr.id) {
                                                                                                                                                                                                                                                                                delete tmp[i].li_attr.id;
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 7418..7420

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 5321..5321

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 48.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(this._model.data[i].state.opened) {
                                                                                                                                                                                                                                                                                state.core.open.push(i);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3311..3313

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 46.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            if(this._model.data[i].state.selected) {
                                                                                                                                                                                                                                                                                state.core.selected.push(i);
                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in assets/admin/global/plugins/jstree/dist/jstree.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                    assets/admin/global/plugins/jstree/dist/jstree.js on lines 3308..3310

                                                                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                                                                    This issue has a mass of 46.

                                                                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                                                                    There are no issues that match your filters.

                                                                                                                                                                                                                                                    Category
                                                                                                                                                                                                                                                    Status