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