phossa2/route

View on GitHub
src/Route/Extension/UserAuth.php

Summary

Maintainability
A
0 mins
Test Coverage

doAuth accesses the super-global variable $_SESSION.
Open

    public function doAuth(EventInterface $event)/*# : bool */
    {
        /* @var ResultInterface $result */
        $result = $event->getParam('result');
        $path = $result->getPath();
Severity: Minor
Found in src/Route/Extension/UserAuth.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