add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ class SchoolIdService
public function assignSchoolIdToUser(int $userId): ?string
{
$user = User::query()->find($userId);
if (! $user) {
if (!$user) {
return null;
}
@@ -36,7 +36,7 @@ class SchoolIdService
->where('school_id', 'like', "STU{$year}%")
->first();
if (! empty($row?->max_id)) {
if (!empty($row?->max_id)) {
$numericPart = substr((string) $row->max_id, 5);
$maxId = (int) $numericPart;
}
@@ -57,7 +57,7 @@ class SchoolIdService
->where('school_id', 'like', "{$year}%")
->first();
if (! empty($row?->max_id)) {
if (!empty($row?->max_id)) {
$numericPart = substr((string) $row->max_id, 2);
$maxId = max($maxId, (int) $numericPart);
}