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
@@ -10,9 +10,7 @@ use Illuminate\Support\Facades\DB;
class ParentEnrollmentService
{
public function __construct(private ParentConfigService $configService)
{
}
public function __construct(private ParentConfigService $configService) {}
public function overview(int $parentId, ?string $schoolYear = null): array
{
@@ -26,11 +24,11 @@ class ParentEnrollmentService
->get()
->map(function ($student) use ($selectedYear) {
$classSections = StudentClass::getClassSectionsByStudentId($student->id, $selectedYear, true);
$student->class_section = !empty($classSections)
$student->class_section = ! empty($classSections)
? implode(', ', $classSections)
: 'Class not Assigned';
$isArabicClass = !empty($classSections) && array_reduce(
$isArabicClass = ! empty($classSections) && array_reduce(
$classSections,
static fn ($carry, $name) => $carry || (is_string($name) && stripos($name, 'arabic') === 0),
false
@@ -181,7 +179,7 @@ class ParentEnrollmentService
->where('is_withdrawn', 0)
->first();
if (!$enrollment) {
if (! $enrollment) {
continue;
}
@@ -206,7 +204,7 @@ class ParentEnrollmentService
if ($refund) {
$refund->update([
'reason' => 'Withdrawal under review for student ID ' . $studentId,
'reason' => 'Withdrawal under review for student ID '.$studentId,
'note' => null,
'updated_by' => $parentId,
]);
@@ -217,7 +215,7 @@ class ParentEnrollmentService
'requested_at' => now(),
'school_year' => $schoolYear,
'status' => Refund::STATUS_PENDING,
'reason' => 'Withdrawal under review for student ID ' . $studentId,
'reason' => 'Withdrawal under review for student ID '.$studentId,
'request' => 'new',
'semester' => $semester,
'refund_paid_amount' => 0.0,