add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -11,7 +11,9 @@ use Illuminate\Support\Facades\DB;
class PaymentEventChargesService
{
public function __construct(private ChargeService $chargeService) {}
public function __construct(private ChargeService $chargeService)
{
}
public function listCharges(?string $schoolYear, ?string $semester): array
{
@@ -54,7 +56,7 @@ class PaymentEventChargesService
$count = 0;
if (! empty($studentIds)) {
if (!empty($studentIds)) {
foreach ($studentIds as $studentId) {
$result = $this->chargeService->createEventCharge([
'parent_id' => $parentId,
@@ -71,7 +73,7 @@ class PaymentEventChargesService
$count++;
}
}
} elseif (! empty($payload['student_id'])) {
} elseif (!empty($payload['student_id'])) {
$result = $this->chargeService->createEventCharge([
'parent_id' => $parentId,
'student_id' => (int) $payload['student_id'],