IndyIndyIndy/impersonate

View on GitHub

Showing 1 of 1 total issue

Method process has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $impersonateData = $request->getQueryParams()['tx_impersonate'] ?? [];
        if (isset($impersonateData['timeout'], $impersonateData['user'], $impersonateData['verification'])
            && $impersonateData['timeout'] > time()
Severity: Minor
Found in Classes/Middleware/FrontendUserAuthenticator.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language