Fix Pint formatting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user