Completed
Push — master ( d4fad0...05c834 )
by Kirill
26s queued 18s
created
src/AnnotatedRoutes/src/RouteLocator.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
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
             $routeName = $route->name ?? $this->generateName($route);
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
                 'controller' => $match->getClass()->getName(),
50 50
                 'action'     => $match->getMethod()->getName(),
51 51
                 'group'      => $route->group,
52
-                'verbs'      => (array) $route->methods,
52
+                'verbs'      => (array)$route->methods,
53 53
                 'defaults'   => $route->defaults,
54
-                'middleware' => (array) $route->middleware,
54
+                'middleware' => (array)$route->middleware,
55 55
             ];
56 56
         }
57 57
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,12 +34,14 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.