XoopsModules25x/xlanguage

View on GitHub
preloads/core.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused local variables such as '$xoopsConfig'.
Open

        global $xoopsConfig;
Severity: Minor
Found in preloads/core.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused parameters such as '$args'.
Open

    public static function eventCoreIncludeCommonEnd($args)
Severity: Minor
Found in preloads/core.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$args'.
Open

    public static function eventCoreIncludeCommonLanguage($args)
Severity: Minor
Found in preloads/core.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class XlanguageCorePreload extends \XoopsPreloadItem
Severity: Minor
Found in preloads/core.php by phpcodesniffer

There are no issues that match your filters.

Category
Status