style: Laravel Pint 코드 포맷팅 적용

- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
2025-11-06 17:45:49 +09:00
parent 48e76432ee
commit cc206fdbed
294 changed files with 4476 additions and 2561 deletions

View File

@@ -12,29 +12,29 @@ public function paginate(array $filters): LengthAwarePaginator
{
$tenantId = $this->tenantId();
$page = (int)($filters['page'] ?? 1);
$size = (int)($filters['size'] ?? 20);
$sort = $filters['sort'] ?? 'created_at';
$page = (int) ($filters['page'] ?? 1);
$size = (int) ($filters['size'] ?? 20);
$sort = $filters['sort'] ?? 'created_at';
$order = $filters['order'] ?? 'desc';
$q = AuditLog::query()->where('tenant_id', $tenantId);
if (!empty($filters['target_type'])) {
if (! empty($filters['target_type'])) {
$q->where('target_type', $filters['target_type']);
}
if (!empty($filters['target_id'])) {
$q->where('target_id', (int)$filters['target_id']);
if (! empty($filters['target_id'])) {
$q->where('target_id', (int) $filters['target_id']);
}
if (!empty($filters['action'])) {
if (! empty($filters['action'])) {
$q->where('action', $filters['action']);
}
if (!empty($filters['actor_id'])) {
$q->where('actor_id', (int)$filters['actor_id']);
if (! empty($filters['actor_id'])) {
$q->where('actor_id', (int) $filters['actor_id']);
}
if (!empty($filters['from'])) {
if (! empty($filters['from'])) {
$q->where('created_at', '>=', $filters['from']);
}
if (!empty($filters['to'])) {
if (! empty($filters['to'])) {
$q->where('created_at', '<=', $filters['to']);
}