@@ -50,14 +50,14 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | private function getAllRoutes(bool $usingDingoRouter, array $versions = []) |
| 52 | 52 | { |
| 53 | - if (! $usingDingoRouter) { |
|
| 53 | + if (!$usingDingoRouter) { |
|
| 54 | 54 | return RouteFacade::getRoutes(); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $allRouteCollections = app(\Dingo\Api\Routing\Router::class)->getRoutes(); |
| 58 | 58 | |
| 59 | 59 | return collect($allRouteCollections) |
| 60 | - ->flatMap(function (RouteCollection $collection) { |
|
| 60 | + ->flatMap(function(RouteCollection $collection) { |
|
| 61 | 61 | return $collection->getRoutes(); |
| 62 | 62 | })->toArray(); |
| 63 | 63 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | private function shouldIncludeRoute(Route $route, array $routeRule, array $mustIncludes, bool $usingDingoRouter) |
| 66 | 66 | { |
| 67 | 67 | $matchesVersion = $usingDingoRouter |
| 68 | - ? ! empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
| 68 | + ? !empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
| 69 | 69 | : true; |
| 70 | 70 | |
| 71 | 71 | return str_is($mustIncludes, $route->getName()) |