XoopsModules25x/xoopsinfo

View on GitHub

Showing 613 of 16,781 total issues

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

        if (last_outage !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(75) + "</span></div></td><td>" + last_outage + "</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 1540..1543
phpsysinfo/js/phpSysInfo/phpsysinfo.js on lines 1544..1547
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 (battery_date !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(104) + "</span></div></td><td>" + battery_date + "</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 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

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 (manufacturer!== undefined) {
            html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(122) + ":</span></div></td><td>" + manufacturer + "</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 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 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

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

        if (last_outage_finish !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(76) + "</span></div></td><td>" + last_outage_finish + "</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 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 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 (start_time !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(72) + "</span></div></td><td>" + start_time + "</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 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

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

        if (virt !== undefined) {
            html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(94) + ":</span></div></td><td>" + virt + "</td></tr>\n";
            tree.push(cpucoreposition);
        }
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 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 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

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

        if (serial !== undefined) {
            html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(124) + ":</span></div></td><td>" + serial + "</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 863..866
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

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

        if (upsstatus !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(73) + "</span></div></td><td>" + upsstatus + "</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 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

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

        if (model !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(70) + "</span></div></td><td>" + model + "</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 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

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

        if (outages_count !== undefined) {
            html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(74) + "</span></div></td><td>" + outages_count + "</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 1540..1543
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 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 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

            $this.on("collapse", function() {
                var $this = $(this);
                $this.removeClass('treegrid-expanded');
                $this.addClass('treegrid-collapsed');
            });
Severity: Minor
Found in phpsysinfo/js/jQuery/jquery.treegrid.js and 1 other location - About 40 mins to fix
phpsysinfo/js/jQuery/jquery.treegrid.js on lines 67..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 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

            $this.on("expand", function() {
                var $this = $(this);
                $this.removeClass('treegrid-collapsed');
                $this.addClass('treegrid-expanded');
            });
Severity: Minor
Found in phpsysinfo/js/jQuery/jquery.treegrid.js and 1 other location - About 40 mins to fix
phpsysinfo/js/jQuery/jquery.treegrid.js on lines 61..65

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

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

            if (Object.prototype.__defineSetter__ && ('set' in desc)) {
                Object.prototype.__defineSetter__.call(o, prop, desc.set);
            }
Severity: Minor
Found in phpsysinfo/js/vendor/bootstrap-ie8.js and 1 other location - About 40 mins to fix
phpsysinfo/js/vendor/bootstrap-ie8.js on lines 77..79

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 (Object.prototype.__defineGetter__ && ('get' in desc)) {
                Object.prototype.__defineGetter__.call(o, prop, desc.get);
            }
Severity: Minor
Found in phpsysinfo/js/vendor/bootstrap-ie8.js and 1 other location - About 40 mins to fix
phpsysinfo/js/vendor/bootstrap-ie8.js on lines 80..82

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 4 locations. Consider refactoring.
Open

        MemoryUsage: {
            html: function () {
                return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.MemoryUsage + '%;"></div>' +
                        '</div><div class="percent">' + this.MemoryUsage + '%</div>';
            }
Severity: Major
Found in phpsysinfo/plugins/ps/js/ps_bootstrap.js and 3 other locations - About 35 mins to fix
phpsysinfo/plugins/ps/js/ps_bootstrap.js on lines 10..15
phpsysinfo/plugins/quotas/js/quotas_bootstrap.js on lines 20..25
phpsysinfo/plugins/quotas/js/quotas_bootstrap.js on lines 26..31

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

Severity
Category
Status
Source
Language