| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 22 | { |
||
| 23 | $ip = $this->getIp($request); |
||
| 24 | if ($this->isForbidden($ip)) { |
||
| 25 | throw new NotAuthenticatedException('Forbidden IP: ' . $ip); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $handler->handle($request); |
||
| 29 | } |
||
| 30 | |||
| 53 |