| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 73 | private function getExposedRoutes() : array | ||
| 74 |     { | ||
| 75 | 1 | $routes = []; | |
| 76 | 1 | $routeCollection = $this->router->getRouteCollection(); | |
| 77 | |||
| 78 | 1 |         foreach ($routeCollection as $name => $route) { | |
| 79 | 1 |             if ($route->hasOption('sitemap') === true | |
| 80 | 1 |                 && $route->getOption('sitemap') === true | |
| 81 |             ) { | ||
| 82 | 1 | $routes[] = $name; | |
| 83 | } | ||
| 84 | } | ||
| 85 | |||
| 86 | 1 | return $routes; | |
| 87 | } | ||
| 89 |