@@ -34,12 +34,14 @@ |
||
| 34 | 34 | public function findDeclarations(): array |
| 35 | 35 | { |
| 36 | 36 | $routes = iterator_to_array($this->locator->findMethods(RouteAnnotation::class)); |
| 37 | - uasort($routes, static function (AnnotatedMethod $route1, AnnotatedMethod $route2) { |
|
| 37 | + uasort($routes, static function (AnnotatedMethod $route1, AnnotatedMethod $route2) |
|
| 38 | + { |
|
| 38 | 39 | return $route1->getAnnotation()->priority <=> $route2->getAnnotation()->priority; |
| 39 | 40 | }); |
| 40 | 41 | |
| 41 | 42 | $result = []; |
| 42 | - foreach ($routes as $match) { |
|
| 43 | + foreach ($routes as $match) |
|
| 44 | + { |
|
| 43 | 45 | /** @var RouteAnnotation $route */ |
| 44 | 46 | $route = $match->getAnnotation(); |
| 45 | 47 | $routeName = $route->name ?? $this->generateName($route); |