fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -9,11 +9,11 @@ class RefundDecisionService
public function updateDecision(int $refundId, string $status, string $reason, int $actorId): array
{
$refund = Refund::query()->find($refundId);
if (! $refund) {
if (!$refund) {
return ['ok' => false, 'message' => 'Refund not found.'];
}
if (! in_array($status, [Refund::STATUS_APPROVED, Refund::STATUS_REJECTED], true)) {
if (!in_array($status, [Refund::STATUS_APPROVED, Refund::STATUS_REJECTED], true)) {
return ['ok' => false, 'message' => 'Invalid refund status.'];
}
@@ -46,7 +46,7 @@ class RefundDecisionService
public function cancel(int $refundId, int $actorId): array
{
$refund = Refund::query()->find($refundId);
if (! $refund) {
if (!$refund) {
return ['ok' => false, 'message' => 'Refund not found.'];
}