steeffffeen/FancyManiaLinks

View on GitHub
FML/Form/Parameters.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

getValue accesses the super-global variable $_POST.
Open

    public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
Severity: Minor
Found in FML/Form/Parameters.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

getValue accesses the super-global variable $_GET.
Open

    public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
Severity: Minor
Found in FML/Form/Parameters.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

getValue accesses the super-global variable $_GET.
Open

    public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
Severity: Minor
Found in FML/Form/Parameters.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

getValue accesses the super-global variable $_POST.
Open

    public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
Severity: Minor
Found in FML/Form/Parameters.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

The closing brace for the class must go on the next line after the body
Open

}
Severity: Minor
Found in FML/Form/Parameters.php by phpcodesniffer

There are no issues that match your filters.

Category
Status