| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
| 43 | { |
||
| 44 | $body = call_user_func($this->streamFactory); |
||
| 45 | $body->write('403 Access Forbidden, bad CSRF token'); |
||
| 46 | |||
| 47 | return $response->withStatus(403)->withHeader('Content-type', 'text/plain')->withBody($body); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |