fix enrollment logic, add financial aid, fix class distribution
Tests / PHPUnit (push) Failing after 1m6s
Tests / PHPUnit (push) Failing after 1m6s
This commit is contained in:
@@ -37,4 +37,17 @@ final class GradeLevelParser
|
||||
|
||||
return 999;
|
||||
}
|
||||
|
||||
public static function isYouth($grade): bool
|
||||
{
|
||||
if (! is_string($grade) && ! is_numeric($grade)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$value = strtoupper(trim((string) $grade));
|
||||
$value = preg_replace('/\s+/', ' ', $value) ?? $value;
|
||||
$value = str_replace(['.', '_', '-'], ['', '', ' '], $value);
|
||||
|
||||
return (bool) preg_match('/^Y(?:OUTH)?\s*\d*$/', $value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user