Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
NoOpMiddleware | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
process | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
1 | <?php declare(strict_types=1); |
2 | |
3 | namespace Taproot\IndieAuth\Middleware; |
4 | |
5 | use Psr\Http\Message\ServerRequestInterface; |
6 | use Psr\Http\Message\ResponseInterface; |
7 | use Psr\Http\Server\MiddlewareInterface; |
8 | use 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 | */ |
16 | class NoOpMiddleware implements MiddlewareInterface { |
17 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { |
18 | return $handler->handle($request); |
19 | } |
20 | } |