| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | 10 | public function __invoke() |
|
| 12 | { |
||
| 13 | 10 | $routeParser = new Std(); |
|
| 14 | 10 | $collector = new RouteCollector( |
|
| 15 | 10 | $routeParser, |
|
| 16 | 10 | new GroupCountBased() |
|
| 17 | ); |
||
| 18 | |||
| 19 | 10 | return new FastRoute( |
|
| 20 | 10 | $collector, |
|
| 21 | $routeParser, |
||
| 22 | static function ($data) { |
||
| 23 | 1 | return new \FastRoute\Dispatcher\GroupCountBased($data); |
|
| 24 | 10 | } |
|
| 28 |