gopheracademy/gcon

View on GitHub
assets/admin/global/plugins/bootstrap/js/bootstrap.js

Summary

Maintainability
F
2 mos
Test Coverage

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

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
Severity: Major
Found in assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/bootstrap/js/bootstrap.js - About 1 hr to fix

        Function backdrop has 39 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js - About 1 hr to fix

          Function show has 39 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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 assets/admin/global/plugins/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 that          = this
                              var offsetMethod  = 'offset'
                              var offsetBase    = 0
                          
                          
                          Severity: Minor
                          Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                              if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
                                throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
                              }
                            Severity: Major
                            Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js - About 40 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

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

                                  TODO found
                                  Open

                                        if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.

                                  Similar blocks of code found in 2 locations. 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: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 3 days to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 407..460

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 598.

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

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

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

                                    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: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 573..622

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 479.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 28..77

                                  Duplicated Code

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

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

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

                                  Similar 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 days to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1583..1609

                                  Duplicated Code

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

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

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

                                    Tab.prototype.show = function () {
                                      var $this    = this.element
                                      var $ul      = $this.closest('ul:not(.dropdown-menu)')
                                      var selector = $this.data('target')
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2014..2052

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 348.

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

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

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

                                    Collapse.prototype.hide = function () {
                                      if (this.transitioning || !this.$element.hasClass('in')) return
                                  
                                      var startEvent = $.Event('hide.bs.collapse')
                                      this.$element.trigger(startEvent)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 624..660

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 328.

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

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

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

                                    Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
                                      var scrollTop    = this.$target.scrollTop()
                                      var position     = this.$element.offset()
                                      var targetHeight = this.$target.height()
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2184..2204

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 274.

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

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

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

                                    $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
                                      var $this   = $(this)
                                      var href    = $this.attr('href')
                                      var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
                                      var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1209..1224

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 266.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1575..1581
                                  assets/public/2015/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 3 locations. Consider refactoring.
                                  Open

                                      for (var i = triggers.length; i--;) {
                                        var trigger = triggers[i]
                                  
                                        if (trigger == 'click') {
                                          this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1284..1296
                                  assets/public/2015/js/bootstrap.js on lines 1134..1146

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 235.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      this.$body
                                        .find(this.selector)
                                        .map(function () {
                                          var $el   = $(this)
                                          var href  = $el.data('target') || $el.attr('href')
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1872..1888

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 225.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1743..1758

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 498..514

                                  Duplicated Code

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

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

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 466..478

                                  Duplicated Code

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

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

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

                                      if (this.affixed != affix) {
                                        if (this.unpin != null) this.$element.css('top', '')
                                  
                                        var affixType = 'affix' + (affix ? '-' + affix : '')
                                        var e         = $.Event(affixType + '.bs.affix')
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2233..2250

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 197.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 day to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 372..382

                                  Duplicated Code

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

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

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

                                    ScrollSpy.prototype.activate = function (target) {
                                      this.activeTarget = target
                                  
                                      this.clear()
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 6 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1921..1941

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 165.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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-spy="affix"]').each(function () {
                                        var $spy = $(this)
                                        var data = $spy.data()
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 6 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2292..2304

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 163.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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, _relatedTarget) {
                                      return this.each(function () {
                                        var $this   = $(this)
                                        var data    = $this.data('bs.modal')
                                        var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 6 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1179..1189

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 163.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.getItemForDirection = function (direction, active) {
                                      var activeIndex = this.getItemIndex(active)
                                      var willWrap = (direction == 'prev' && activeIndex === 0)
                                                  || (direction == 'next' && activeIndex == (this.$items.length - 1))
                                      if (willWrap && !this.options.wrap) return active
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 6 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 362..370

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 162.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.isShown && this.options.backdrop) {
                                        var doAnimate = $.support.transition && animate
                                  
                                        this.$backdrop = $(document.createElement('div'))
                                          .addClass('modal-backdrop ' + animate)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 5 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1081..1120

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 144.

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

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

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

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

                                  Refactorings

                                  Further Reading

                                  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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 5 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1859..1869

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 137.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 5 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1750..1760

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 137.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.button')
                                        var options = typeof option == 'object' && option
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 247..258

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 132.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 384..395

                                  Duplicated Code

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

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

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

                                          placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top'    :
                                                      placement == 'top'    && pos.top    - actualHeight < viewportDim.top    ? 'bottom' :
                                                      placement == 'right'  && pos.right  + actualWidth  > viewportDim.width  ? 'left'   :
                                                      placement == 'left'   && pos.left   - actualWidth  < viewportDim.left   ? 'right'  :
                                                      placement
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1421..1425

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 127.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Modal.prototype.escape = function () {
                                      if (this.isShown && this.options.keyboard) {
                                        this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
                                          e.which == 27 && this.hide()
                                        }, this))
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1043..1051
                                  assets/public/2015/js/bootstrap.js on lines 956..964

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 125.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    function Plugin(option) {
                                      return this.each(function () {
                                        var $this   = $(this)
                                        var data    = $this.data('bs.affix')
                                        var options = typeof option == 'object' && option
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2022..2031
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1953..1962
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2263..2272

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 118.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    function Plugin(option) {
                                      return this.each(function () {
                                        var $this   = $(this)
                                        var data    = $this.data('bs.scrollspy')
                                        var options = typeof option == 'object' && option
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2334..2343
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1953..1962
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2263..2272

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 118.

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

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

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

                                    Collapse.prototype.getParent = function () {
                                      return $(this.options.parent)
                                        .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
                                        .each($.proxy(function (i, element) {
                                          var $element = $(element)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 666..674

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 117.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Modal.prototype.adjustDialog = function () {
                                      var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
                                  
                                      this.$element.css({
                                        paddingLeft:  !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1136..1143

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 117.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Carousel.prototype.cycle = function (e) {
                                      e || (this.paused = false)
                                  
                                      this.interval && clearInterval(this.interval)
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 345..355
                                  assets/public/2015/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

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

                                    Affix.prototype.getPinnedOffset = function () {
                                      if (this.pinnedOffset) return this.pinnedOffset
                                      this.$element.removeClass(Affix.RESET).addClass('affix')
                                      var scrollTop = this.$target.scrollTop()
                                      var position  = this.$element.offset()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2206..2212

                                  Duplicated Code

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

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

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 4 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1307..1318
                                  assets/public/2015/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

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

                                    Modal.prototype.hideModal = function () {
                                      var that = this
                                      this.$element.hide()
                                      this.backdrop(function () {
                                        that.$body.removeClass('modal-open')
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1061..1070

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 107.

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

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

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

                                    Modal.prototype.measureScrollbar = function () { // thx walsh
                                      var scrollDiv = document.createElement('div')
                                      scrollDiv.className = 'modal-scrollbar-measure'
                                      this.$body.append(scrollDiv)
                                      var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1166..1173

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 107.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    function Plugin(option) {
                                      return this.each(function () {
                                        var $this = $(this)
                                        var data  = $this.data('bs.alert')
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 3 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 880..888
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 142..150
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 865..873

                                  Duplicated Code

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

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

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

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

                                    function Plugin(option) {
                                      return this.each(function () {
                                        var $this = $(this)
                                        var data  = $this.data('bs.dropdown')
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 3 hrs to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 142..150
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 142..150
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 865..873

                                  Duplicated Code

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

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

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

                                  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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1611..1620
                                  assets/public/2015/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 2 locations. Consider refactoring.
                                  Open

                                      if (e) {
                                        self = $(e.currentTarget).data('bs.' + this.type)
                                        if (!self) {
                                          self = new this.constructor(e.currentTarget, this.getDelegateOptions())
                                          $(e.currentTarget).data('bs.' + this.type, self)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1650..1656

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 102.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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.tab')
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2106..2114

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 100.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1320..1329
                                  assets/public/2015/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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 3 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1546..1551
                                  assets/public/2015/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

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

                                    $(document)
                                      .on('click.bs.dropdown.data-api', clearMenus)
                                      .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
                                      .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
                                      .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 893..898

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 94.

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

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

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

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

                                  Refactorings

                                  Further Reading

                                  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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 334..343

                                  Duplicated Code

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

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

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1764..1772
                                  assets/public/2015/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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1508..1514
                                  assets/public/2015/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

                                      $.offset.setOffset($tip[0], $.extend({
                                        using: function (props) {
                                          $tip.css({
                                            top: Math.round(props.top),
                                            left: Math.round(props.left)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1470..1477

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 91.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
                                        .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
                                        .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 318..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 81.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Modal.prototype.resize = function () {
                                      if (this.isShown) {
                                        $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
                                      } else {
                                        $(window).off('resize.bs.modal')
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1053..1059

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 79.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
                                      this.arrow()
                                        .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
                                        .css(isVertical ? 'top' : 'left', '')
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1502..1506

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 79.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      if (!isActive && e.which != 27 || isActive && e.which == 27) {
                                        if (e.which == 27) $parent.find(toggle).trigger('focus')
                                        return $this.trigger('click')
                                      }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 810..813

                                  Duplicated Code

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

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

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

                                      $.support.transition && this.$element.hasClass('fade') ?
                                        this.$element
                                          .one('bsTransitionEnd', $.proxy(this.hideModal, this))
                                          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
                                        this.hideModal()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1026..1030

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 78.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                        var complete = function () {
                                          var prevHoverState = that.hoverState
                                          that.$element.trigger('shown.bs.' + that.type)
                                          that.hoverState = null
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1436..1442

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 76.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      if (this.options.remote) {
                                        this.$element
                                          .find('.modal-content')
                                          .load(this.options.remote, $.proxy(function () {
                                            this.$element.trigger('loaded.bs.modal')
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 926..932

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 76.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $(window).on('load.bs.scrollspy.data-api', function () {
                                      $('[data-spy="scroll"]').each(function () {
                                        var $spy = $(this)
                                        Plugin.call($spy, $spy.data())
                                      })
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                  assets/admin/global/plugins/bootstrap-select/js/bootstrap-select.js on lines 1878..1883
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1982..1987

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 74.

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

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

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1259..1273

                                  Duplicated Code

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

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

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

                                    Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
                                      var isOpen = $element.hasClass('in')
                                  
                                      $element.attr('aria-expanded', isOpen)
                                      $trigger
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 676..683

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 72.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    function getTargetFromTrigger($trigger) {
                                      var href
                                      var target = $trigger.attr('data-target')
                                        || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
                                  
                                  
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 685..691

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 72.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $(window).on('load', function () {
                                      $('[data-ride="carousel"]').each(function () {
                                        var $carousel = $(this)
                                        Plugin.call($carousel, $carousel.data())
                                      })
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 520..525

                                  Duplicated Code

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

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

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 357..360

                                  Duplicated Code

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

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

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

                                      if (elRect.width == null) {
                                        // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
                                        elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
                                      }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1564..1567

                                  Duplicated Code

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

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

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

                                    var Button = function (element, options) {
                                      this.$element  = $(element)
                                      this.options   = $.extend({}, Button.DEFAULTS, options)
                                      this.isLoading = false
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 189..193

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 69.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    ScrollSpy.prototype.getScrollHeight = function () {
                                      return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1853..1855

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 68.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      this.$target = $(this.options.target)
                                        .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
                                        .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2163..2165

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 67.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                        var placement = typeof this.options.placement == 'function' ?
                                          this.options.placement.call(this, $tip[0], this.$element[0]) :
                                          this.options.placement
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1396..1398
                                  assets/public/2015/js/bootstrap.js on lines 1225..1227

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 65.

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

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

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

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

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 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 assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1724..1729
                                  assets/public/2015/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

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

                                    ScrollSpy.prototype.clear = function () {
                                      $(this.selector)
                                        .parentsUntil(this.options.target, '.active')
                                        .removeClass('active')
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1943..1947

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 59.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                        $tip
                                          .detach()
                                          .css({ top: 0, left: 0, display: 'block' })
                                          .addClass(placement)
                                          .data('bs.' + this.type, this)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1404..1408

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 59.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      var transition = callback
                                        && $.support.transition
                                        && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2056..2058

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 59.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      this.options.selector ?
                                        (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
                                        this.fixTitle()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1298..1300
                                  assets/public/2015/js/bootstrap.js on lines 1148..1150

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 58.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Tooltip.prototype.getUID = function (prefix) {
                                      do prefix += ~~(Math.random() * 1000000)
                                      while (document.getElementById(prefix))
                                      return prefix
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1622..1626

                                  Duplicated Code

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

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

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

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

                                        $.support.transition && this.$tip.hasClass('fade') ?
                                          $tip
                                            .one('bsTransitionEnd', complete)
                                            .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
                                          complete()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1444..1448
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1535..1539

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 57.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      if (this.options.parent) {
                                        this.$parent = this.getParent()
                                      } else {
                                        this.addAriaAndCollapsedClass(this.$element, this.$trigger)
                                      }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 550..554

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 57.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 14..14

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 57.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Tooltip.prototype.arrow = function () {
                                      return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 4 other locations - About 55 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1632..1634
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1774..1776
                                  assets/public/2015/js/bootstrap.js on lines 1401..1403
                                  assets/public/2015/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

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

                                    Modal.prototype.removeBackdrop = function () {
                                      this.$backdrop && this.$backdrop.remove()
                                      this.$backdrop = null
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 55 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1072..1075
                                  assets/public/2015/js/bootstrap.js on lines 975..978

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 53.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      $.support.transition && $parent.hasClass('fade') ?
                                        $parent
                                          .one('bsTransitionEnd', removeElement)
                                          .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
                                        removeElement()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 55 mins to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1590..1594
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 131..135

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 53.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      $.support.transition && $tip.hasClass('fade') ?
                                        $tip
                                          .one('bsTransitionEnd', complete)
                                          .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
                                        complete()
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 55 mins to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 131..135
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 131..135

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 53.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                        $active
                                          .removeClass('active')
                                          .find('> .dropdown-menu > .active')
                                            .removeClass('active')
                                          .end()
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 50 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2061..2067

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 51.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $(document)
                                      .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
                                        var $btn = $(e.target).closest('.btn')
                                        Plugin.call($btn, 'toggle')
                                        if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) {
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 45 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 278..287

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 50.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      if (!$.isWindow(this.$scrollElement[0])) {
                                        offsetMethod = 'position'
                                        offsetBase   = this.$scrollElement.scrollTop()
                                      }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 45 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1861..1864

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 50.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Modal.prototype.toggle = function (_relatedTarget) {
                                      return this.isShown ? this.hide() : this.show(_relatedTarget)
                                    }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 40 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 946..948

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 49.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.carousel.noConflict = function () {
                                      $.fn.carousel = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.dropdown.noConflict = function () {
                                      $.fn.dropdown = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.modal.noConflict = function () {
                                      $.fn.modal = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.tab.noConflict = function () {
                                      $.fn.tab = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.alert.noConflict = function () {
                                      $.fn.alert = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.affix.noConflict = function () {
                                      $.fn.affix = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.collapse.noConflict = function () {
                                      $.fn.collapse = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.scrollspy.noConflict = function () {
                                      $.fn.scrollspy = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 273..276
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    $.fn.button.noConflict = function () {
                                      $.fn.button = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 27 other locations - About 40 mins to fix
                                  assets/admin/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js on lines 177..180
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 498..501
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 728..731
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 899..902
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1229..1232
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2042..2045
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2196..2199
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 2354..2357
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 161..164
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 269..272
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 489..492
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 718..721
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 884..887
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1200..1203
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1973..1976
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2125..2128
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2283..2286
                                  assets/public/2015/js/bootstrap.js on lines 154..157
                                  assets/public/2015/js/bootstrap.js on lines 259..262
                                  assets/public/2015/js/bootstrap.js on lines 461..464
                                  assets/public/2015/js/bootstrap.js on lines 645..648
                                  assets/public/2015/js/bootstrap.js on lines 813..816
                                  assets/public/2015/js/bootstrap.js on lines 1047..1050
                                  assets/public/2015/js/bootstrap.js on lines 1723..1726
                                  assets/public/2015/js/bootstrap.js on lines 1861..1864
                                  assets/public/2015/js/bootstrap.js on lines 1979..1982

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Collapse.prototype.dimension = function () {
                                      var hasWidth = this.$element.hasClass('width')
                                      return hasWidth ? 'width' : 'height'
                                    }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 40 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 568..571
                                  assets/public/2015/js/bootstrap.js on lines 533..536

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Collapse.prototype.toggle = function () {
                                      this[this.$element.hasClass('in') ? 'hide' : 'show']()
                                    }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 40 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 662..664

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 48.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                        if (element.parent('.dropdown-menu').length) {
                                          element
                                            .closest('li.dropdown')
                                              .addClass('active')
                                            .end()
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 35 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 2081..2088

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 47.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      var scroll    = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 35 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1569..1569

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 46.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 35 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1570..1570

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 46.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                    Modal.prototype.resetAdjustments = function () {
                                      this.$element.css({
                                        paddingLeft: '',
                                        paddingRight: ''
                                      })
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 35 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1145..1150

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 46.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      if (scrollTop >= maxScroll) {
                                        return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
                                      }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 35 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1904..1906

                                  Duplicated Code

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

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

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

                                  Tuning

                                  This issue has a mass of 46.

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

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

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

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

                                  Refactorings

                                  Further Reading

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

                                      var self = obj instanceof this.constructor ?
                                        obj : $(obj.currentTarget).data('bs.' + this.type)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 30 mins to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1404..1405
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1332..1333
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1357..1358

                                  Duplicated Code

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

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

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

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

                                      var self = obj instanceof this.constructor ?
                                        obj : $(obj.currentTarget).data('bs.' + this.type)
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 3 other locations - About 30 mins to fix
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1367..1368
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1332..1333
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1357..1358

                                  Duplicated Code

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

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

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

                                    $.fn.tooltip.noConflict = function () {
                                      $.fn.tooltip = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 7 other locations - About 30 mins to fix
                                  assets/admin/global/plugins/bootstrap-confirmation/bootstrap-confirmation.js on lines 250..253
                                  assets/admin/global/plugins/bootstrap-select/js/bootstrap-select.js on lines 1864..1867
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1880..1883
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1694..1697
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1808..1811
                                  assets/public/2015/js/bootstrap.js on lines 1457..1460
                                  assets/public/2015/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

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

                                        this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 30 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1410..1410
                                  assets/public/2015/js/bootstrap.js on lines 1238..1238

                                  Duplicated Code

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

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

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

                                    $.fn.popover.noConflict = function () {
                                      $.fn.popover = old
                                      return this
                                    }
                                  Severity: Major
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 7 other locations - About 30 mins to fix
                                  assets/admin/global/plugins/bootstrap-confirmation/bootstrap-confirmation.js on lines 250..253
                                  assets/admin/global/plugins/bootstrap-select/js/bootstrap-select.js on lines 1864..1867
                                  assets/admin/global/plugins/bootstrap/js/bootstrap.js on lines 1771..1774
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1694..1697
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1808..1811
                                  assets/public/2015/js/bootstrap.js on lines 1457..1460
                                  assets/public/2015/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

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

                                      var arrowDelta          = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 1 other location - About 30 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 1495..1495

                                  Duplicated Code

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

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

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

                                        if (!that.$element.parent().length) {
                                          that.$element.appendTo(that.$body) // don't move modals dom position
                                        }
                                  Severity: Minor
                                  Found in assets/admin/global/plugins/bootstrap/js/bootstrap.js and 2 other locations - About 30 mins to fix
                                  assets/public/2015/bootstrap/js/bootstrap.js on lines 972..974
                                  assets/public/2015/js/bootstrap.js on lines 891..893

                                  Duplicated Code

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

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

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