XoopsModules25x/xoopsinfo

View on GitHub
phpsysinfo/js/jQuery/jquery.dataTables.js

Summary

Maintainability
F
2 mos
Test Coverage

Function dataTable has 4156 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.dataTable = function( oInit )
    {
        /*
         * Function: classSettings
         * Purpose:  Settings container function for all 'class' properties which are required
Severity: Major
Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 wks to fix

    File jquery.dataTables.js has 4633 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * File:        jquery.dataTables.js
     * Version:     1.8.2+jquery1.9fix+parseJSONfix2+bindfix
     * Description: Paginate, search and sort HTML tables
     * Author:      Allan Jardine (www.sprymedia.co.uk)
    Severity: Major
    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 wk to fix

      Function _fnScrollDraw has 185 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function _fnScrollDraw ( o )
              {
                  var
                      nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
                      nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
      Severity: Major
      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 7 hrs to fix

        Function classSettings has 177 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function classSettings ()
                {
                    this.fnRecordsTotal = function ()
                    {
                        if ( this.oFeatures.bServerSide ) {
        Severity: Major
        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 7 hrs to fix

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

                  function _fnDraw( oSettings )
                  {
                      var i, iLen;
                      var anRows = [];
                      var iRowCount = 0;
          Severity: Major
          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 6 hrs to fix

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

                    function _fnCalculateColumnWidths ( oSettings )
                    {
                        var iTableWidth = oSettings.nTable.offsetWidth;
                        var iUserInputs = 0;
                        var iTmpWidth;
            Severity: Major
            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 6 hrs to fix

              Function _fnGatherData has 118 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function _fnGatherData( oSettings )
                      {
                          var iLoop, i, iLen, j, jLen, jInner,
                               nTds, nTrs, nTd, aLocalData, iThisIndex,
                              iRow, iRows, iColumn, iColumns, sNodeName;
              Severity: Major
              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 4 hrs to fix

                Function _fnAddOptionsHtml has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function _fnAddOptionsHtml ( oSettings )
                        {
                            /*
                             * Create a temporary, empty, div which we can later on replace with what we have generated
                             * we do it this way to rendering the 'options' html offline - speed :-)
                Severity: Major
                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 4 hrs to fix

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

                          function _fnSortingClasses( oSettings )
                          {
                              var i, iLen, j, jLen, iFound;
                              var aaSort, sClass;
                              var iColumns = oSettings.aoColumns.length;
                  Severity: Major
                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 4 hrs to fix

                    Function _fnFeatureHtmlTable has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function _fnFeatureHtmlTable ( oSettings )
                            {
                                /* Chack if scrolling is enabled or not - if not then leave the DOM unaltered */
                                if ( oSettings.oScroll.sX === "" && oSettings.oScroll.sY === "" )
                                {
                    Severity: Major
                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 4 hrs to fix

                      Function fnUpdate has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  "fnUpdate": function ( oSettings, fnCallbackDraw )
                                  {
                                      if ( !oSettings.aanFeatures.p )
                                      {
                                          return;
                      Severity: Major
                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

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

                                this.fnDestroy = function ( )
                                {
                                    var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
                                    var nOrig = oSettings.nTableWrapper.parentNode;
                                    var nBody = oSettings.nTBody;
                        Severity: Major
                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

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

                                  function _fnBuildHead( oSettings )
                                  {
                                      var i, nTh, iLen, j, jLen;
                                      var anTr = oSettings.nTHead.getElementsByTagName('tr');
                                      var iThs = oSettings.nTHead.getElementsByTagName('th').length;
                          Severity: Major
                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

                            Function fnSetColumnVis has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
                                    {
                                        var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
                                        var i, iLen;
                                        var iColumns = oSettings.aoColumns.length;
                            Severity: Major
                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

                              Function _fnSortAttachListener has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
                                      {
                                          $(nNode).on( 'click.DT', function (e) {
                                              /* If the column is not sortable - don't to anything */
                                              if ( oSettings.aoColumns[iDataIndex].bSortable === false )
                              Severity: Major
                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

                                Function _fnInitialise has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function _fnInitialise ( oSettings )
                                        {
                                            var i, iLen, iAjaxStart=oSettings.iInitDisplayStart;
                                            
                                            /* Ensure that the table data is fully initialised */
                                Severity: Major
                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 3 hrs to fix

                                  Function _fnSort has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function _fnSort ( oSettings, bApplyClasses )
                                          {
                                              var
                                                  iDataSort, iDataType,
                                                  i, iLen, j, jLen,
                                  Severity: Major
                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

                                    Function _fnFeatureHtmlLength has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function _fnFeatureHtmlLength ( oSettings )
                                            {
                                                if ( oSettings.oScroll.bInfinite )
                                                {
                                                    return null;
                                    Severity: Major
                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                              function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
                                              {
                                                  var i, iLen, j, jLen, k, kLen;
                                                  var aoLocal = [];
                                                  var aApplied = [];
                                      Severity: Major
                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                                function _fnLoadState ( oSettings, oInit )
                                                {
                                                    if ( !oSettings.oFeatures.bStateSave )
                                                    {
                                                        return;
                                        Severity: Major
                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                                      "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
                                                      {
                                                          var nFirst = document.createElement( 'span' );
                                                          var nPrevious = document.createElement( 'span' );
                                                          var nList = document.createElement( 'span' );
                                          Severity: Major
                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                                    this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
                                                    {
                                                        var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
                                                        var iVisibleColumn, i, iLen, sDisplay;
                                                        var iRow = (typeof mRow == 'object') ? 
                                            Severity: Major
                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                                      function _fnColumnOptions( oSettings, iCol, oOptions )
                                                      {
                                                          var oCol = oSettings.aoColumns[ iCol ];
                                                          
                                                          /* User specified column options */
                                              Severity: Major
                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

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

                                                        function _fnUpdateInfo ( oSettings )
                                                        {
                                                            /* Show information about the table */
                                                            if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
                                                            {
                                                Severity: Major
                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

                                                  Function fnInnerSorting has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                                  var fnInnerSorting = function () {
                                                                      var iColumn, iNextSort;
                                                                      
                                                                      /* If the shift key is pressed then we are multipe column sorting */
                                                                      if ( e.shiftKey )
                                                  Severity: Minor
                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 2 hrs to fix

                                                    Function _fnAddColumn has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                            function _fnAddColumn( oSettings, nTh )
                                                            {
                                                                var iCol = oSettings.aoColumns.length;
                                                                var oCol = {
                                                                    "sType": null,
                                                    Severity: Minor
                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

                                                      Function _fnAddData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                              function _fnAddData ( oSettings, aDataSupplied )
                                                              {
                                                                  var oCol;
                                                                  
                                                                  /* Take an independent copy of the data source so we can bash it about as we wish */
                                                      Severity: Minor
                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                function _fnPageChange ( oSettings, sAction )
                                                                {
                                                                    var iOldStart = oSettings._iDisplayStart;
                                                                    
                                                                    if ( sAction == "first" )
                                                        Severity: Minor
                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                  function _fnAjaxUpdateDraw ( oSettings, json )
                                                                  {
                                                                      if ( typeof json.sEcho != 'undefined' )
                                                                      {
                                                                          /* Protect against old returns over-writing a new one. Possible when you get
                                                          Severity: Minor
                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                    function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart )
                                                                    {
                                                                        var i;
                                                                        var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart );
                                                                        
                                                            Severity: Minor
                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                      function _fnAjaxParameters( oSettings )
                                                                      {
                                                                          var iColumns = oSettings.aoColumns.length;
                                                                          var aoData = [], mDataProp;
                                                                          var i;
                                                              Severity: Minor
                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                        function _fnSaveState ( oSettings )
                                                                        {
                                                                            if ( !oSettings.oFeatures.bStateSave || typeof oSettings.bDestroying != 'undefined' )
                                                                            {
                                                                                return;
                                                                Severity: Minor
                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                          function _fnCreateTr ( oSettings, iRow )
                                                                          {
                                                                              var oData = oSettings.aoData[iRow];
                                                                              var nTd;
                                                                  
                                                                  
                                                                  Severity: Minor
                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                            function _fnGetObjectDataFn( mSource )
                                                                            {
                                                                                if ( mSource === null )
                                                                                {
                                                                                    /* Give an empty string for rendering / sorting etc */
                                                                    Severity: Minor
                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                  "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
                                                                                  {
                                                                                      var nPrevious, nNext, nPreviousInner, nNextInner;
                                                                                      
                                                                                      /* Store the next and previous elements in the oSettings object as they can be very
                                                                      Severity: Minor
                                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
                                                                                {
                                                                                    var date = new Date();
                                                                                    date.setTime( date.getTime()+(iSecs*1000) );
                                                                                    
                                                                        Severity: Minor
                                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

                                                                          Function _fnDetectHeader has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                                  function _fnDetectHeader ( aLayout, nThead )
                                                                                  {
                                                                                      var nTrs = $(nThead).children('tr');
                                                                                      var nCell;
                                                                                      var i, j, k, l, iLen, jLen, iColShifted;
                                                                          Severity: Minor
                                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

                                                                            Function _fnSetObjectDataFn has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                    function _fnSetObjectDataFn( mSource )
                                                                                    {
                                                                                        if ( mSource === null )
                                                                                        {
                                                                                            /* Nothing to do when the data source is null */
                                                                            Severity: Minor
                                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                      this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
                                                                                      {
                                                                                          var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
                                                                                          
                                                                                          if ( !oSettings.oFeatures.bFilter )
                                                                              Severity: Minor
                                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                        function _fnGetTdNodes ( oSettings, iIndividualRow )
                                                                                        {
                                                                                            var anReturn = [];
                                                                                            var iCorrector;
                                                                                            var anTds;
                                                                                Severity: Minor
                                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                          function _fnFeatureHtmlFilter ( oSettings )
                                                                                          {
                                                                                              var sSearchStr = oSettings.oLanguage.sSearch;
                                                                                              sSearchStr = (sSearchStr.indexOf('_INPUT_') !== -1) ?
                                                                                                sSearchStr.replace('_INPUT_', '<input type="text" />') :
                                                                                  Severity: Minor
                                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                            this.fnAddData = function( mData, bRedraw )
                                                                                            {
                                                                                                if ( mData.length === 0 )
                                                                                                {
                                                                                                    return [];
                                                                                    Severity: Minor
                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                              function ( sData )
                                                                                              {
                                                                                                  /* Allow zero length strings as a number */
                                                                                                  if ( typeof sData == 'number' )
                                                                                                  {
                                                                                      Severity: Minor
                                                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                                this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
                                                                                                {
                                                                                                    /* Find settings from table node */
                                                                                                    var oSettings = _fnSettingsFromNode( this[_oExt.iApiIndex] );
                                                                                                    var i, iAODataIndex;
                                                                                        Severity: Minor
                                                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                                  function _fnScrollBarWidth ()
                                                                                                  {  
                                                                                                      var inner = document.createElement('p');
                                                                                                      var style = inner.style;
                                                                                                      style.width = "100%";
                                                                                          Severity: Minor
                                                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                                                                                                    function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
                                                                                                    {
                                                                                                        var sData;
                                                                                                        var oCol = oSettings.aoColumns[iCol];
                                                                                                        var oData = oSettings.aoData[iRow]._aData;
                                                                                            Severity: Minor
                                                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                      else if ( typeof aTargets[j] == 'number' && aTargets[j] < 0 )
                                                                                                                      {
                                                                                                                          /* Negative integer, right to left column counting */
                                                                                                                          _fnColumnOptions( oSettings, oSettings.aoColumns.length+aTargets[j], 
                                                                                                                              oInit.aoColumnDefs[i] );
                                                                                              Severity: Major
                                                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                Avoid deeply nested control flow statements.
                                                                                                Open

                                                                                                                            if ( oSettings.aoColumns[i].sWidthOrig === null )
                                                                                                                            {
                                                                                                                                iTotal += $(oNodes[iCorrector]).outerWidth();
                                                                                                                            }
                                                                                                                            else
                                                                                                Severity: Major
                                                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                                              if ( sValType !== '' )
                                                                                                                              {
                                                                                                                                  sThisType = _fnDetectType( sValType );
                                                                                                                                  if ( oSettings.aoColumns[iColumn].sType === null )
                                                                                                                                  {
                                                                                                  Severity: Major
                                                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                            if ( cOption == aoFeatures[k].cFeature )
                                                                                                                            {
                                                                                                                                nTmp = aoFeatures[k].fnInit( oSettings );
                                                                                                                                if ( nTmp )
                                                                                                                                {
                                                                                                    Severity: Major
                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                                  while( oSettings.aoColumns.length <= aTargets[j] )
                                                                                                                                  {
                                                                                                                                      _fnAddColumn( oSettings );
                                                                                                                                  }
                                                                                                      Severity: Major
                                                                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                                    if ( sNodeName == "TD" || sNodeName == "TH" )
                                                                                                                                    {
                                                                                                                                        _fnSetCellData( oSettings, iThisIndex, jInner, $.trim(nTds[j].innerHTML) );
                                                                                                                                        jInner++;
                                                                                                                                    }
                                                                                                        Severity: Major
                                                                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                                      if ( nRow == oSettings.aoOpenRows[k].nParent )
                                                                                                                                      {
                                                                                                                                          anRows.push( oSettings.aoOpenRows[k].nTr );
                                                                                                                                      }
                                                                                                          Severity: Major
                                                                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                                    else if ( nTds[i].className.indexOf(sClass+"2") != -1 )
                                                                                                                                    {
                                                                                                                                        for ( j=0, jLen=(nTds.length/iColumns) ; j<jLen ; j++ )
                                                                                                                                        {
                                                                                                                                            nTds[(iColumns*j)+i].className = 
                                                                                                            Severity: Major
                                                                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                          for ( k=0 ; k<iRowspan ; k++ )
                                                                                                                                          {
                                                                                                                                              aApplied[i+k][j+iColspan] = 1;
                                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                            for ( k=0 ; k<iRowspan ; k++ )
                                                                                                                                            {
                                                                                                                                                aLayout[i+k][iColShifted+l] = {
                                                                                                                                                    "cell": nCell,
                                                                                                                                                    "unique": iColspan == 1 ? true : false
                                                                                                                Severity: Major
                                                                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                              if ( oSettings.aoColumns[iColumn].bUseRendered )
                                                                                                                                              {
                                                                                                                                                  /* Use the rendered data for filtering/sorting */
                                                                                                                                                  _fnSetCellData( oSettings, iRow, iColumn, sRendered );
                                                                                                                                              }
                                                                                                                  Severity: Major
                                                                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                                for ( j=0, jLen=(nTds.length/iColumns) ; j<jLen ; j++ )
                                                                                                                                                {
                                                                                                                                                    nTds[(iColumns*j)+i].className = 
                                                                                                                                                        $.trim( nTds[(iColumns*j)+i].className.replace( sClass+"1", "" ) );
                                                                                                                                                }
                                                                                                                    Severity: Major
                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                                  if ( oSettings.aoColumns[i].sContentPadding !== "" )
                                                                                                                                                  {
                                                                                                                                                      nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
                                                                                                                                                  }
                                                                                                                      Severity: Major
                                                                                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                                            if ( nCell.nodeName.toUpperCase() == "TD" ||
                                                                                                                                                 nCell.nodeName.toUpperCase() == "TH" )
                                                                                                                                            {
                                                                                                                                                /* Get the col and rowspan attributes from the DOM and sanitise them */
                                                                                                                                                var iColspan = nCell.getAttribute('colspan') * 1;
                                                                                                                        Severity: Major
                                                                                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 40 mins to fix

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

                                                                                                                                  this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
                                                                                                                          Severity: Minor
                                                                                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

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

                                                                                                                                    this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
                                                                                                                            Severity: Minor
                                                                                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

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

                                                                                                                                      function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart )
                                                                                                                              Severity: Minor
                                                                                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

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

                                                                                                                                        function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
                                                                                                                                Severity: Minor
                                                                                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

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

                                                                                                                                          function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart )
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                    Open

                                                                                                                                                        return function (data) {
                                                                                                                                                            for ( var i=0, iLen=a.length ; i<iLen ; i++ )
                                                                                                                                                            {
                                                                                                                                                                data = data[ a[i] ];
                                                                                                                                                            }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                      Open

                                                                                                                                                  return s+"px";
                                                                                                                                      Severity: Major
                                                                                                                                      Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                                    return sData;
                                                                                                                                        Severity: Major
                                                                                                                                        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                                          return function (data, val) {
                                                                                                                                                              data[mSource] = val;    
                                                                                                                                                          };
                                                                                                                                          Severity: Major
                                                                                                                                          Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                                return function (data, val) {
                                                                                                                                                                    for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
                                                                                                                                                                    {
                                                                                                                                                                        data = data[ a[i] ];
                                                                                                                                                                    }
                                                                                                                                            Severity: Major
                                                                                                                                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                                      return null;
                                                                                                                                              Severity: Major
                                                                                                                                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                            return 'numeric';
                                                                                                                                                Severity: Major
                                                                                                                                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                                  return function (data) {
                                                                                                                                                                      return data[mSource];    
                                                                                                                                                                  };
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 30 mins to fix

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

                                                                                                                                                                    _fnApplyToChildren( function(nSizer, nToSize) {
                                                                                                                                                                        oStyle = nSizer.style;
                                                                                                                                                                        oStyle.paddingTop = "0";
                                                                                                                                                                        oStyle.paddingBottom = "0";
                                                                                                                                                                        oStyle.borderTopWidth = "0";
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4089..4100

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 130.

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

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

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

                                                                                                                                                    See codeclimate-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

                                                                                                                                                                _fnApplyToChildren( function(nSizer, nToSize) {
                                                                                                                                                                    oStyle = nSizer.style;
                                                                                                                                                                    oStyle.paddingTop = "0";
                                                                                                                                                                    oStyle.paddingBottom = "0";
                                                                                                                                                                    oStyle.borderTopWidth = "0";
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 4 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4109..4120

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 130.

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

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

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

                                                                                                                                                    See codeclimate-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

                                                                                                                                                            "date-asc": function ( a, b )
                                                                                                                                                            {
                                                                                                                                                                var x = Date.parse( a );
                                                                                                                                                                var y = Date.parse( b );
                                                                                                                                                                
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 664..679

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 114.

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

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

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

                                                                                                                                                    See codeclimate-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

                                                                                                                                                            "date-desc": function ( a, b )
                                                                                                                                                            {
                                                                                                                                                                var x = Date.parse( a );
                                                                                                                                                                var y = Date.parse( b );
                                                                                                                                                                
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 647..662

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 114.

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

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

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

                                                                                                                                                    See codeclimate-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 if ( nTds[i].className.indexOf(sClass+"2") != -1 )
                                                                                                                                                                            {
                                                                                                                                                                                for ( j=0, jLen=(nTds.length/iColumns) ; j<jLen ; j++ )
                                                                                                                                                                                {
                                                                                                                                                                                    nTds[(iColumns*j)+i].className = 
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4984..5007

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                                            if ( nTds[i].className.indexOf(sClass+"1") != -1 )
                                                                                                                                                                            {
                                                                                                                                                                                for ( j=0, jLen=(nTds.length/iColumns) ; j<jLen ; j++ )
                                                                                                                                                                                {
                                                                                                                                                                                    nTds[(iColumns*j)+i].className = 
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 3 hrs to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4992..5007

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                            "numeric-asc": function ( a, b )
                                                                                                                                                            {
                                                                                                                                                                var x = (a=="-" || a==="") ? 0 : a*1;
                                                                                                                                                                var y = (b=="-" || b==="") ? 0 : b*1;
                                                                                                                                                                return x - y;
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 692..697

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 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

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

                                                                                                                                                            "numeric-desc": function ( a, b )
                                                                                                                                                            {
                                                                                                                                                                var x = (a=="-" || a==="") ? 0 : a*1;
                                                                                                                                                                var y = (b=="-" || b==="") ? 0 : b*1;
                                                                                                                                                                return y - x;
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 685..690

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                                if ( typeof oSettings.fnFooterCallback == 'function' )
                                                                                                                                                                {
                                                                                                                                                                    oSettings.fnFooterCallback.call( oSettings.oInstance, $(oSettings.nTFoot).children('tr')[0], 
                                                                                                                                                                        _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(),
                                                                                                                                                                        oSettings.aiDisplay );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 3334..3339

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 67.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                if ( typeof oSettings.fnHeaderCallback == 'function' )
                                                                                                                                                                {
                                                                                                                                                                    oSettings.fnHeaderCallback.call( oSettings.oInstance, $(oSettings.nTHead).children('tr')[0], 
                                                                                                                                                                        _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(),
                                                                                                                                                                        oSettings.aiDisplay );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 3341..3346

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 67.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    $('th', oSettings.nTHead).removeClass( [ _oExt.oStdClasses.sSortable,
                                                                                                                                                                        _oExt.oJUIClasses.sSortableAsc,
                                                                                                                                                                        _oExt.oJUIClasses.sSortableDesc,
                                                                                                                                                                        _oExt.oJUIClasses.sSortableNone ].join(' ')
                                                                                                                                                                    );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2208..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 65.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    $('th', oSettings.nTHead).removeClass( [ _oExt.oStdClasses.sSortable,
                                                                                                                                                                        _oExt.oStdClasses.sSortableAsc,
                                                                                                                                                                        _oExt.oStdClasses.sSortableDesc,
                                                                                                                                                                        _oExt.oStdClasses.sSortableNone ].join(' ')
                                                                                                                                                                    );
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2216..2220

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 65.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( oSettings.aaSortingFixed !== null )
                                                                                                                                                                    {
                                                                                                                                                                        aaSort = oSettings.aaSortingFixed.concat( oSettings.aaSorting );
                                                                                                                                                                    }
                                                                                                                                                                    else
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4897..4904

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 62.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                if ( oSettings.aaSortingFixed !== null )
                                                                                                                                                                {
                                                                                                                                                                    aaSort = oSettings.aaSortingFixed.concat( oSettings.aaSorting );
                                                                                                                                                                }
                                                                                                                                                                else
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4656..4663

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 62.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                this.fnRecordsTotal = function ()
                                                                                                                                                                {
                                                                                                                                                                    if ( this.oFeatures.bServerSide ) {
                                                                                                                                                                        return parseInt(this._iRecordsTotal, 10);
                                                                                                                                                                    } else {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 874..881

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                this.fnRecordsDisplay = function ()
                                                                                                                                                                {
                                                                                                                                                                    if ( this.oFeatures.bServerSide ) {
                                                                                                                                                                        return parseInt(this._iRecordsDisplay, 10);
                                                                                                                                                                    } else {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 865..872

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 58.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( $(anRows[1]).hasClass(oSettings.oClasses.sStripeOdd) )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.asDestroyStripes[1] += oSettings.oClasses.sStripeOdd+" ";
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7223..7226

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 58.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( $(anRows[0]).hasClass(oSettings.oClasses.sStripeOdd) )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.asDestroyStripes[0] += oSettings.oClasses.sStripeOdd+" ";
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7231..7234

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                                sRendered = oSettings.aoColumns[iColumn].fnRender( {
                                                                                                                                                                                        "iDataRow": iRow,
                                                                                                                                                                                        "iDataColumn": iColumn,
                                                                                                                                                                                        "aData": oSettings.aoData[iRow]._aData,
                                                                                                                                                                                        "oSettings": oSettings
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 1976..1981

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 56.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                        sDisplay = oSettings.aoColumns[iColumn].fnRender( {
                                                                                                                                                                            "iDataRow": iRow,
                                                                                                                                                                            "iDataColumn": iColumn,
                                                                                                                                                                            "aData": oSettings.aoData[iRow]._aData,
                                                                                                                                                                            "oSettings": oSettings
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 1 hr to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2931..2936

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 56.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( $(anRows[1]).hasClass(oSettings.oClasses.sStripeEven) )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.asDestroyStripes[1] += oSettings.oClasses.sStripeEven;
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 55 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7227..7230

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 54.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( $(anRows[0]).hasClass(oSettings.oClasses.sStripeEven) )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.asDestroyStripes[0] += oSettings.oClasses.sStripeEven;
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 55 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7235..7238

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 54.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                if ( oSettings.sTableId !== '' && typeof oSettings.aanFeatures.l == "undefined" )
                                                                                                                                                                {
                                                                                                                                                                    nLength.setAttribute( 'id', oSettings.sTableId+'_length' );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 55 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4284..4287
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 5356..5359

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                if ( oSettings.sTableId !== '' && typeof oSettings.aanFeatures.f == "undefined" )
                                                                                                                                                                {
                                                                                                                                                                    nFilter.setAttribute( 'id', oSettings.sTableId+'_filter' );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 55 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 5290..5293
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 5356..5359

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                if ( oSettings.sTableId !== '' && typeof oSettings.aanFeatures.r == "undefined" )
                                                                                                                                                                {
                                                                                                                                                                    nProcessing.setAttribute( 'id', oSettings.sTableId+'_processing' );
                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 55 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4284..4287
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 5290..5293

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                    for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
                                                                                                                                                                    {
                                                                                                                                                                        this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 1963..1966

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                    for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
                                                                                                                                                                    {
                                                                                                                                                                        this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 1953..1956

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                _fnApplyToChildren( function(nSizer) {
                                                                                                                                                                    nSizer.innerHTML = "";
                                                                                                                                                                    nSizer.style.width = _fnStringToCss( aApplied.shift() );
                                                                                                                                                                }, anHeadSizers );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4138..4141

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    $(nLast).on( 'click.DT', function() {
                                                                                                                                                                        if ( oSettings.oApi._fnPageChange( oSettings, "last" ) )
                                                                                                                                                                        {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 330..335

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    $(nNext).on( 'click.DT', function() {
                                                                                                                                                                        if ( oSettings.oApi._fnPageChange( oSettings, "next" ) )
                                                                                                                                                                        {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 450..455

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    _fnApplyToChildren( function(nSizer) {
                                                                                                                                                                        nSizer.innerHTML = "";
                                                                                                                                                                        nSizer.style.width = _fnStringToCss( aApplied.shift() );
                                                                                                                                                                    }, anFootSizers );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 4131..4134

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                        if ( iPages === 0 || iCurrentPage == iPages || oSettings._iDisplayLength == -1 )
                                                                                                                                                                        {
                                                                                                                                                                            anStatic[2].className += " "+oClasses.sPageButtonStaticDisabled;
                                                                                                                                                                            anStatic[3].className += " "+oClasses.sPageButtonStaticDisabled;
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 568..577

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                        if ( iCurrentPage == 1 )
                                                                                                                                                                        {
                                                                                                                                                                            anStatic[0].className += " "+oClasses.sPageButtonStaticDisabled;
                                                                                                                                                                            anStatic[1].className += " "+oClasses.sPageButtonStaticDisabled;
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 579..588

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
                                                                                                                                                                {
                                                                                                                                                                    if ( oSettings.aoData[i].nTr !== null )
                                                                                                                                                                    {
                                                                                                                                                                        nBody.appendChild( oSettings.aoData[i].nTr );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 5973..5979

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                for ( var i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
                                                                                                                                                                {
                                                                                                                                                                    if ( oSettings.aoData[i].nTr !== null )
                                                                                                                                                                    {
                                                                                                                                                                        aNodes.push( oSettings.aoData[i].nTr );
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 45 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2241..2247

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 50.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                if ( oSettings.nTFoot && oSettings.nTable != oSettings.nTFoot.parentNode )
                                                                                                                                                                {
                                                                                                                                                                    $(oSettings.nTable).children('tfoot').remove();
                                                                                                                                                                    oSettings.nTable.appendChild( oSettings.nTFoot );
                                                                                                                                                                }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 40 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2184..2188

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 49.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                if ( oSettings.nTable != oSettings.nTHead.parentNode )
                                                                                                                                                                {
                                                                                                                                                                    $(oSettings.nTable).children('thead').remove();
                                                                                                                                                                    oSettings.nTable.appendChild( oSettings.nTHead );
                                                                                                                                                                }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 40 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 2190..2194

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                    $(nFirst).on( 'click.DT', function () {
                                                                                                                                                                        if ( oSettings.oApi._fnPageChange( oSettings, "first" ) )
                                                                                                                                                                        {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 436..441
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 443..448

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                    $(nPrevious).on( 'click.DT', function() {
                                                                                                                                                                        if ( oSettings.oApi._fnPageChange( oSettings, "previous" ) )
                                                                                                                                                                        {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 429..434
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 443..448

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                                    $(nNext).on( 'click.DT', function() {
                                                                                                                                                                        if ( oSettings.oApi._fnPageChange( oSettings, "next" ) )
                                                                                                                                                                        {
                                                                                                                                                                            fnCallbackDraw( oSettings );
                                                                                                                                                                        }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 2 other locations - About 40 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 429..434
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 436..441

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    Tuning

                                                                                                                                                    This issue has a mass of 48.

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

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

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

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

                                                                                                                                                    Refactorings

                                                                                                                                                    Further Reading

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

                                                                                                                                                                    if ( typeof oInit.fnStateSaveCallback == 'function' )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.aoStateSave.push( {
                                                                                                                                                                            "fn": oInit.fnStateSaveCallback,
                                                                                                                                                                            "sName": "user"
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 35 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7083..7089

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                                if ( tbody.length === 0 )
                                                                                                                                                                {
                                                                                                                                                                    tbody = [ document.createElement( 'tbody' ) ];
                                                                                                                                                                    this.appendChild( tbody[0] );
                                                                                                                                                                }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 35 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7389..7393

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                                    if ( typeof oInit.fnStateLoadCallback == 'function' )
                                                                                                                                                                    {
                                                                                                                                                                        oSettings.aoStateLoad.push( {
                                                                                                                                                                            "fn": oInit.fnStateLoadCallback,
                                                                                                                                                                            "sName": "user"
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 35 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7075..7081

                                                                                                                                                    Duplicated Code

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

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

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

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

                                                                                                                                                                if ( thead.length === 0 )
                                                                                                                                                                {
                                                                                                                                                                    thead = [ document.createElement( 'thead' ) ];
                                                                                                                                                                    this.appendChild( thead[0] );
                                                                                                                                                                }
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js and 1 other location - About 35 mins to fix
                                                                                                                                                    phpsysinfo/js/jQuery/jquery.dataTables.js on lines 7397..7401

                                                                                                                                                    Duplicated Code

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

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

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

                                                                                                                                                    There are no issues that match your filters.

                                                                                                                                                    Category
                                                                                                                                                    Status