| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 1 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
|
| 31 | { |
||
| 32 | 1 | setcookie("csrf_token_name", $request->getAttribute("{$this->prefix}_name")); |
|
| 33 | 1 | setcookie("csrf_token_value", $request->getAttribute("{$this->prefix}_value")); |
|
| 34 | |||
| 35 | 1 | return $next($request, $response); |
|
| 36 | } |
||
| 37 | |||
| 39 |