fix gitlab tests
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user