Fix Pint formatting
This commit is contained in:
@@ -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.'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user