| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function benchFastRouteMatch() |
||
| 33 | { |
||
| 34 | $map = new RouteCollector( |
||
| 35 | new RouteParser(), |
||
| 36 | new DataGenerator() |
||
| 37 | ); |
||
| 38 | |||
| 39 | for ($i = 1; $i <= $this->maxRoutes; $i++) |
||
| 40 | { |
||
| 41 | $path = \sprintf('/route/%d', $i); |
||
| 42 | $action = function() {}; |
||
| 43 | |||
| 44 | $map->get($path, $action); |
||
| 45 | } |
||
| 46 | |||
| 47 | $dispatcher = new Dispatcher($map->getData()); |
||
| 48 | |||
| 49 | $dispatcher->dispatch( |
||
| 50 | $this->request->getMethod(), |
||
| 51 | $this->request->getUri()->getPath() |
||
| 52 | ); |
||
| 55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths