Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
NoOpMiddleware
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 process
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
1<?php declare(strict_types=1);
2
3namespace Taproot\IndieAuth\Middleware;
4
5use Psr\Http\Message\ServerRequestInterface;
6use Psr\Http\Message\ResponseInterface;
7use Psr\Http\Server\MiddlewareInterface;
8use Psr\Http\Server\RequestHandlerInterface;
9
10/**
11 * No-Op Middleware
12 * 
13 * A PSR-15 Middleware which does nothing, simply passing `$request` onto `$handler` and returning
14 * the response.
15 */
16class NoOpMiddleware implements MiddlewareInterface {
17    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface {
18        return $handler->handle($request);
19    }
20}