| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 34 | public function load($resource, ?string $type = null): RouteCollection  | 
            ||
| 35 |     { | 
            ||
| 36 |         if (true === $this->isLoaded) { | 
            ||
| 37 |             throw new RuntimeException('Do not add the "audit" loader twice'); | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | $routeCollection = new RouteCollection();  | 
            ||
| 41 |         if (true === $this->configuration['viewer']) { | 
            ||
| 42 | $routeCollection = $this->annotatedRouteControllerLoader->load(ViewerController::class);  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | $this->isLoaded = true;  | 
            ||
| 46 | |||
| 47 | return $routeCollection;  | 
            ||
| 48 | }  | 
            ||
| 55 |