chore: style

This commit is contained in:
nuno maduro
2026-05-04 07:38:50 -03:00
parent f859bb179d
commit b828ddcec7
7 changed files with 10 additions and 56 deletions

View File

@ -386,12 +386,6 @@ final class JsModuleGraph
private static function hasViteConfig(string $projectRoot): bool
{
foreach (self::VITE_CONFIG_NAMES as $name) {
if (is_file($projectRoot.DIRECTORY_SEPARATOR.$name)) {
return true;
}
}
return false;
return array_any(self::VITE_CONFIG_NAMES, fn ($name): bool => is_file($projectRoot.DIRECTORY_SEPARATOR.$name));
}
}