| Total Complexity | 10 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 10 | trait MiddlewareTrait |
||
| 11 | { |
||
| 12 | use Helper; |
||
| 13 | |||
| 14 | protected static array $globalMiddlewares = []; |
||
| 15 | |||
| 16 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 17 | { |
||
| 18 | return new Response(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function globalMiddlewares(array $middlewares): RouterInterface |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function middleware($middlewares): RouterInterface |
||
| 39 | } |
||
| 40 | |||
| 41 | private static function existMiddleware(string $name): void |
||
| 45 | } |
||
| 46 | } |
||
| 49 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.