arastta/arastta

View on GitHub
catalog/view/javascript/bootstrap/js/bootstrap.js

Summary

Maintainability
F
4 mos
Test Coverage

File bootstrap.js has 1537 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Bootstrap v3.3.2 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
Severity: Major
Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 4 days to fix

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

      Tooltip.prototype.show = function () {
        var e = $.Event('show.bs.' + this.type)
    
        if (this.hasContent() && this.enabled) {
          this.$element.trigger(e)
    Severity: Major
    Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 2 hrs to fix

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

        Carousel.prototype.slide = function (type, next) {
          var $active   = this.$element.find('.item.active')
          var $next     = next || this.getItemForDirection(type, $active)
          var isCycling = this.interval
          var direction = type == 'next' ? 'left' : 'right'
      Severity: Minor
      Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

          Tab.prototype.activate = function (element, container, callback) {
            var $active    = container.find('> .active')
            var transition = callback
              && $.support.transition
              && (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
        Severity: Minor
        Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

            Modal.prototype.show = function (_relatedTarget) {
              var that = this
              var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
          
              this.$element.trigger(e)
          Severity: Minor
          Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

              Collapse.prototype.show = function () {
                if (this.transitioning || this.$element.hasClass('in')) return
            
                var activesData
                var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
            Severity: Minor
            Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                Modal.prototype.backdrop = function (callback) {
                  var that = this
                  var animate = this.$element.hasClass('fade') ? 'fade' : ''
              
                  if (this.isShown && this.options.backdrop) {
              Severity: Minor
              Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                  Tooltip.prototype.applyPlacement = function (offset, placement) {
                    var $tip   = this.tip()
                    var width  = $tip[0].offsetWidth
                    var height = $tip[0].offsetHeight
                
                
                Severity: Minor
                Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                    Tab.prototype.show = function () {
                      var $this    = this.element
                      var $ul      = $this.closest('ul:not(.dropdown-menu)')
                      var selector = $this.data('target')
                  
                  
                  Severity: Minor
                  Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                      Affix.prototype.checkPosition = function () {
                        if (!this.$element.is(':visible')) return
                    
                        var height       = this.$element.height()
                        var offset       = this.options.offset
                    Severity: Minor
                    Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                        ScrollSpy.prototype.refresh = function () {
                          var offsetMethod = 'offset'
                          var offsetBase   = 0
                      
                          if (!$.isWindow(this.$scrollElement[0])) {
                      Severity: Minor
                      Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                            function next() {
                              $active
                                .removeClass('active')
                                .find('> .dropdown-menu > .active')
                                  .removeClass('active')
                        Severity: Minor
                        Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                            Collapse.prototype.hide = function () {
                              if (this.transitioning || !this.$element.hasClass('in')) return
                          
                              var startEvent = $.Event('hide.bs.collapse')
                              this.$element.trigger(startEvent)
                          Severity: Minor
                          Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 1 hr to fix

                            Avoid too many return statements within this function.
                            Open

                                return false
                            Severity: Major
                            Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
                              Severity: Major
                              Found in catalog/view/javascript/bootstrap/js/bootstrap.js - About 30 mins to fix

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

                                +function ($) {
                                  'use strict';
                                
                                  // MODAL CLASS DEFINITION
                                  // ======================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 wks to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 914..1228

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 3092.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // COLLAPSE PUBLIC CLASS DEFINITION
                                  // ================================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 wk to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 540..741

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1846.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // SCROLLSPY CLASS DEFINITION
                                  // ==========================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 wk to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1838..2003

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1550.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // AFFIX CLASS DEFINITION
                                  // ======================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 wk to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 2168..2320

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1491.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // DROPDOWN CLASS DEFINITION
                                  // =========================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 wk to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 752..903

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1324.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // TAB CLASS DEFINITION
                                  // ====================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 6 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 2014..2157

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1050.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // BUTTON PUBLIC CLASS DEFINITION
                                  // ==============================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 6 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 182..288

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 1009.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.show = function () {
                                    var e = $.Event('show.bs.' + this.type)
                                
                                    if (this.hasContent() && this.enabled) {
                                      this.$element.trigger(e)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 5 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1378..1452

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 880.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // ALERT CLASS DEFINITION
                                  // ======================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 3 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 87..171

                                Duplicated Code

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

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

                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                  Tooltip.prototype.applyPlacement = function (offset, placement) {
                                    var $tip   = this.tip()
                                    var width  = $tip[0].offsetWidth
                                    var height = $tip[0].offsetHeight
                                
                                
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 3 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1454..1502

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 525.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.init = function (type, element, options) {
                                    this.enabled   = true
                                    this.type      = type
                                    this.$element  = $(element)
                                    this.options   = this.getOptions(options)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1277..1303

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 446.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                
                                  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
                                  // ============================================================
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 27..76

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 402.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
                                    var delta = { top: 0, left: 0 }
                                    if (!this.$viewport) return delta
                                
                                    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1585..1611

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 385.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.enter = function (obj) {
                                    var self = obj instanceof this.constructor ?
                                      obj : $(obj.currentTarget).data('bs.' + this.type)
                                
                                    if (self && self.$tip && self.$tip.is(':visible')) {
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1333..1356

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 292.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.getPosition = function ($element) {
                                    $element   = $element || this.$element
                                
                                    var el     = $element[0]
                                    var isBody = el.tagName == 'BODY'
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1559..1575

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 285.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                    if ($.support.transition && this.$element.hasClass('slide')) {
                                      $next.addClass(type)
                                      $next[0].offsetWidth // force reflow
                                      $active.addClass(direction)
                                      $next.addClass(direction)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 437..457

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 253.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.leave = function (obj) {
                                    var self = obj instanceof this.constructor ?
                                      obj : $(obj.currentTarget).data('bs.' + this.type)
                                
                                    if (!self) {
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1358..1376

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 249.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.hide = function (callback) {
                                    var that = this
                                    var $tip = this.tip()
                                    var e    = $.Event('hide.bs.' + this.type)
                                
                                
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1518..1546

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 245.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
                                    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2 } :
                                           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
                                           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
                                        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1577..1583
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1379..1384

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 239.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  var Carousel = function (element, options) {
                                    this.$element    = $(element)
                                    this.$indicators = this.$element.find('.carousel-indicators')
                                    this.options     = options
                                    this.paused      =
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 305..320

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 231.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Popover.prototype.setContent = function () {
                                    var $tip    = this.tip()
                                    var title   = this.getTitle()
                                    var content = this.getContent()
                                
                                
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1751..1766

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 219.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  var clickHandler = function (e) {
                                    var href
                                    var $this   = $(this)
                                    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
                                    if (!$target.hasClass('carousel')) return
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 500..516

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 209.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  function Plugin(option) {
                                    return this.each(function () {
                                      var $this   = $(this)
                                      var data    = $this.data('bs.carousel')
                                      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 468..480

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 206.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Carousel.prototype.to = function (pos) {
                                    var that        = this
                                    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
                                
                                    if (pos > (this.$items.length - 1) || pos < 0) return
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 368..378

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 195.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.toggle = function (e) {
                                    var self = this
                                    if (e) {
                                      self = $(e.currentTarget).data('bs.' + this.type)
                                      if (!self) {
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 6 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1650..1661

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 170.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  function Plugin(option) {
                                    return this.each(function () {
                                      var $this   = $(this)
                                      var data    = $this.data('bs.tooltip')
                                      var options = typeof option == 'object' && option
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1787..1797

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 133.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  function Plugin(option) {
                                    return this.each(function () {
                                      var $this   = $(this)
                                      var data    = $this.data('bs.popover')
                                      var options = typeof option == 'object' && option
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1673..1683

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 133.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Carousel.prototype.pause = function (e) {
                                    e || (this.paused = true)
                                
                                    if (this.$element.find('.next, .prev').length && $.support.transition) {
                                      this.$element.trigger($.support.transition.end)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 380..391

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 131.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Carousel.prototype.cycle = function (e) {
                                    e || (this.paused = false)
                                
                                    this.interval && clearInterval(this.interval)
                                
                                
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 4 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 344..354
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 323..333

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 117.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.getOptions = function (options) {
                                    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
                                
                                    if (options.delay && typeof options.delay == 'number') {
                                      options.delay = {
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 4 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1309..1320
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1157..1168

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 116.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                +function ($) {
                                  'use strict';
                                  var version = $.fn.jquery.split(' ')[0].split('.')
                                  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
                                    throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 11..16

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 106.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.getTitle = function () {
                                    var title
                                    var $e = this.$element
                                    var o  = this.options
                                
                                
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1613..1622
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1386..1395

                                Duplicated Code

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

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

                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
                                Open

                                  Tooltip.prototype.getDelegateOptions = function () {
                                    var options  = {}
                                    var defaults = this.getDefaults()
                                
                                    this._options && $.each(this._options, function (key, value) {
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1322..1331
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1170..1179

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 99.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.fixTitle = function () {
                                    var $e = this.$element
                                    if ($e.attr('title') || typeof ($e.attr('data-original-title')) != 'string') {
                                      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
                                    }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1548..1553
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1360..1365

                                Duplicated Code

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

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

                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                  Tooltip.prototype.destroy = function () {
                                    var that = this
                                    clearTimeout(this.timeout)
                                    this.hide(function () {
                                      that.$element.off('.' + that.type).removeData('bs.' + that.type)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1663..1669

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 96.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Carousel.prototype.keydown = function (e) {
                                    if (/input|textarea/i.test(e.target.tagName)) return
                                    switch (e.which) {
                                      case 37: this.prev(); break
                                      case 39: this.next(); break
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 333..342

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 93.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Popover.prototype.getContent = function () {
                                    var $e = this.$element
                                    var o  = this.options
                                
                                    return $e.attr('data-content')
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1772..1780
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1533..1541

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 93.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.setContent = function () {
                                    var $tip  = this.tip()
                                    var title = this.getTitle()
                                
                                    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1510..1516
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1326..1332

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 92.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                    if (this.$indicators.length) {
                                      this.$indicators.find('.active').removeClass('active')
                                      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
                                      $nextIndicator && $nextIndicator.addClass('active')
                                    }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 430..434

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 87.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  var Tooltip = function (element, options) {
                                    this.type       =
                                    this.options    =
                                    this.enabled    =
                                    this.timeout    =
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1246..1255
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1103..1112

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 81.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.replaceArrow = function (delta, dimension, isHorizontal) {
                                    this.arrow()
                                      .css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
                                      .css(isHorizontal ? 'top' : 'left', '')
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1504..1508

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 79.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.DEFAULTS = {
                                    animation: true,
                                    placement: 'top',
                                    selector: false,
                                    template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1261..1275

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 73.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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).on('load', function () {
                                    $('[data-ride="carousel"]').each(function () {
                                      var $carousel = $(this)
                                      Plugin.call($carousel, $carousel.data())
                                    })
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 522..527

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 71.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Carousel.prototype.getItemIndex = function (item) {
                                    this.$items = item.parent().children('.item')
                                    return this.$items.index(item || this.$active)
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 356..359

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 70.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Popover.prototype.tip = function () {
                                    if (!this.$tip) this.$tip = $(this.options.template)
                                    return this.$tip
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1786..1789
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1547..1550

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 63.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
                                    placement: 'right',
                                    trigger: 'click',
                                    content: '',
                                    template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1732..1737
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1495..1500

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 62.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Tooltip.prototype.getUID = function (prefix) {
                                    do prefix += ~~(Math.random() * 1000000)
                                    while (document.getElementById(prefix))
                                    return prefix
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1624..1628

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 58.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  Popover.prototype.arrow = function () {
                                    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 5 other locations - About 55 mins to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1634..1636
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1782..1784
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1632..1634
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1401..1403
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1543..1545

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 54.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.arrow = function () {
                                    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 5 other locations - About 55 mins to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1634..1636
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1782..1784
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1774..1776
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1401..1403
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1543..1545

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 54.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                  Tooltip.prototype.tip = function () {
                                    return (this.$tip = this.$tip || $(this.options.template))
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 2 other locations - About 50 mins to fix
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1630..1632
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1397..1399

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 51.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  $.fn.popover.noConflict = function () {
                                    $.fn.popover = old
                                    return this
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 6 other locations - About 30 mins to fix
                                admin/view/javascript/bootstrap-select/js/bootstrap-select.js on lines 1687..1690
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1702..1705
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1822..1825
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1694..1697
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1457..1460
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1575..1578

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 45.

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

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

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

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

                                Refactorings

                                Further Reading

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

                                  $.fn.tooltip.noConflict = function () {
                                    $.fn.tooltip = old
                                    return this
                                  }
                                Severity: Major
                                Found in catalog/view/javascript/bootstrap/js/bootstrap.js and 6 other locations - About 30 mins to fix
                                admin/view/javascript/bootstrap-select/js/bootstrap-select.js on lines 1687..1690
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1702..1705
                                admin/view/javascript/bootstrap/js/bootstrap.js on lines 1822..1825
                                catalog/view/javascript/bootstrap/js/bootstrap.js on lines 1808..1811
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1457..1460
                                install/view/javascript/bootstrap/js/bootstrap.js on lines 1575..1578

                                Duplicated Code

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

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

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

                                Tuning

                                This issue has a mass of 45.

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

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

                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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