XoopsModules25x/xoopsinfo

View on GitHub

Showing 613 of 16,781 total issues

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/protector.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/newbbex.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/xhld0.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/blocksadmin.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/googlemaps.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/myHome.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/myReferer.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/extcal.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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

<?php

declare(strict_types=1);

/**
Severity: Major
Found in modules/xoopsinfo/plugins/modules/extcal.php and 26 other locations - About 3 hrs to fix
modules/xoopsinfo/plugins/modules/blocksadmin.php on lines 1..34
modules/xoopsinfo/plugins/modules/boox.php on lines 1..34
modules/xoopsinfo/plugins/modules/edito.php on lines 1..34
modules/xoopsinfo/plugins/modules/formulaire.php on lines 1..34
modules/xoopsinfo/plugins/modules/frozen_bubble.php on lines 1..34
modules/xoopsinfo/plugins/modules/googlemaps.php on lines 1..34
modules/xoopsinfo/plugins/modules/isearch.php on lines 1..34
modules/xoopsinfo/plugins/modules/marquee.php on lines 1..34
modules/xoopsinfo/plugins/modules/moved.php on lines 1..34
modules/xoopsinfo/plugins/modules/myCredits.php on lines 1..34
modules/xoopsinfo/plugins/modules/myHome.php on lines 1..34
modules/xoopsinfo/plugins/modules/myMedia.php on lines 1..34
modules/xoopsinfo/plugins/modules/myReferer.php on lines 1..34
modules/xoopsinfo/plugins/modules/myiframe.php on lines 1..34
modules/xoopsinfo/plugins/modules/newbbex.php on lines 1..34
modules/xoopsinfo/plugins/modules/news.php on lines 1..34
modules/xoopsinfo/plugins/modules/pages.php on lines 1..34
modules/xoopsinfo/plugins/modules/popgen.php on lines 1..34
modules/xoopsinfo/plugins/modules/protector.php on lines 1..34
modules/xoopsinfo/plugins/modules/rss.php on lines 1..34
modules/xoopsinfo/plugins/modules/shortcuts.php on lines 1..34
modules/xoopsinfo/plugins/modules/sitemap.php on lines 1..34
modules/xoopsinfo/plugins/modules/userpage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xhld0.php on lines 1..34
modules/xoopsinfo/plugins/modules/xlanguage.php on lines 1..34
modules/xoopsinfo/plugins/modules/xoopsotron.php on lines 1..34

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

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 (!defined('PSI_SYSTEM_LANG')) { //if not overloaded in phpsysinfo.ini
                            $lang = "";
                            if (is_readable(PSI_APP_ROOT.'/data/languages.ini') && ($langdata = @parse_ini_file(PSI_APP_ROOT.'/data/languages.ini', true))) {
                                if (isset($langdata['Linux']['_'.$matches2[1]])) {
                                    $lang = $langdata['Linux']['_'.$matches2[1]];
Severity: Major
Found in phpsysinfo/read_config.php and 1 other location - About 3 hrs to fix
phpsysinfo/read_config.php on lines 229..241

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

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 (!defined('PSI_SYSTEM_LANG') //if not overloaded in phpsysinfo.ini
                && @exec('defaults read /Library/Preferences/.GlobalPreferences AppleLocale 2>/dev/null', $lines)) {
                $lang = "";
                if (is_readable(PSI_APP_ROOT.'/data/languages.ini') && ($langdata = @parse_ini_file(PSI_APP_ROOT.'/data/languages.ini', true))) {
                    if (isset($langdata['Linux']['_'.$lines[0]])) {
Severity: Major
Found in phpsysinfo/read_config.php and 1 other location - About 3 hrs to fix
phpsysinfo/read_config.php on lines 212..223

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

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

        $(fixedContent).each(function (index, element) {
          var actualPadding = element.style.paddingRight;
          var calculatedPadding = $(element).css('padding-right');
          $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
        }); // Adjust sticky content margin
Severity: Major
Found in phpsysinfo/js/vendor/bootstrap-modal.js and 1 other location - About 3 hrs to fix
phpsysinfo/js/vendor/bootstrap-modal.js on lines 510..514

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

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

        $(stickyContent).each(function (index, element) {
          var actualMargin = element.style.marginRight;
          var calculatedMargin = $(element).css('margin-right');
          $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
        }); // Adjust body padding
Severity: Major
Found in phpsysinfo/js/vendor/bootstrap-modal.js and 1 other location - About 3 hrs to fix
phpsysinfo/js/vendor/bootstrap-modal.js on lines 504..508

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

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 100.

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

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

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

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

Refactorings

Further Reading

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

                } else {            
                    html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "BAT") + "</div></span></td><td>" + FullCapacity+' '+CapacityUnit +"</td><td>" + createBar(parseInt(DesignCapacity, 10) !== 0 ? round(parseInt(FullCapacity, 10) / parseInt(DesignCapacity, 10) * 100, 0) : 0) + "</td></tr>\n";
                    tree.push(index);
                }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 1 other location - About 3 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 113..116

Duplicated Code

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

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

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

Tuning

This issue has a mass of 100.

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

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

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

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

Refactorings

Further Reading

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

                if (RemainingCapacity !== undefined) {
                    html += "     <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(3, "BAT") + "</div></span></td><td>" + RemainingCapacity+' '+CapacityUnit +"</td><td>" + createBar(parseInt(FullCapacity, 10) !== 0 ? round(parseInt(RemainingCapacity, 10) / parseInt(FullCapacity, 10) * 100, 0) : 0) + "</td></tr>\n";
                    tree.push(index);
                }
Severity: Major
Found in phpsysinfo/plugins/bat/js/bat.js and 1 other location - About 3 hrs to fix
phpsysinfo/plugins/bat/js/bat.js on lines 109..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 100.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 100.

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

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

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

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

Refactorings

Further Reading

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

                } elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL=(.*)$/', $roworig, $data)) {
                    $bat['full_capacity'] = ($data[1]/1000);
                    if ($data[1]>=1000000000) { // µWh or nWh detection
                        if (!isset($bat['capacity_unit'])) {
                            $bat['capacity_unit'] = "µWh";
Severity: Major
Found in phpsysinfo/plugins/bat/class.bat.inc.php and 2 other locations - About 3 hrs to fix
phpsysinfo/plugins/bat/class.bat.inc.php on lines 460..475
phpsysinfo/plugins/bat/class.bat.inc.php on lines 616..631

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

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

                } elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL_DESIGN=(.*)$/', $roworig, $data)) {
                    $bat['design_capacity'] = ($data[1]/1000);
                    if ($data[1]>=1000000000) { // µWh or nWh detection
                        if (!isset($bat['capacity_unit'])) {
                            $bat['capacity_unit'] = "µWh";
Severity: Major
Found in phpsysinfo/plugins/bat/class.bat.inc.php and 2 other locations - About 3 hrs to fix
phpsysinfo/plugins/bat/class.bat.inc.php on lines 426..441
phpsysinfo/plugins/bat/class.bat.inc.php on lines 616..631

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

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/expose_php.php and 1 other location - About 3 hrs to fix
phpsecinfo/PhpSecInfo/Test/Core/file_uploads.php on lines 1..60

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

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

                } elseif (preg_match('/^POWER_SUPPLY_ENERGY_FULL=(.*)$/', $roworig, $data)) {
                    $bat['full_capacity'] = ($data[1]/1000);
                    if ($data[1]>=1000000000) { // µWh or nWh detection
                        if (!isset($bat['capacity_unit'])) {
                            $bat['capacity_unit'] = "µWh";
Severity: Major
Found in phpsysinfo/plugins/bat/class.bat.inc.php and 2 other locations - About 3 hrs to fix
phpsysinfo/plugins/bat/class.bat.inc.php on lines 426..441
phpsysinfo/plugins/bat/class.bat.inc.php on lines 460..475

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

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