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

@ -1289,13 +1289,7 @@ final class Graph
/** @param array<string, array<int, string>> $edges */
private function anyTestUses(array $edges, string $component): bool
{
foreach ($edges as $components) {
if (in_array($component, $components, true)) {
return true;
}
}
return false;
return array_any($edges, fn ($components): bool => in_array($component, $components, true));
}
public function pruneMissingTests(): void