mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
chore: style
This commit is contained in:
@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user