IndyIndyIndy/impersonate

View on GitHub
Classes/Middleware/FrontendUserAuthenticator.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status