| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function match(array $globals, array $server) |
||
| 30 | { |
||
| 31 | foreach ($this->routers as $route) { |
||
| 32 | try { |
||
| 33 | $match = $route->match($globals, $server); |
||
| 34 | } catch (Throwable $e) { |
||
| 35 | $e = new RouterException($e->getMessage(), (int) $e->getCode(), $e->getPrevious()); |
||
| 36 | /** @noinspection ForgottenDebugOutputInspection */ |
||
| 37 | error_log((string) $e); |
||
| 38 | |||
| 39 | return $this->routeNotFound(); |
||
| 40 | } |
||
| 41 | |||
| 42 | if (! $match instanceof NullMatch) { |
||
| 43 | return $match; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return $this->routeNotFound(); |
||
| 48 | } |
||
| 70 |