Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 73 | public static function configure(callable $fn): void |
|
15 | { |
||
16 | 73 | $routerConfigurator = new Routes(); |
|
17 | 73 | $mappingInterfaces = new MappingInterfaces(); |
|
18 | |||
19 | 73 | $fn($routerConfigurator, $mappingInterfaces); |
|
20 | |||
21 | 72 | $route = self::findRoute($routerConfigurator); |
|
22 | |||
23 | 72 | if ($route) { |
|
24 | 65 | echo $route->run($mappingInterfaces); |
|
25 | } |
||
39 |