fix gitlab tests
This commit is contained in:
@@ -14,11 +14,11 @@ class RefundPayoutService
|
||||
public function recordPayment(int $refundId, array $payload, int $actorId): array
|
||||
{
|
||||
$refund = Refund::query()->find($refundId);
|
||||
if (! $refund) {
|
||||
if (!$refund) {
|
||||
return ['ok' => false, 'message' => 'Refund not found.'];
|
||||
}
|
||||
|
||||
if (! in_array($refund->status, [Refund::STATUS_APPROVED, Refund::STATUS_PARTIAL], true)) {
|
||||
if (!in_array($refund->status, [Refund::STATUS_APPROVED, Refund::STATUS_PARTIAL], true)) {
|
||||
return ['ok' => false, 'message' => 'Refund must be Approved or Partial to pay.'];
|
||||
}
|
||||
|
||||
@@ -126,7 +126,6 @@ class RefundPayoutService
|
||||
return $latest ? (int) $latest->id : null;
|
||||
} catch (\Throwable $e) {
|
||||
Log::warning('Refund invoice assignment failed.', ['error' => $e->getMessage()]);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user