@@ -34,12 +34,12 @@ discard block |
||
| 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 | return $route1->getAnnotation()->priority <=> $route2->getAnnotation()->priority; |
| 39 | 39 | }); |
| 40 | 40 | |
| 41 | 41 | $result = []; |
| 42 | - foreach ($routes as $match) { |
|
| 42 | + foreach ($routes as $match){ |
|
| 43 | 43 | /** @var RouteAnnotation $route */ |
| 44 | 44 | $route = $match->getAnnotation(); |
| 45 | 45 | |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | 'controller' => $match->getClass()->getName(), |
| 49 | 49 | 'action' => $match->getMethod()->getName(), |
| 50 | 50 | 'group' => $route->group, |
| 51 | - 'verbs' => (array) $route->methods, |
|
| 51 | + 'verbs' => (array)$route->methods, |
|
| 52 | 52 | 'defaults' => $route->defaults, |
| 53 | - 'middleware' => (array) $route->middleware, |
|
| 53 | + 'middleware' => (array)$route->middleware, |
|
| 54 | 54 | ]; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -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 | |