speedworks/speedy

View on GitHub
Core/Classes/Input.php

Summary

Maintainability
A
0 mins
Test Coverage

has accesses the super-global variable $_REQUEST.
Open

    public static function has($input)
    {
        return isset($_REQUEST[$input])?true:false;
    }
Severity: Minor
Found in Core/Classes/Input.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

get accesses the super-global variable $_REQUEST.
Open

    public static function get($input=null)
    {
        if($input == null)
        {
            return System::FilterInput($_REQUEST);
Severity: Minor
Found in Core/Classes/Input.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

get accesses the super-global variable $_REQUEST.
Open

    public static function get($input=null)
    {
        if($input == null)
        {
            return System::FilterInput($_REQUEST);
Severity: Minor
Found in Core/Classes/Input.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

There are no issues that match your filters.

Category
Status