| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 60 | public function findAndDestroyUserRoutes(IRouter $router) |
||
| 61 | { |
||
| 62 | $keys = []; |
||
| 63 | $return = []; |
||
| 64 | |||
| 65 | foreach ($router as $key => $route) { |
||
|
|
|||
| 66 | $return[] = $route; |
||
| 67 | $keys[] = $key; |
||
| 68 | } |
||
| 69 | |||
| 70 | foreach (array_reverse($keys) as $key) { |
||
| 71 | unset($router[$key]); |
||
| 72 | } |
||
| 73 | |||
| 74 | return $return; |
||
| 75 | } |
||
| 76 | |||
| 78 |