| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 16 | final class SetJsonResponseHeaders |
||
| 17 | { |
||
| 18 | public const ACCEPT_HEADER_NAME = 'accept'; |
||
| 19 | public const ACCEPT_HEADER_VALUE = 'application/json'; |
||
| 20 | |||
| 21 | public const CONTENT_TYPE_HEADER_NAME = 'content-type'; |
||
| 22 | public const CONTENT_TYPE_HEADER_VALUE = 'application/json'; |
||
| 23 | |||
| 24 | 2 | public function __invoke(ServerRequestInterface $request, Response $response, callable $next) |
|
| 34 |