| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
| 43 | { |
||
| 44 | if (in_array($request->getMethod(), $this->methods)) { |
||
| 45 | $request = $request->withAttribute(self::$isValidAttribute, true); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $next($request, $response); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |