XoopsModules25x/xoopsinfo

View on GitHub

Showing 613 of 16,781 total issues

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

        if (ChargingState !== undefined) {
            html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(8, "BAT") + "</div></span></td><td>" + ChargingState +"</td><td></td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

        if (Manufacturer !== undefined) {
            html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "BAT") + "</div></span></td><td>" + Manufacturer +"</td><td></td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

        if (SerialNumber !== undefined) {
            html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(16, "BAT") + "</div></span></td><td>" + SerialNumber +"</td><td></td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

            if (serialnumber !== undefined) {
                html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "StableBit") + "</div></span></td><td>" + serialnumber +"</td></tr>\n";
                tree.push(index);
            }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

        if (BatteryType !== undefined) {
            html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "BAT") + "</div></span></td><td>" + BatteryType +"</td><td></td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

            if (firmware !== undefined) {
                html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(5, "StableBit") + "</div></span></td><td>" + firmware +"</td></tr>\n";
                tree.push(index);
            }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

            if (powerstate !== undefined) {
                html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(7, "StableBit") + "</div></span></td><td>" + powerstate +"</td></tr>\n";
                tree.push(index);
            }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 147..150
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71

Duplicated Code

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

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

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

        if (BatteryCondition !== undefined) {
            html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "BAT") + "</div></span></td><td>" + BatteryCondition +"</td><td></td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 9 other locations - About 45 mins to fix
phpsysinfo/plugins/bat/js/bat.js on lines 77..80
phpsysinfo/plugins/bat/js/bat.js on lines 81..84
phpsysinfo/plugins/bat/js/bat.js on lines 85..88
phpsysinfo/plugins/bat/js/bat.js on lines 119..122
phpsysinfo/plugins/bat/js/bat.js on lines 139..142
phpsysinfo/plugins/bat/js/bat.js on lines 151..154
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 63..66
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 68..71
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 78..81

Duplicated Code

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

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

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

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

            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

            _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

                    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

                $(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

            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

                $(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 12 locations. Consider refactoring.
Open

        if (temperature !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(84) + "</span></div></td><td>" + temperature + "</td></tr>\n";
            tree.push(index);
        }
Severity: Major
Found in phpsysinfo/js/phpSysInfo/phpsysinfo.js and 11 other locations - About 40 mins to fix
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 789..792
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 859..862
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 863..866
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 867..870
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1528..1531
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1532..1535
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1536..1539
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1544..1547
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1548..1551
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1552..1555
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1568..1571

Duplicated Code

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

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

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

        if (product !== undefined) {
            html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(123) + ":</span></div></td><td>" + product + "</td></tr>\n";
            tree.push(devcoreposition);
        }
Severity: Major
Found in phpsysinfo/js/phpSysInfo/phpsysinfo.js and 11 other locations - About 40 mins to fix
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 789..792
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 859..862
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 867..870
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1528..1531
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1532..1535
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1536..1539
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1540..1543
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1544..1547
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1548..1551
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1552..1555
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1568..1571

Duplicated Code

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

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

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

Severity
Category
Status
Source
Language