Showing 4 of 4 total issues
setEnv accesses the super-global variable $_ENV. Open
Open
protected function setEnv(
/*# string */ $key,
/*# string */ $val,
/*# bool */ $overload
) {
- 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
matchGlobalVars accesses the super-global variable $GLOBALS. Open
Open
protected function matchGlobalVars(/*# string */ $name)/*# : string */
{
if (false !== strpos($name, '.')) {
list($n, $k) = explode('.', $name, 2);
if (isset($GLOBALS[$n]) && isset($GLOBALS[$n][$k])) {
- 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
matchGlobalVars accesses the super-global variable $GLOBALS. Open
Open
protected function matchGlobalVars(/*# string */ $name)/*# : string */
{
if (false !== strpos($name, '.')) {
list($n, $k) = explode('.', $name, 2);
if (isset($GLOBALS[$n]) && isset($GLOBALS[$n][$k])) {
- 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
matchGlobalVars accesses the super-global variable $GLOBALS. Open
Open
protected function matchGlobalVars(/*# string */ $name)/*# : string */
{
if (false !== strpos($name, '.')) {
list($n, $k) = explode('.', $name, 2);
if (isset($GLOBALS[$n]) && isset($GLOBALS[$n][$k])) {
- 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'];
}
}