BallStateCBER/datacenter-plugin-cakephp3

View on GitHub

Showing 1,787 of 1,787 total issues

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

        getEnd : function() {
            var t = this, r = t.getRng(), e;

            if (isIE) {
                if (r.item)
Severity: Major
Found in webroot/js/tiny_mce/tiny_mce_src.js and 1 other location - About 6 hrs to fix
webroot/js/tiny_mce/tiny_mce_src.js on lines 4962..4985

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

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

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

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

Refactorings

Further Reading

Function _generateHTML has 169 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _generateHTML: function(inst) {
        var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
            controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
            monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
            selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
Severity: Major
Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js - About 6 hrs to fix

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

        if (ce.checked) {
            el[pre + "_top"].disabled = false;
            el[pre + "_right"].disabled = true;
            el[pre + "_bottom"].disabled = true;
            el[pre + "_left"].disabled = true;
    Severity: Major
    Found in webroot/js/tiny_mce/plugins/style/js/props.js and 1 other location - About 6 hrs to fix
    webroot/js/tiny_mce/plugins/style/js/props.js on lines 615..627

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 170.

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

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

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

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

    Refactorings

    Further Reading

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

        } else {
            el[pre + "_top"].disabled = false;
            el[pre + "_right"].disabled = false;
            el[pre + "_bottom"].disabled = false;
            el[pre + "_left"].disabled = false;
    Severity: Major
    Found in webroot/js/tiny_mce/plugins/style/js/props.js and 1 other location - About 6 hrs to fix
    webroot/js/tiny_mce/plugins/style/js/props.js on lines 603..615

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 170.

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

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

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

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

    Refactorings

    Further Reading

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

    $.ui.plugin.add("draggable", "zIndex", {
        start: function( event, ui, instance ) {
            var t = $( ui.helper ),
                o = instance.options;
    
    
    Severity: Major
    Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js and 1 other location - About 6 hrs to fix
    webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 2454..2469

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 168.

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

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

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

    $.ui.plugin.add("draggable", "opacity", {
        start: function( event, ui, instance ) {
            var t = $( ui.helper ),
                o = instance.options;
            if (t.css("opacity")) {
    Severity: Major
    Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js and 1 other location - About 6 hrs to fix
    webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 2643..2660

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 168.

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

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

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

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

    Refactorings

    Further Reading

    Function Selection has 164 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function Selection(selection) {
            var t = this, invisibleChar = '\uFEFF', range, lastIERng;
    
            function compareRanges(rng1, rng2) {
                if (rng1 && rng2) {
    Severity: Major
    Found in webroot/js/tiny_mce/tiny_mce_src.js - About 6 hrs to fix

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

              if ( !transport ) {
                  done( -1, "No Transport" );
              } else {
                  jqXHR.readyState = 1;
                  // Send global event
      Severity: Major
      Found in webroot/js/jquery-1.7.1.js and 1 other location - About 6 hrs to fix
      webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js on lines 8118..8146

      Duplicated Code

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

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

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

              if ( !transport ) {
                  done( -1, "No Transport" );
              } else {
                  jqXHR.readyState = 1;
      
      
      Severity: Major
      Found in webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js and 1 other location - About 6 hrs to fix
      webroot/js/jquery-1.7.1.js on lines 7563..7590

      Duplicated Code

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

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

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

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

                      if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {
                          this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
                      } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {
                          this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
                      }
      Severity: Major
      Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js and 1 other location - About 6 hrs to fix
      webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 4815..4819

      Duplicated Code

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

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

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

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

                      if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {
                          this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
                      } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {
                          this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
                      }
      Severity: Major
      Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js and 1 other location - About 6 hrs to fix
      webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 4821..4825

      Duplicated Code

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

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

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

      Function insertTable has 162 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function insertTable() {
          var formObj = document.forms[0];
          var inst = tinyMCEPopup.editor, dom = inst.dom;
          var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className, caption, frame, rules;
          var html = '', capEl, elm;
      Severity: Major
      Found in webroot/js/tiny_mce/plugins/table/js/table.js - About 6 hrs to fix

        Function support has 159 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.support = (function() {
        
            var support,
                all,
                a,
        Severity: Major
        Found in webroot/js/jquery-1.7.1.js - About 6 hrs to fix

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

              if ( div.getElementsByTagName("*").length > 0 ) {
                  Expr.find.TAG = function(match, context){
                      var results = context.getElementsByTagName(match[1]);
          
                      // Filter out possible comments
          Severity: Major
          Found in webroot/js/tiny_mce/tiny_mce_src.js and 1 other location - About 6 hrs to fix
          webroot/js/jquery-1.7.1.js on lines 4951..4970

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 ( div.getElementsByTagName("*").length > 0 ) {
                  Expr.find.TAG = function( match, context ) {
                      var results = context.getElementsByTagName( match[1] );
          
                      // Filter out possible comments
          Severity: Major
          Found in webroot/js/jquery-1.7.1.js and 1 other location - About 6 hrs to fix
          webroot/js/tiny_mce/tiny_mce_src.js on lines 4235..4254

          Duplicated Code

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

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

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

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

                      while ( elem ) {
                          if ( elem[ expando ] === doneName ) {
                              match = checkSet[elem.sizset];
                              break;
                          }
          Severity: Major
          Found in webroot/js/jquery-1.7.1.js and 1 other location - About 6 hrs to fix
          webroot/js/tiny_mce/tiny_mce_src.js on lines 4365..4389

          Duplicated Code

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

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

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

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

                      while ( elem ) {
                          if ( elem.sizcache === doneName ) {
                              match = checkSet[elem.sizset];
                              break;
                          }
          Severity: Major
          Found in webroot/js/tiny_mce/tiny_mce_src.js and 1 other location - About 6 hrs to fix
          webroot/js/jquery-1.7.1.js on lines 5210..5235

          Duplicated Code

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

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

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

          Consider simplifying this complex logical expression.
          Open

              else if(target === 'mouse' && ((event && event.pageX) || cache.event.pageX)) {
                  // Force left top to allow flipping
                  at = { x: LEFT, y: TOP };
          
                  // Use cached event if one isn't available for positioning
          Severity: Critical
          Found in webroot/js/jquery.qtip.js - About 6 hrs to fix

            Function insertPara has 157 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    insertPara : function(e) {
                        var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body;
                        var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car;
            
                        // If root blocks are forced then use Operas default behavior since it's really good
            Severity: Major
            Found in webroot/js/tiny_mce/tiny_mce_src.js - About 6 hrs to fix

              Method init has 157 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function init() {
              
                      // overiddable variables
                      $this->file_new_name_body       = '';       // replace the name body
                      $this->file_name_body_add       = '';       // append to the name body
              Severity: Major
              Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 6 hrs to fix
                Severity
                Category
                Status
                Source
                Language