fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -15,7 +15,7 @@ class GradebookFinalizationValidator
$errors = [];
foreach ($this->scoreTables() as $table => $meta) {
if (!DB::getSchemaBuilder()->hasTable($table)) {
if (! DB::getSchemaBuilder()->hasTable($table)) {
continue;
}
@@ -16,7 +16,7 @@ class ScoreValueValidator
$max = $this->normalizeMaxPoints($maxPoints, $label);
if (!is_numeric($value)) {
if (! is_numeric($value)) {
throw new InvalidArgumentException("{$label} must be numeric.");
}
@@ -34,6 +34,7 @@ class ScoreValueValidator
if ($max <= 0) {
throw new InvalidArgumentException("{$label} max points must be greater than 0.");
}
return $max;
}