refactor: 🎨 Formattazione del codice

This commit is contained in:
Maicol Battistini 2023-07-18 23:19:58 +02:00
parent 717acebfc9
commit 504a5521d0
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ class CheckConfigurationMiddleware
public function handle(Request $request, Closure $next): Response|SymfonyResponse
{
$checks = [
'database' => static fn (): bool => !empty(DB::connection()->getDatabaseName()) && DB::connection()->getPdo() instanceof PDO,
'admin_user' => static fn (): bool => !empty(User::exists()),
'database' => static fn (): bool => ! empty(DB::connection()->getDatabaseName()) && DB::connection()->getPdo() instanceof PDO,
'admin_user' => static fn (): bool => ! empty(User::exists()),
];
foreach ($checks as $name => $check) {
@ -34,7 +34,7 @@ class CheckConfigurationMiddleware
);
}
if (!$check) {
if (! $check) {
$route = $request->route();
if ($route && str_starts_with($route->getName(), 'setup.')) {
return $next($request);