XoopsModules25x/xoopsinfo

View on GitHub

Showing 613 of 16,781 total issues

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

function stablebit_request() {
    $("#Reload_StableBitTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=StableBit",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function uprecords_request() {
    $("#Reload_uprecordsTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=uprecords",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/uprecords/js/uprecords.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196

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 126.

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

function raid_request() {
    $("#Reload_RaidTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=Raid",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/raid/js/raid.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function ps_request() {
    $("#Reload_PSTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=PS",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/ps/js/ps.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function hyperv_request() {
    $("#Reload_HyperVTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=HyperV",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/hyperv/js/hyperv.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function psstatus_request() {
    $("#Reload_PSStatusTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=PSStatus",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/psstatus/js/psstatus.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function snmppinfo_request() {
    $("#Reload_SNMPPInfoTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=SNMPPInfo",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/snmppinfo/js/snmppinfo.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function docker_request() {
    $("#Reload_DockerTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=docker",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/docker/js/docker.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function bat_request() {
    $("#Reload_BATTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=BAT",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function pingtest_request() {
    $("#Reload_PingTestTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=PingTest",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/pingtest/js/pingtest.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/iptables/js/iptables.js on lines 73..90
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

function iptables_request() {
    $("#Reload_iptablesTable").attr("title", "reload");
    $.ajax({
        url: "xml.php?plugin=iptables",
        dataType: "xml",
Severity: Major
Found in phpsysinfo/plugins/iptables/js/iptables.js and 11 other locations - About 4 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 186..203
phpsysinfo/plugins/docker/js/docker.js on lines 118..135
phpsysinfo/plugins/hyperv/js/hyperv.js on lines 96..113
phpsysinfo/plugins/pingtest/js/pingtest.js on lines 95..112
phpsysinfo/plugins/ps/js/ps.js on lines 113..130
phpsysinfo/plugins/psstatus/js/psstatus.js on lines 96..113
phpsysinfo/plugins/quotas/js/quotas.js on lines 118..135
phpsysinfo/plugins/raid/js/raid.js on lines 227..244
phpsysinfo/plugins/snmppinfo/js/snmppinfo.js on lines 131..148
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 179..196
phpsysinfo/plugins/uprecords/js/uprecords.js on lines 95..112

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 126.

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in phpsecinfo/PhpSecInfo/Test/Core/magic_quotes_gpc.php and 1 other location - About 4 hrs to fix
phpsecinfo/PhpSecInfo/Test/Core/register_globals.php on lines 1..72

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 171.

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in phpsecinfo/PhpSecInfo/Test/Core/register_globals.php and 1 other location - About 4 hrs to fix
phpsecinfo/PhpSecInfo/Test/Core/magic_quotes_gpc.php on lines 1..76

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 171.

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

            if ($(this).attr("IsSmartFailurePredicted") !== undefined) {
                issmartfailurepredicted = parseInt($(this).attr("IsSmartFailurePredicted"), 10);
                if (!isNaN(issmartfailurepredicted) && (issmartfailurepredicted === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 87..96
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 97..106
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 107..116
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 117..126
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 137..146

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 123.

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

            if ($(this).attr("IsDamaged") !== undefined) {
                isdamaged = parseInt($(this).attr("IsDamaged"), 10);
                if (!isNaN(isdamaged) && (isdamaged === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 87..96
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 97..106
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 107..116
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 117..126
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 127..136

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 123.

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

            if ($(this).attr("IsSmartPastAdvisoryThresholds") !== undefined) {
                issmartpastadvisorythresholds = parseInt($(this).attr("IsSmartPastAdvisoryThresholds"), 10);
                if (!isNaN(issmartpastadvisorythresholds) && (issmartpastadvisorythresholds === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 87..96
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 97..106
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 107..116
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 127..136
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 137..146

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 123.

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

            if ($(this).attr("IsSmartPastThresholds") !== undefined) {
                issmartpastthresholds = parseInt($(this).attr("IsSmartPastThresholds"), 10);
                if (!isNaN(issmartpastthresholds) && (issmartpastthresholds === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 87..96
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 97..106
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 117..126
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 127..136
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 137..146

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 123.

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

            if ($(this).attr("IsSmartWarning") !== undefined) {
                issmartwarning = parseInt($(this).attr("IsSmartWarning"), 10);
                if (!isNaN(issmartwarning) && (issmartwarning === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 87..96
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 107..116
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 117..126
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 127..136
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 137..146

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 123.

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

            if ($(this).attr("IsHot") !== undefined) {
                ishot = parseInt($(this).attr("IsHot"), 10);
                if (!isNaN(ishot) && (ishot === 1)) {
                    html += "      <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n";
                }
Severity: Major
Found in phpsysinfo/plugins/stablebit/js/stablebit.js and 5 other locations - About 4 hrs to fix
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 97..106
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 107..116
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 117..126
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 127..136
phpsysinfo/plugins/stablebit/js/stablebit.js on lines 137..146

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 123.

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

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

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

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

Refactorings

Further Reading

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

    function deletebyMimeModule(&$mimetype_object, $force = false) {
        if (strtolower(get_class($mimetype_object)) != 'xoopsmimetypes_perms') {
            return false;
        }
        $sql = sprintf("DELETE FROM %s WHERE mperm_mime = %u AND mperm_module = %u", $this->db->prefix("mimetypes_perms"), $mimetype_object->getVar('mperm_mime'), $mimetype_object->getVar('mperm_module'));
Severity: Major
Found in kernel/mimetypes.php and 1 other location - About 4 hrs to fix
kernel/mimetypes.php on lines 695..712

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 167.

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