Classes/Middleware/FrontendUserAuthenticator.php
Method process
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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()