Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0175 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 1 | public function getCollected(): array |
|
31 | { |
||
32 | 1 | $routeCollection = $this->container->has(RouteCollectionInterface::class) |
|
33 | 1 | ? $this->container->get(RouteCollectionInterface::class) |
|
34 | : null; |
||
35 | |||
36 | 1 | return $routeCollection === null ? [] : |
|
37 | [ |
||
38 | 1 | 'routesTree' => $routeCollection->getRouteTree(), |
|
39 | 1 | 'routes' => $routeCollection->getRoutes(), |
|
40 | 1 | 'routeTime' => $this->matchTime, |
|
41 | ]; |
||
51 |