Showing 27 of 27 total issues
__construct accesses the super-global variable $_GET. Open
Open
public function __construct($get = null, $post = null, $body = null, $files = null) {
if ($get === null) {
$get = $_GET;
}
if ($post === null) {
- Read upRead up
- Exclude checks
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 $_SERVER. Open
Open
public static function get($key) {
$array = $_SERVER;
if (static::$default !== null) {
$array = static::$default;
}
- Read upRead up
- Exclude checks
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
__construct accesses the super-global variable $_FILES. Open
Open
public function __construct($get = null, $post = null, $body = null, $files = null) {
if ($get === null) {
$get = $_GET;
}
if ($post === null) {
- Read upRead up
- Exclude checks
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
TODO found Open
Open
* TODO use RoutingException instead of HttpInternalServerError?
- Exclude checks
FIXME found Open
Open
// FIXME this is ugly
- Exclude checks
FIXME found Open
Open
// FIXME use content type given in request?
- Exclude checks
FIXME found Open
Open
// FIXME ensure that a response is always given initialized with at least the content type header
- Exclude checks