diff --git a/src/Router/AdminRouteGenerator.php b/src/Router/AdminRouteGenerator.php index a9c2ee523b..c62b72a502 100644 --- a/src/Router/AdminRouteGenerator.php +++ b/src/Router/AdminRouteGenerator.php @@ -220,11 +220,11 @@ private function getDashboardsRouteConfig(): array $reflectionClass = new \ReflectionClass($dashboardController); $indexMethod = $reflectionClass->getMethod('index'); - if(class_exists(\Symfony\Component\Routing\Attribute\Route::class)) { + if (class_exists(\Symfony\Component\Routing\Attribute\Route::class)) { $attributes = $indexMethod->getAttributes(\Symfony\Component\Routing\Attribute\Route::class); } - if(!isset($attributes) || [] === $attributes) { + if (!isset($attributes) || [] === $attributes) { $attributes = $indexMethod->getAttributes(\Symfony\Component\Routing\Annotation\Route::class); }