Skip to content

Commit

Permalink
PHP-CS-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
systemasis committed Jan 7, 2025
1 parent 53f805f commit 0df126b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Router/AdminRouteGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0df126b

Please sign in to comment.