gopheracademy/gcon

View on GitHub
assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js

Summary

Maintainability
F
1 yr
Test Coverage

File wysihtml5-0.3.0.js has 6898 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license wysihtml5 v0.3.0
 * https://github.com/xing/wysihtml5
 *
 * Author: Christopher Blum (https://github.com/tiff)
Severity: Major
Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 wks to fix

    Function parse has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring.
    Open

    wysihtml5.dom.parse = (function() {
      
      /**
       * It's not possible to use a XMLParser/DOMParser as HTML5 is not always well-formed XML
       * new DOMParser().parseFromString('<img src="foo.gif">') will cause a parseError since the
    Severity: Minor
    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 days to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function parse has 288 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    wysihtml5.dom.parse = (function() {
      
      /**
       * It's not possible to use a XMLParser/DOMParser as HTML5 is not always well-formed XML
       * new DOMParser().parseFromString('<img src="foo.gif">') will cause a parseError since the
    Severity: Major
    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 day to fix

      Function createPrototypeRange has 181 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function createPrototypeRange(constructor, boundaryUpdater, detacher) {
              function createBeforeAfterNodeSetter(isBefore, isStart) {
                  return function(node) {
                      assertNotDetached(this);
                      assertValidNodeType(node, beforeAfterNodeTypes);
      Severity: Major
      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 7 hrs to fix

        Function browser has 158 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        wysihtml5.browser = (function() {
          var userAgent   = navigator.userAgent,
              testElement = document.createElement("div"),
              // Browser sniffing is unfortunately needed since some behaviors are impossible to feature detect
              isIE        = userAgent.indexOf("MSIE")         !== -1 && userAgent.indexOf("Opera") === -1,
        Severity: Major
        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 6 hrs to fix

          Function observe has 124 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            wysihtml5.views.Composer.prototype.observe = function() {
              var that                = this,
                  state               = this.getValue(),
                  iframe              = this.sandbox.getIframe(),
                  element             = this.element,
          Severity: Major
          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 4 hrs to fix

            Function convertToList has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
            Open

            wysihtml5.dom.convertToList = (function() {
              function _createListItem(doc, list) {
                var listItem = doc.createElement("li");
                list.appendChild(listItem);
                return listItem;
            Severity: Minor
            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 4 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function extend has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
            Open

                extend: function(source, value) {
                    if (arguments.length > 1) { // extending with a name/value pair
                        var ancestor = this[source];
                        if (ancestor && (typeof value == "function") && // overriding a method?
                            // the valueOf() comparison is to avoid circular references
            Severity: Minor
            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function _handleAttributes has 83 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function _handleAttributes(oldNode, newNode, rule) {
                var attributes          = {},                         // fresh new set of attributes to set on newNode
                    setClass            = rule.set_class,             // classes to set
                    addClass            = rule.add_class,             // add classes based on existing attributes
                    setAttributes       = rule.set_attributes,        // attributes to set on the current node
            Severity: Major
            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 3 hrs to fix

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

                  _observe: function() {
                    var that      = this,
                        doc       = this.composer.sandbox.getDocument(),
                        lastKey;
                        
              Severity: Major
              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                Function normalizeBoundaries has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            normalizeBoundaries: function() {
                                assertRangeValid(this);
                
                                var sc = this.startContainer, so = this.startOffset, ec = this.endContainer, eo = this.endOffset;
                
                Severity: Major
                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                  Function _updateLinkStates has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _updateLinkStates: function() {
                        var element           = this.composer.element,
                            commandMapping    = this.commandMapping,
                            actionMapping     = this.actionMapping,
                            i,
                  Severity: Major
                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                    Function getParentElement has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                    Open

                    wysihtml5.dom.getParentElement = (function() {
                      
                      function _isSameNodeName(nodeName, desiredNodeNames) {
                        if (!desiredNodeNames || !desiredNodeNames.length) {
                          return true;
                    Severity: Minor
                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

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

                    wysihtml5.dom.convertToList = (function() {
                      function _createListItem(doc, list) {
                        var listItem = doc.createElement("li");
                        list.appendChild(listItem);
                        return listItem;
                    Severity: Major
                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                      Function array has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                      Open

                      })();wysihtml5.lang.array = function(arr) {
                        return {
                          /**
                           * Check whether a given object exists in an array
                           *
                      Severity: Minor
                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

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

                        wysihtml5.views.Composer.prototype.style = function() {
                          var that                  = this,
                              originalActiveElement = doc.querySelector(":focus"),
                              textareaElement       = this.textarea.element,
                              hasPlaceholder        = textareaElement.hasAttribute("placeholder"),
                      Severity: Major
                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

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

                        wysihtml5.dom.getParentElement = (function() {
                          
                          function _isSameNodeName(nodeName, desiredNodeNames) {
                            if (!desiredNodeNames || !desiredNodeNames.length) {
                              return true;
                        Severity: Major
                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 hrs to fix

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

                            wysihtml5.quirks.insertLineBreakOnReturn = function(composer) {
                              function unwrap(selectedNode) {
                                var parentElement = dom.getParentElement(selectedNode, { nodeName: ["P", "DIV"] }, 2);
                                if (!parentElement) {
                                  return;
                          Severity: Minor
                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                            Function browser has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                            Open

                            wysihtml5.browser = (function() {
                              var userAgent   = navigator.userAgent,
                                  testElement = document.createElement("div"),
                                  // Browser sniffing is unfortunately needed since some behaviors are impossible to feature detect
                                  isIE        = userAgent.indexOf("MSIE")         !== -1 && userAgent.indexOf("Opera") === -1,
                            Severity: Minor
                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

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

                            wysihtml5.dom.getStyle = (function() {
                              var stylePropertyMapping = {
                                    "float": ("styleFloat" in document.createElement("div").style) ? "styleFloat" : "cssFloat"
                                  },
                                  REG_EXP_CAMELIZE = /\-[a-z]/g;
                            Severity: Minor
                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                  _observe: function() {
                                    var that      = this,
                                        editor    = this.editor,
                                        container = this.container,
                                        links     = this.commandLinks.concat(this.actionLinks),
                              Severity: Minor
                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                  function convertToList(element, listType) {
                                    if (element.nodeName === "UL" || element.nodeName === "OL" || element.nodeName === "MENU") {
                                      // Already a list
                                      return element;
                                    }
                                Severity: Minor
                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                      _initAutoLinking: function() {
                                        var that                           = this,
                                            supportsDisablingOfAutoLinking = browser.canDisableAutoLinking(),
                                            supportsAutoLinking            = browser.doesAutoLinkingInContentEditable();
                                        if (supportsDisablingOfAutoLinking) {
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                        _create: function() {
                                          var that = this;
                                          
                                          this.doc                = this.sandbox.getDocument();
                                          this.element            = this.doc.body;
                                    Severity: Minor
                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                          function getTextRangeBoundaryPosition(textRange, wholeRangeContainerElement, isStart, isCollapsed) {
                                              var workingRange = textRange.duplicate();
                                      
                                              workingRange.collapse(isStart);
                                              var containerElement = workingRange.parentElement();
                                      Severity: Minor
                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                            exec: function(composer, command, nodeName, className, classRegExp) {
                                              var doc          = composer.doc,
                                                  blockElement = this.state(composer, command, nodeName, className, classRegExp),
                                                  selectedNode;
                                        
                                        Severity: Minor
                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                          Function _observe has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              _observe: function() {
                                                if (this._observed) {
                                                  return;
                                                }
                                                
                                          Severity: Minor
                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                postApply: function(textNodes, range) {
                                                  var firstNode = textNodes[0], lastNode = textNodes[textNodes.length - 1];
                                            
                                                  var merges = [], currentMerge;
                                            
                                            Severity: Minor
                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                              wysihtml5.dom.observe = function(element, eventNames, handler) {
                                                eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames;
                                                
                                                var handlerWrapper,
                                                    eventName,
                                              Severity: Minor
                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                Function _handleElement has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                  function _handleElement(oldNode) {
                                                    var rule,
                                                        newNode,
                                                        endTag,
                                                        tagRules    = currentRules.tags,
                                                Severity: Minor
                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                  Function extend has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      extend: function(source, value) {
                                                          if (arguments.length > 1) { // extending with a name/value pair
                                                              var ancestor = this[source];
                                                              if (ancestor && (typeof value == "function") && // overriding a method?
                                                                  // the valueOf() comparison is to avoid circular references
                                                  Severity: Minor
                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                        function init() {
                                                            if (api.initialized) {
                                                                return;
                                                            }
                                                            var testRange;
                                                    Severity: Minor
                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                      Function getAsDom has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      wysihtml5.dom.getAsDom = (function() {
                                                        
                                                        var _innerHTMLShiv = function(html, context) {
                                                          var tempElement = context.createElement("div");
                                                          tempElement.style.display = "none";
                                                      Severity: Minor
                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                        Function _format has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                          function _format(composer, attributes) {
                                                            var doc             = composer.doc,
                                                                tempClass       = "_wysihtml5-temp-" + (+new Date()),
                                                                tempClassRegExp = /non-matching-class/g,
                                                                i               = 0,
                                                        Severity: Minor
                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                              _selectLine_MSIE: function() {
                                                                var range       = this.doc.selection.createRange(),
                                                                    rangeTop    = range.boundingTop,
                                                                    rangeHeight = range.boundingHeight,
                                                                    scrollWidth = this.doc.body.scrollWidth,
                                                          Severity: Minor
                                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                function keyDown(event) {
                                                                  var keyCode = event.keyCode;
                                                                  if (event.shiftKey || (keyCode !== wysihtml5.ENTER_KEY && keyCode !== wysihtml5.BACKSPACE_KEY)) {
                                                                    return;
                                                                  }
                                                            Severity: Minor
                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                              Function _onLoadIframe has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  _onLoadIframe: function(iframe) {
                                                                    // don't resume when the iframe got unloaded (eg. by removing it from the dom)
                                                                    if (!wysihtml5.dom.contains(doc.documentElement, iframe)) {
                                                                      return;
                                                                    }
                                                              Severity: Minor
                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                Function executeAndRestore has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    executeAndRestore: function(method, restoreScrollPosition) {
                                                                      var body                  = this.doc.body,
                                                                          oldScrollTop          = restoreScrollPosition && body.scrollTop,
                                                                          oldScrollLeft         = restoreScrollPosition && body.scrollLeft,
                                                                          className             = "_wysihtml5-temp-placeholder",
                                                                Severity: Minor
                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                  })();wysihtml5.lang.array = function(arr) {
                                                                    return {
                                                                      /**
                                                                       * Check whether a given object exists in an array
                                                                       *
                                                                  Severity: Minor
                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                          from: function(element) {
                                                                            if (element.nodeType !== wysihtml5.ELEMENT_NODE) {
                                                                              return;
                                                                            }
                                                                            
                                                                    Severity: Minor
                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                        wysihtml5.quirks.ensureProperClearingOfLists = (function() {
                                                                          var ELEMENTS_THAT_CONTAIN_LI = ["OL", "UL", "MENU"];
                                                                      
                                                                          var clearIfNecessary = function(element, contentEditableElement) {
                                                                            if (!contentEditableElement.firstChild || !wysihtml5.lang.array(ELEMENTS_THAT_CONTAIN_LI).contains(contentEditableElement.firstChild.nodeName)) {
                                                                      Severity: Minor
                                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                        Function extend has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                        Open

                                                                        Base.extend = function(_instance, _static) { // subclass
                                                                            var extend = Base.prototype.extend;
                                                                            
                                                                            // build the prototype
                                                                            Base._prototyping = true;
                                                                        Severity: Minor
                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                        Cognitive Complexity

                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                        Further reading

                                                                        Function observe has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                        Open

                                                                        wysihtml5.dom.observe = function(element, eventNames, handler) {
                                                                          eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames;
                                                                          
                                                                          var handlerWrapper,
                                                                              eventName,
                                                                        Severity: Minor
                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                        Cognitive Complexity

                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                        Further reading

                                                                        Function cleanPastedHTML has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                        Open

                                                                        wysihtml5.quirks.cleanPastedHTML = (function() {
                                                                          // TODO: We probably need more rules here
                                                                          var defaultRules = {
                                                                            // When pasting underlined links <a> into a contentEditable, IE thinks, it has to insert <u> to keep the styling
                                                                            "a u": wysihtml5.dom.replaceWithChildNodes
                                                                        Severity: Minor
                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                        Cognitive Complexity

                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                        Further reading

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

                                                                        Base.extend = function(_instance, _static) { // subclass
                                                                            var extend = Base.prototype.extend;
                                                                            
                                                                            // build the prototype
                                                                            Base._prototyping = true;
                                                                        Severity: Minor
                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                          Function exec has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              exec: function(composer, command) {
                                                                                var doc           = composer.doc,
                                                                                    selectedNode  = composer.selection.getSelectedNode(),
                                                                                    list          = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "UL" }),
                                                                                    otherList     = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "OL" }),
                                                                          Severity: Minor
                                                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                            Function exec has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                exec: function(composer, command, value) {
                                                                                  value = typeof(value) === "object" ? value : { src: value };
                                                                            
                                                                                  var doc     = composer.doc,
                                                                                      image   = this.state(composer),
                                                                            Severity: Minor
                                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                              Function cleanPastedHTML has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                              wysihtml5.quirks.cleanPastedHTML = (function() {
                                                                                // TODO: We probably need more rules here
                                                                                var defaultRules = {
                                                                                  // When pasting underlined links <a> into a contentEditable, IE thinks, it has to insert <u> to keep the styling
                                                                                  "a u": wysihtml5.dom.replaceWithChildNodes
                                                                              Severity: Minor
                                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                Function executeAndRestoreSimple has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                    executeAndRestoreSimple: function(method) {
                                                                                      var range = this.getRange(),
                                                                                          body  = this.doc.body,
                                                                                          newRange,
                                                                                          firstNode,
                                                                                Severity: Minor
                                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                  Function addRange has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                              selProto.addRange = function(range, backwards) {
                                                                                                  if (implementsControlRange && implementsDocSelection && this.docSelection.type == CONTROL) {
                                                                                                      addRangeToControlSelection(this, range);
                                                                                                  } else {
                                                                                                      if (backwards && selectionHasExtend) {
                                                                                  Severity: Minor
                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                    Function exec has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        exec: function(composer, command) {
                                                                                          var doc           = composer.doc,
                                                                                              selectedNode  = composer.selection.getSelectedNode(),
                                                                                              list          = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "OL" }),
                                                                                              otherList     = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "UL" }),
                                                                                    Severity: Minor
                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                          state: function(composer) {
                                                                                            var doc = composer.doc,
                                                                                                selectedNode,
                                                                                                text,
                                                                                                imagesInSelection;
                                                                                      Severity: Minor
                                                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                        Function _observe has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            _observe: function() {
                                                                                              var interval,
                                                                                                  that          = this,
                                                                                                  form          = this.textarea.element.form,
                                                                                                  startInterval = function() {
                                                                                        Severity: Minor
                                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                              undoToRange: function(range) {
                                                                                                var textNodes = range.getNodes([wysihtml5.TEXT_NODE]), textNode, ancestorWithClass;
                                                                                                if (textNodes.length) {
                                                                                                  range.splitBoundaries();
                                                                                                  textNodes = range.getNodes([wysihtml5.TEXT_NODE]);
                                                                                          Severity: Minor
                                                                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                              wysihtml5.toolbar.Speech = function(parent, link) {
                                                                                                var input = document.createElement("input");
                                                                                                if (!wysihtml5.browser.supportsSpeechApiOn(input)) {
                                                                                                  link.style.display = "none";
                                                                                                  return;
                                                                                            Severity: Minor
                                                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                function resolveList(list) {
                                                                                                  if (list.nodeName !== "MENU" && list.nodeName !== "UL" && list.nodeName !== "OL") {
                                                                                                    return;
                                                                                                  }
                                                                                                  
                                                                                              Severity: Minor
                                                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                    _initObjectResizing: function() {
                                                                                                      var properties        = ["width", "height"],
                                                                                                          propertiesLength  = properties.length,
                                                                                                          element           = this.element;
                                                                                                      
                                                                                                Severity: Minor
                                                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                      applyToRange: function(range) {
                                                                                                          var textNodes = range.getNodes([wysihtml5.TEXT_NODE]);
                                                                                                          if (!textNodes.length) {
                                                                                                            try {
                                                                                                              var node = this.createContainer(range.endContainer.ownerDocument);
                                                                                                  Severity: Minor
                                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                        function comparePoints(nodeA, offsetA, nodeB, offsetB) {
                                                                                                            // See http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Comparing
                                                                                                            var nodeC, root, childA, childB, n;
                                                                                                            if (nodeA == nodeB) {
                                                                                                    
                                                                                                    Severity: Minor
                                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                          function createBoundaryTextRange(boundaryPosition, isStart) {
                                                                                                              var boundaryNode, boundaryParent, boundaryOffset = boundaryPosition.offset;
                                                                                                              var doc = dom.getDocument(boundaryPosition.node);
                                                                                                              var workingNode, childNodes, workingRange = doc.body.createTextRange();
                                                                                                              var nodeIsDataNode = dom.isCharacterDataNode(boundaryPosition.node);
                                                                                                      Severity: Minor
                                                                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

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

                                                                                                            _createIframe: function() {
                                                                                                              var that   = this,
                                                                                                                  iframe = doc.createElement("iframe");
                                                                                                              iframe.className = "wysihtml5-sandbox";
                                                                                                              wysihtml5.dom.setAttributes({
                                                                                                        Severity: Minor
                                                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                                          Consider simplifying this complex logical expression.
                                                                                                          Open

                                                                                                                  if (comparison == -1 && boundaryNode && dom.isCharacterDataNode(boundaryNode)) {
                                                                                                                      // This is a character data node (text, comment, cdata). The working range is collapsed at the start of the
                                                                                                                      // node containing the text range's boundary, so we move the end of the working range to the boundary point
                                                                                                                      // and measure the length of its text to get the boundary's offset within the node.
                                                                                                                      workingRange.setEndPoint(isStart ? "EndToStart" : "EndToEnd", textRange);
                                                                                                          Severity: Major
                                                                                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 1 hr to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                                    if (this.rangeCount == previousRangeCount + 1) {
                                                                                                                                        // The range was added successfully
                                                                                                            
                                                                                                                                        // Check whether the range that we added to the selection is reflected in the last range extracted from
                                                                                                                                        // the selection
                                                                                                            Severity: Major
                                                                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                  for (var i = 0, len = sel.rangeCount; i < len; ++i) {
                                                                                                                                      sel._ranges[i] = new api.WrappedRange(sel.nativeSelection.getRangeAt(i));
                                                                                                                                  }
                                                                                                              Severity: Major
                                                                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                        if (controlRange.length) {
                                                                                                                                            doc = dom.getDocument(controlRange.item(0)).body.createTextRange();
                                                                                                                                        }
                                                                                                                Severity: Major
                                                                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                  Function copyAttributes has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                  wysihtml5.dom.copyAttributes = function(attributesToCopy) {
                                                                                                                    return {
                                                                                                                      from: function(elementToCopyFrom) {
                                                                                                                        return {
                                                                                                                          to: function(elementToCopyTo) {
                                                                                                                  Severity: Minor
                                                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                  Cognitive Complexity

                                                                                                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                  A method's cognitive complexity is based on a few simple rules:

                                                                                                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                  • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                  • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                  Further reading

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                          if (selectionSupportsMultipleRanges) {
                                                                                                                                              previousRangeCount = this.rangeCount;
                                                                                                                                          } else {
                                                                                                                                              this.removeAllRanges();
                                                                                                                                              previousRangeCount = 0;
                                                                                                                  Severity: Major
                                                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                    Function stopObserving has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                      stopObserving: function(eventName, handler) {
                                                                                                                        this.events = this.events || {};
                                                                                                                        var i = 0,
                                                                                                                            handlers,
                                                                                                                            newHandlers;
                                                                                                                    Severity: Minor
                                                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                    Cognitive Complexity

                                                                                                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                    A method's cognitive complexity is based on a few simple rules:

                                                                                                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                    • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                    • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                    Further reading

                                                                                                                    Function setStyles has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                    })();wysihtml5.dom.setStyles = function(styles) {
                                                                                                                      return {
                                                                                                                        on: function(element) {
                                                                                                                          var style = element.style;
                                                                                                                          if (typeof(styles) === "string") {
                                                                                                                    Severity: Minor
                                                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 45 mins to fix

                                                                                                                    Cognitive Complexity

                                                                                                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                    A method's cognitive complexity is based on a few simple rules:

                                                                                                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                    • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                    • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                    Further reading

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                        if (api.features.implementsDomRange && (!api.features.implementsTextRange || !api.config.preferTextRange)) {
                                                                                                                            // This is a wrapper around the browser's native DOM Range. It has two aims:
                                                                                                                            // - Provide workarounds for specific browser bugs
                                                                                                                            // - provide convenient extensions, which are inherited from Rangy's DomRange
                                                                                                                    
                                                                                                                    Severity: Major
                                                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 40 mins to fix

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                                  if (ancestor && (typeof value == "function") && // overriding a method?
                                                                                                                                      // the valueOf() comparison is to avoid circular references
                                                                                                                                      (!ancestor.valueOf || ancestor.valueOf() != value.valueOf()) &&
                                                                                                                                      /\bbase\b/.test(value)) {
                                                                                                                                      // get the underlying method
                                                                                                                      Severity: Major
                                                                                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 40 mins to fix

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

                                                                                                                            exec: function(composer, command, nodeName, className, classRegExp) {
                                                                                                                        Severity: Minor
                                                                                                                        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                              state: function(composer, command, tagName, className, classRegExp) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                                exec: function(composer, command, tagName, className, classRegExp) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                                function _getParentElementWithNodeNameAndClassName(node, nodeName, className, classRegExp, levels) {
                                                                                                                              Severity: Minor
                                                                                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                                    function updateBoundaries(range, startContainer, startOffset, endContainer, endOffset) {
                                                                                                                                Severity: Minor
                                                                                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                                      state: function(composer, command, nodeName, className, classRegExp) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

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

                                                                                                                                                function updateNativeRange(range, startContainer, startOffset, endContainer,endOffset) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 35 mins to fix

                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                      Open

                                                                                                                                            return imagesInSelection[0];
                                                                                                                                      Severity: Major
                                                                                                                                      Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.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/bootstrap-wysihtml5/wysihtml5-0.3.0.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/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                                    return 1;
                                                                                                                                            Severity: Major
                                                                                                                                            Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                      return;
                                                                                                                                              Severity: Major
                                                                                                                                              Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                    return newNode;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 30 mins to fix

                                                                                                                                                  Function getAsDom has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                  wysihtml5.dom.getAsDom = (function() {
                                                                                                                                                    
                                                                                                                                                    var _innerHTMLShiv = function(html, context) {
                                                                                                                                                      var tempElement = context.createElement("div");
                                                                                                                                                      tempElement.style.display = "none";
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 25 mins to fix

                                                                                                                                                  Cognitive Complexity

                                                                                                                                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                  A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                  • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                  • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                  Further reading

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                          // TODO: Find out when. Workaround for wholeRangeContainerElement may break this

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                    // TODO: We probably need more rules here

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                              // TODO: Until I can find a way to programmatically trigger the Firefox bug (apparently long-standing, still

                                                                                                                                                  FIXME found
                                                                                                                                                  Open

                                                                                                                                                       * FIXME: This is a bit hacky, there might be a smarter way of doing this

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                       * TODO: Look into making this a proper iterator, not requiring preloading everything first

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                        // TODO: Investigate this further and check for smarter handling

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                            // TODO: This might not work for attributes without value: <input disabled>

                                                                                                                                                  FIXME found
                                                                                                                                                  Open

                                                                                                                                                     * FIXME: Returns undefined when unknown (Chrome, Safari)

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                       * TODO: Use HTMLApplier or formatInline here

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                        // TODO: apparently this doesn't work in IE9!

                                                                                                                                                  TODO found
                                                                                                                                                  Open

                                                                                                                                                   * TODO: the following methods still need unit test coverage

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

                                                                                                                                                  });rangy.createModule("DomRange", function(api, module) {
                                                                                                                                                      api.requireModules( ["DomUtil"] );
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                      var dom = api.dom;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 697..1890

                                                                                                                                                  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 9540.

                                                                                                                                                  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

                                                                                                                                                  });rangy.createModule("WrappedSelection", function(api, module) {
                                                                                                                                                      // This will create a selection object wrapper that follows the Selection object found in the WHATWG draft DOM Range
                                                                                                                                                      // spec (http://html5.org/specs/dom-range.html)
                                                                                                                                                  
                                                                                                                                                      api.requireModules( ["DomUtil", "DomRange", "WrappedRange"] );
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 2457..3245

                                                                                                                                                  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 7084.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5, rangy) {
                                                                                                                                                    var defaultTagName = "span";
                                                                                                                                                    
                                                                                                                                                    var REG_EXP_WHITE_SPACE = /\s+/g;
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6325..6749

                                                                                                                                                  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 3968.

                                                                                                                                                  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

                                                                                                                                                  });rangy.createModule("WrappedRange", function(api, module) {
                                                                                                                                                      api.requireModules( ["DomUtil", "DomRange"] );
                                                                                                                                                  
                                                                                                                                                      /**
                                                                                                                                                       * @constructor
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 1890..2457

                                                                                                                                                  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 3897.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom = wysihtml5.dom;
                                                                                                                                                    
                                                                                                                                                    function _getCumulativeOffsetTop(element) {
                                                                                                                                                      var top = 0;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5905..6316

                                                                                                                                                  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 2760.

                                                                                                                                                  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

                                                                                                                                                  });(function(wysihtml5) {
                                                                                                                                                    var dom       = wysihtml5.dom,
                                                                                                                                                        browser   = wysihtml5.browser;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.views.Composer = wysihtml5.views.View.extend(
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7922..8234

                                                                                                                                                  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 2570.

                                                                                                                                                  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

                                                                                                                                                  rangy.createModule("DomUtil", function(api, module) {
                                                                                                                                                  
                                                                                                                                                      var UNDEF = "undefined";
                                                                                                                                                      var util = api.util;
                                                                                                                                                  
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 329..697

                                                                                                                                                  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 2544.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.parse = (function() {
                                                                                                                                                    
                                                                                                                                                    /**
                                                                                                                                                     * It's not possible to use a XMLParser/DOMParser as HTML5 is not always well-formed XML
                                                                                                                                                     * new DOMParser().parseFromString('<img src="foo.gif">') will cause a parseError since the
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4744..5139

                                                                                                                                                  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 2418.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var CLASS_NAME_COMMAND_DISABLED   = "wysihtml5-command-disabled",
                                                                                                                                                        CLASS_NAME_COMMANDS_DISABLED  = "wysihtml5-commands-disabled",
                                                                                                                                                        CLASS_NAME_COMMAND_ACTIVE     = "wysihtml5-command-active",
                                                                                                                                                        CLASS_NAME_ACTION_ACTIVE      = "wysihtml5-action-active",
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 9064..9342

                                                                                                                                                  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 2273.

                                                                                                                                                  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

                                                                                                                                                  window['rangy'] = (function() {
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                      var OBJECT = "object", FUNCTION = "function", UNDEFINED = "undefined";
                                                                                                                                                  
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 44..328

                                                                                                                                                  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 1928.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom       = wysihtml5.dom,
                                                                                                                                                        browser   = wysihtml5.browser,
                                                                                                                                                        /**
                                                                                                                                                         * Map keyCodes to query commands
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8432..8607

                                                                                                                                                  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 1604.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.browser = (function() {
                                                                                                                                                    var userAgent   = navigator.userAgent,
                                                                                                                                                        testElement = document.createElement("div"),
                                                                                                                                                        // Browser sniffing is unfortunately needed since some behaviors are impossible to feature detect
                                                                                                                                                        isIE        = userAgent.indexOf("MSIE")         !== -1 && userAgent.indexOf("Opera") === -1,
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3387..3738

                                                                                                                                                  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 1507.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        dom                     = wysihtml5.dom,
                                                                                                                                                        DEFAULT_NODE_NAME       = "DIV",
                                                                                                                                                        // Following elements are grouped
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7026..7251

                                                                                                                                                  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 1475.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var /**
                                                                                                                                                         * Default configuration
                                                                                                                                                         */
                                                                                                                                                        doc                 = document,
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5316..5545

                                                                                                                                                  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 1451.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var dom             = wysihtml5.dom,
                                                                                                                                                        doc             = document,
                                                                                                                                                        win             = window,
                                                                                                                                                        HOST_TEMPLATE   = doc.createElement("div"),
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8234..8424

                                                                                                                                                  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 1371.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var Z_KEY               = 90,
                                                                                                                                                        Y_KEY               = 89,
                                                                                                                                                        BACKSPACE_KEY       = 8,
                                                                                                                                                        DELETE_KEY          = 46,
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7701..7869

                                                                                                                                                  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 1320.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    var defaultConfig = {
                                                                                                                                                      // Give the editor a name, the name will also be set as class name on the iframe and on the iframe's body 
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 9372..9521

                                                                                                                                                  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 1186.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom                     = wysihtml5.dom,
                                                                                                                                                        CLASS_NAME_OPENED       = "wysihtml5-command-dialog-opened",
                                                                                                                                                        SELECTOR_FORM_ELEMENTS  = "input, select, textarea",
                                                                                                                                                        SELECTOR_FIELDS         = "[data-wysihtml5-dialog-field]",
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8799..8962

                                                                                                                                                  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 1143.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var /**
                                                                                                                                                         * Don't auto-link urls that are contained in the following elements:
                                                                                                                                                         */
                                                                                                                                                        IGNORE_URLS_IN        = wysihtml5.lang.array(["CODE", "PRE", "A", "SCRIPT", "HEAD", "TITLE", "STYLE"]),
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3930..4060

                                                                                                                                                  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 835.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        NODE_NAME = "A",
                                                                                                                                                        dom       = wysihtml5.dom;
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6877..6981

                                                                                                                                                  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 739.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var NODE_NAME = "IMG";
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.insertImage = {
                                                                                                                                                      /**
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7366..7469

                                                                                                                                                  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 678.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var INTERVAL = 400;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.views.Synchronizer = Base.extend(
                                                                                                                                                      /** @scope wysihtml5.views.Synchronizer.prototype */ {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8610..8703

                                                                                                                                                  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 607.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.convertToList = (function() {
                                                                                                                                                    function _createListItem(doc, list) {
                                                                                                                                                      var listItem = doc.createElement("li");
                                                                                                                                                      list.appendChild(listItem);
                                                                                                                                                      return listItem;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4132..4206

                                                                                                                                                  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 597.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.views.Textarea = wysihtml5.views.View.extend(
                                                                                                                                                    /** @scope wysihtml5.views.Textarea.prototype */ {
                                                                                                                                                    name: "textarea",
                                                                                                                                                    
                                                                                                                                                    constructor: function(parent, textareaElement, config) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8704..8769

                                                                                                                                                  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 587.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom                                           = wysihtml5.dom,
                                                                                                                                                        USE_NATIVE_LINE_BREAK_WHEN_CARET_INSIDE_TAGS  = ["LI", "P", "H1", "H2", "H3", "H4", "H5", "H6"],
                                                                                                                                                        LIST_TAGS                                     = ["UL", "OL", "MENU"];
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5811..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 565.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.Commands = Base.extend(
                                                                                                                                                    /** @scope wysihtml5.Commands.prototype */ {
                                                                                                                                                    constructor: function(editor) {
                                                                                                                                                      this.editor   = editor;
                                                                                                                                                      this.composer = editor.composer;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6755..6853

                                                                                                                                                  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 537.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom = wysihtml5.dom;
                                                                                                                                                    
                                                                                                                                                    var linkStyles = {
                                                                                                                                                      position: "relative"
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 8976..9048

                                                                                                                                                  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 530.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var dom = wysihtml5.dom;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.quirks.ensureProperClearing = (function() {
                                                                                                                                                      var clearIfNecessary = function(event) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5698..5770

                                                                                                                                                  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 491.

                                                                                                                                                  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

                                                                                                                                                  Base.prototype = {    
                                                                                                                                                      extend: function(source, value) {
                                                                                                                                                          if (arguments.length > 1) { // extending with a name/value pair
                                                                                                                                                              var ancestor = this[source];
                                                                                                                                                              if (ancestor && (typeof value == "function") && // overriding a method?
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3300..3349
                                                                                                                                                  assets/admin/global/plugins/wysihtml/lib/base/base.js on lines 55..104

                                                                                                                                                  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 490.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.insertUnorderedList = {
                                                                                                                                                      exec: function(composer, command) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7493..7550
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7550..7607
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7493..7550

                                                                                                                                                  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 482.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.insertOrderedList = {
                                                                                                                                                      exec: function(composer, command) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7493..7550
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7550..7607
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7550..7607

                                                                                                                                                  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 482.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        // Treat <b> as <strong> and vice versa
                                                                                                                                                        ALIAS_MAPPING = {
                                                                                                                                                          "strong": "b",
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7284..7346

                                                                                                                                                  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 461.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.getParentElement = (function() {
                                                                                                                                                    
                                                                                                                                                    function _isSameNodeName(nodeName, desiredNodeNames) {
                                                                                                                                                      if (!desiredNodeNames || !desiredNodeNames.length) {
                                                                                                                                                        return true;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4413..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 451.

                                                                                                                                                  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

                                                                                                                                                  Base.extend = function(_instance, _static) { // subclass
                                                                                                                                                      var extend = Base.prototype.extend;
                                                                                                                                                      
                                                                                                                                                      // build the prototype
                                                                                                                                                      Base._prototyping = true;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3256..3298
                                                                                                                                                  assets/admin/global/plugins/wysihtml/lib/base/base.js on lines 11..53

                                                                                                                                                  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 420.

                                                                                                                                                  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

                                                                                                                                                  };wysihtml5.lang.Dispatcher = Base.extend(
                                                                                                                                                    /** @scope wysihtml5.lang.Dialog.prototype */ {
                                                                                                                                                    observe: function(eventName, handler) {
                                                                                                                                                      this.events = this.events || {};
                                                                                                                                                      this.events[eventName] = this.events[eventName] || [];
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3795..3838

                                                                                                                                                  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 417.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.getStyle = (function() {
                                                                                                                                                    var stylePropertyMapping = {
                                                                                                                                                          "float": ("styleFloat" in document.createElement("div").style) ? "styleFloat" : "cssFloat"
                                                                                                                                                        },
                                                                                                                                                        REG_EXP_CAMELIZE = /\-[a-z]/g;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4484..4546

                                                                                                                                                  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 409.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.getAsDom = (function() {
                                                                                                                                                    
                                                                                                                                                    var _innerHTMLShiv = function(html, context) {
                                                                                                                                                      var tempElement = context.createElement("div");
                                                                                                                                                      tempElement.style.display = "none";
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4347..4398

                                                                                                                                                  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 408.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.views.View = Base.extend(
                                                                                                                                                    /** @scope wysihtml5.views.View.prototype */ {
                                                                                                                                                    constructor: function(parent, textareaElement, config) {
                                                                                                                                                      this.parent   = parent;
                                                                                                                                                      this.element  = textareaElement;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7873..7922

                                                                                                                                                  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 404.

                                                                                                                                                  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

                                                                                                                                                  (function(dom) {
                                                                                                                                                    function _isBlockElement(node) {
                                                                                                                                                      return dom.getStyle("display").from(node) === "block";
                                                                                                                                                    }
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5244..5294

                                                                                                                                                  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 390.

                                                                                                                                                  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

                                                                                                                                                  (function(dom) {
                                                                                                                                                    
                                                                                                                                                    /**
                                                                                                                                                     * Mozilla, WebKit and Opera recalculate the computed width when box-sizing: boder-box; is set
                                                                                                                                                     * So if an element has "width: 200px; -moz-box-sizing: border-box; border: 1px;" then 
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4259..4310

                                                                                                                                                  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 378.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.observe = function(element, eventNames, handler) {
                                                                                                                                                    eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames;
                                                                                                                                                    
                                                                                                                                                    var handlerWrapper,
                                                                                                                                                        eventName,
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4648..4692

                                                                                                                                                  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 366.

                                                                                                                                                  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

                                                                                                                                                  })();wysihtml5.lang.array = function(arr) {
                                                                                                                                                    return {
                                                                                                                                                      /**
                                                                                                                                                       * Check whether a given object exists in an array
                                                                                                                                                       *
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3738..3795

                                                                                                                                                  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 298.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var supportsClassList = wysihtml5.browser.supportsClassList(),
                                                                                                                                                        api               = wysihtml5.dom;
                                                                                                                                                    
                                                                                                                                                    api.addClass = function(element, className) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4060..4090

                                                                                                                                                  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 282.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.quirks.cleanPastedHTML = (function() {
                                                                                                                                                    // TODO: We probably need more rules here
                                                                                                                                                    var defaultRules = {
                                                                                                                                                      // When pasting underlined links <a> into a contentEditable, IE thinks, it has to insert <u> to keep the styling
                                                                                                                                                      "a u": wysihtml5.dom.replaceWithChildNodes
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5652..5691

                                                                                                                                                  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 267.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var TILDE_ESCAPED = "%7E";
                                                                                                                                                    wysihtml5.quirks.getCorrectInnerHTML = function(element) {
                                                                                                                                                      var innerHTML = element.innerHTML;
                                                                                                                                                      if (innerHTML.indexOf(TILDE_ESCAPED) === -1) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5780..5800

                                                                                                                                                  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 247.

                                                                                                                                                  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

                                                                                                                                                  Base = Base.extend({
                                                                                                                                                      constructor: function() {
                                                                                                                                                          this.extend(arguments[0]);
                                                                                                                                                      }
                                                                                                                                                  }, {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3352..3384

                                                                                                                                                  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 243.

                                                                                                                                                  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

                                                                                                                                                  (function(dom) {
                                                                                                                                                    var documentElement = document.documentElement;
                                                                                                                                                    if ("textContent" in documentElement) {
                                                                                                                                                      dom.setTextContent = function(element, text) {
                                                                                                                                                        element.textContent = text;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5617..5644

                                                                                                                                                  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 216.

                                                                                                                                                  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

                                                                                                                                                  };(function() {
                                                                                                                                                    var WHITE_SPACE_START = /^\s+/,
                                                                                                                                                        WHITE_SPACE_END   = /\s+$/;
                                                                                                                                                    wysihtml5.lang.string = function(str) {
                                                                                                                                                      str = String(str);
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3879..3920

                                                                                                                                                  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 205.

                                                                                                                                                  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

                                                                                                                                                  (function(dom) {
                                                                                                                                                    dom.simulatePlaceholder = function(editor, view, placeholderText) {
                                                                                                                                                      var CLASS_NAME = "placeholder",
                                                                                                                                                          unset = function() {
                                                                                                                                                            if (view.hasPlaceholderSet()) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5591..5616

                                                                                                                                                  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 200.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var LIVE_CACHE          = {},
                                                                                                                                                        DOCUMENT_IDENTIFIER = 1;
                                                                                                                                                  
                                                                                                                                                    function _getDocumentIdentifier(doc) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4583..4606

                                                                                                                                                  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 193.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        LINE_BREAK = "<br>" + (wysihtml5.browser.needsSpaceAfterLineBreak() ? " " : "");
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.insertLineBreak = {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7469..7493

                                                                                                                                                  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 188.

                                                                                                                                                  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

                                                                                                                                                  };wysihtml5.dom.insertCSS = function(rules) {
                                                                                                                                                    rules = rules.join("\n");
                                                                                                                                                    
                                                                                                                                                    return {
                                                                                                                                                      into: function(doc) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4621..4642

                                                                                                                                                  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 171.

                                                                                                                                                  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

                                                                                                                                                  });wysihtml5.lang.object = function(obj) {
                                                                                                                                                    return {
                                                                                                                                                      /**
                                                                                                                                                       * @example
                                                                                                                                                       *    wysihtml5.lang.object({ foo: 1, bar: 1 }).merge({ bar: 2, baz: 3 }).get();
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 3838..3879

                                                                                                                                                  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 167.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.copyAttributes = function(attributesToCopy) {
                                                                                                                                                    return {
                                                                                                                                                      from: function(elementToCopyFrom) {
                                                                                                                                                        return {
                                                                                                                                                          to: function(elementToCopyTo) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4221..4240

                                                                                                                                                  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 157.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    
                                                                                                                                                    wysihtml5.dom.delegate = function(container, selector, eventName, handler) {
                                                                                                                                                      return wysihtml5.dom.observe(container, eventName, function(event) {
                                                                                                                                                        var target    = event.target,
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4318..4335

                                                                                                                                                  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 154.

                                                                                                                                                  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

                                                                                                                                                  })();wysihtml5.dom.setStyles = function(styles) {
                                                                                                                                                    return {
                                                                                                                                                      on: function(element) {
                                                                                                                                                        var style = element.style;
                                                                                                                                                        if (typeof(styles) === "string") {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5559..5577

                                                                                                                                                  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 151.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.hasElementWithTagName = (function() {
                                                                                                                                                    var LIVE_CACHE          = {},
                                                                                                                                                        DOCUMENT_IDENTIFIER = 1;
                                                                                                                                                    
                                                                                                                                                    function _getDocumentIdentifier(doc) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4556..4573

                                                                                                                                                  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 151.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.contains = (function() {
                                                                                                                                                    var documentElement = document.documentElement;
                                                                                                                                                    if (documentElement.contains) {
                                                                                                                                                      return function(container, element) {
                                                                                                                                                        if (element.nodeType !== wysihtml5.ELEMENT_NODE) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4091..4106

                                                                                                                                                  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 149.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.removeEmptyTextNodes = function(node) {
                                                                                                                                                    var childNode,
                                                                                                                                                        childNodes        = wysihtml5.lang.array(node.childNodes).get(),
                                                                                                                                                        childNodesLength  = childNodes.length,
                                                                                                                                                        i                 = 0;
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5146..5157

                                                                                                                                                  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 144.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.replaceWithChildNodes = function(node) {
                                                                                                                                                    if (!node.parentNode) {
                                                                                                                                                      return;
                                                                                                                                                    }
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5205..5221

                                                                                                                                                  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 139.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        REG_EXP = /wysiwyg-font-size-[a-z\-]+/g;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.fontSize = {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6986..7003

                                                                                                                                                  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 136.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        REG_EXP = /wysiwyg-color-[a-z]+/g;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.foreColor = {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7009..7026

                                                                                                                                                  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 134.

                                                                                                                                                  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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var CLASS_NAME = "wysihtml5-quirks-redraw";
                                                                                                                                                    
                                                                                                                                                    wysihtml5.quirks.redraw = function(element) {
                                                                                                                                                      wysihtml5.dom.addClass(element, CLASS_NAME);
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5885..5899

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.insertHTML = {
                                                                                                                                                      exec: function(composer, command, html) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7346..7366

                                                                                                                                                  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 128.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        CLASS_NAME  = "wysiwyg-text-align-center",
                                                                                                                                                        REG_EXP     = /wysiwyg-text-align-[a-z]+/g;
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7628..7646
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7646..7664
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7664..7682
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7646..7664
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7664..7682

                                                                                                                                                  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

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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        CLASS_NAME  = "wysiwyg-text-align-right",
                                                                                                                                                        REG_EXP     = /wysiwyg-text-align-[a-z]+/g;
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7628..7646
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7646..7664
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7664..7682
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7628..7646
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7646..7664

                                                                                                                                                  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

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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef,
                                                                                                                                                        CLASS_NAME  = "wysiwyg-text-align-left",
                                                                                                                                                        REG_EXP     = /wysiwyg-text-align-[a-z]+/g;
                                                                                                                                                    
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7628..7646
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7646..7664
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7664..7682
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7628..7646
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7664..7682

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.renameElement = function(element, newNodeName) {
                                                                                                                                                    var newElement = element.ownerDocument.createElement(newNodeName),
                                                                                                                                                        firstChild;
                                                                                                                                                    while (firstChild = element.firstChild) {
                                                                                                                                                      newElement.appendChild(firstChild);
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5183..5192

                                                                                                                                                  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

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

                                                                                                                                                  (function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.bold = {
                                                                                                                                                      exec: function(composer, command) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6854..6875
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7607..7628
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 7607..7628

                                                                                                                                                  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 120.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    
                                                                                                                                                    wysihtml5.commands.italic = {
                                                                                                                                                      exec: function(composer, command) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 6854..6875
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7607..7628
                                                                                                                                                  assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 6854..6875

                                                                                                                                                  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 120.

                                                                                                                                                  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

                                                                                                                                                  })(wysihtml5);(function(wysihtml5) {
                                                                                                                                                    var undef;
                                                                                                                                                    wysihtml5.commands.underline = {
                                                                                                                                                      exec: function(composer, command) {
                                                                                                                                                        return wysihtml5.commands.formatInline.exec(composer, command, "u");
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 7682..7697

                                                                                                                                                  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

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

                                                                                                                                                  var wysihtml5 = {
                                                                                                                                                    version: "0.3.0",
                                                                                                                                                    
                                                                                                                                                    // namespaces
                                                                                                                                                    commands:   {},
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 11..35

                                                                                                                                                  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 111.

                                                                                                                                                  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

                                                                                                                                                  wysihtml5.dom.insert = function(elementToInsert) {
                                                                                                                                                    return {
                                                                                                                                                      after: function(element) {
                                                                                                                                                        element.parentNode.insertBefore(elementToInsert, element.nextSibling);
                                                                                                                                                      },
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 4607..4621

                                                                                                                                                  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 105.

                                                                                                                                                  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

                                                                                                                                                  (function() {
                                                                                                                                                    var mapping = {
                                                                                                                                                      "className": "class"
                                                                                                                                                    };
                                                                                                                                                    wysihtml5.dom.setAttributes = function(attributes) {
                                                                                                                                                  assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5546..5559

                                                                                                                                                  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 97.

                                                                                                                                                  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