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

@ -23,15 +23,7 @@ final class TableExtractor
}
$prefix = strtolower(substr($trimmed, 0, 6));
$matched = false;
foreach (self::DML_PREFIXES as $dml) {
if (str_starts_with($prefix, $dml)) {
$matched = true;
break;
}
}
$matched = array_any(self::DML_PREFIXES, fn ($dml): bool => str_starts_with($prefix, (string) $dml));
if (! $matched) {
return [];