Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
+6 -6
View File
@@ -3,7 +3,6 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StudentAllergy extends BaseModel
@@ -47,6 +46,7 @@ class StudentAllergy extends BaseModel
public function scopeForStudents(Builder $q, array $studentIds): Builder
{
$ids = array_values(array_unique(array_filter(array_map('intval', $studentIds))));
return empty($ids) ? $q->whereRaw('1=0') : $q->whereIn('student_id', $ids);
}
@@ -103,7 +103,7 @@ class StudentAllergy extends BaseModel
return [
'student_id' => [$req, 'integer', 'min:1', 'exists:students,id'],
'allergy' => [$req, 'string', 'max:100'],
'allergy' => [$req, 'string', 'max:100'],
];
}
@@ -111,9 +111,9 @@ class StudentAllergy extends BaseModel
{
return [
'student_id.required' => 'Student ID is required.',
'student_id.min' => 'Invalid Student ID.',
'allergy.required' => 'Allergy is required.',
'allergy.max' => 'Allergy must be 100 characters or fewer.',
'student_id.min' => 'Invalid Student ID.',
'allergy.required' => 'Allergy is required.',
'allergy.max' => 'Allergy must be 100 characters or fewer.',
];
}
}
}