Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
@@ -9,9 +9,7 @@ use RuntimeException;
class ReimbursementBatchAssignmentService
{
public function __construct(private ReimbursementLookupService $lookupService)
{
}
public function __construct(private ReimbursementLookupService $lookupService) {}
public function updateAssignment(
int $expenseId,
@@ -35,7 +33,7 @@ class ReimbursementBatchAssignmentService
if ($batchId <= 0) {
if ($activeItem) {
$activeItem->update(['unassigned_at' => $now]);
if (!$reimbursementId && !empty($activeItem->reimbursement_id)) {
if (! $reimbursementId && ! empty($activeItem->reimbursement_id)) {
$reimbursementId = (int) $activeItem->reimbursement_id;
}
}
@@ -48,7 +46,7 @@ class ReimbursementBatchAssignmentService
}
$batch = ReimbursementBatch::query()->find($batchId);
if (!$batch || strtolower((string) $batch->status) !== ReimbursementBatch::STATUS_OPEN) {
if (! $batch || strtolower((string) $batch->status) !== ReimbursementBatch::STATUS_OPEN) {
throw new RuntimeException('Batch not found or already closed.');
}
@@ -63,7 +61,7 @@ class ReimbursementBatchAssignmentService
}
if ($activeSameBatch) {
if (!$reimbursementId) {
if (! $reimbursementId) {
$reimbursementId = $activeItem->reimbursement_id
? (int) $activeItem->reimbursement_id
: $this->lookupService->findReimbursementIdForExpense($expenseId);
@@ -85,12 +83,12 @@ class ReimbursementBatchAssignmentService
if ($activeItem) {
$activeItem->update(['unassigned_at' => $now]);
if (!$reimbursementId && !empty($activeItem->reimbursement_id)) {
if (! $reimbursementId && ! empty($activeItem->reimbursement_id)) {
$reimbursementId = (int) $activeItem->reimbursement_id;
}
}
if (!$reimbursementId) {
if (! $reimbursementId) {
$reimbursementId = $this->lookupService->findReimbursementIdForExpense($expenseId);
}
@@ -105,7 +103,7 @@ class ReimbursementBatchAssignmentService
'semester' => $semester,
]);
} catch (\Throwable $e) {
Log::error('Failed to assign expense to batch: ' . $e->getMessage(), [
Log::error('Failed to assign expense to batch: '.$e->getMessage(), [
'expense_id' => $expenseId,
'batch_id' => $batchId,
]);