Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
+10 -11
View File
@@ -2,7 +2,6 @@
namespace App\Models;
use App\Models\BaseModel;
use Illuminate\Support\Facades\DB;
class Enrollment extends BaseModel
@@ -28,14 +27,14 @@ class Enrollment extends BaseModel
];
protected $casts = [
'student_id' => 'integer',
'student_id' => 'integer',
'class_section_id' => 'integer',
'parent_id' => 'integer',
'is_withdrawn' => 'boolean',
'parent_id' => 'integer',
'is_withdrawn' => 'boolean',
// change to 'datetime' if your columns are DATETIME
'enrollment_date' => 'date',
'withdrawal_date' => 'date',
'enrollment_date' => 'date',
'withdrawal_date' => 'date',
];
/* Optional relationships */
@@ -69,11 +68,11 @@ class Enrollment extends BaseModel
->select('students.*')
->where('enrollments.parent_id', $parentId);
if (!empty($schoolYear)) {
if (! empty($schoolYear)) {
$q->where('enrollments.school_year', $schoolYear);
}
if (!empty($semester)) {
if (! empty($semester)) {
$q->where('enrollments.semester', $semester);
}
@@ -92,10 +91,10 @@ class Enrollment extends BaseModel
->where('enrollments.parent_id', $parentId)
->where(function ($w) {
$w->where('enrollments.enrollment_status', 'enrolled')
->orWhere('enrollments.enrollment_status', 'payment pending');
->orWhere('enrollments.enrollment_status', 'payment pending');
});
if (!empty($schoolYear)) {
if (! empty($schoolYear)) {
$q->where('enrollments.school_year', $schoolYear);
}
@@ -118,4 +117,4 @@ class Enrollment extends BaseModel
return $row?->enrollment_status;
}
}
}