jidaikobo-shibata/a11yc

View on GitHub
libs/kontiki/classes/Input.php

Summary

Maintainability
A
0 mins
Test Coverage

server accesses the super-global variable $_SERVER.
Open

    public static function server(
        $index,
        $default = null,
        $filter = FILTER_DEFAULT,
        $options = array()
Severity: Minor
Found in libs/kontiki/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

file accesses the super-global variable $_FILES.
Open

    public static function file($index = null, $default = null)
    {
        $files = $_FILES;

        if (func_num_args() === 0)
Severity: Minor
Found in libs/kontiki/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

server accesses the super-global variable $_SERVER.
Open

    public static function server(
        $index,
        $default = null,
        $filter = FILTER_DEFAULT,
        $options = array()
Severity: Minor
Found in libs/kontiki/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