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

@@ -14,9 +14,9 @@ public function index(array $params)
{
$tenantId = $this->tenantId();
$page = (int)($params['page'] ?? 1);
$size = (int)($params['size'] ?? 20);
$q = trim((string)($params['q'] ?? ''));
$page = (int) ($params['page'] ?? 1);
$size = (int) ($params['size'] ?? 20);
$q = trim((string) ($params['q'] ?? ''));
$onlyActive = $params['only_active'] ?? null;
$query = Client::query()->where('tenant_id', $tenantId);
@@ -43,9 +43,10 @@ public function show(int $id)
{
$tenantId = $this->tenantId();
$client = Client::where('tenant_id', $tenantId)->find($id);
if (!$client) {
if (! $client) {
throw new NotFoundHttpException(__('error.not_found'));
}
return $client;
}
@@ -92,7 +93,7 @@ public function update(int $id, array $params)
$uid = $this->apiUserId();
$client = Client::where('tenant_id', $tenantId)->find($id);
if (!$client) {
if (! $client) {
throw new NotFoundHttpException(__('error.not_found'));
}
@@ -123,6 +124,7 @@ public function update(int $id, array $params)
}
$client->update($payload);
return $client->refresh();
}
@@ -132,7 +134,7 @@ public function destroy(int $id)
$tenantId = $this->tenantId();
$client = Client::where('tenant_id', $tenantId)->find($id);
if (!$client) {
if (! $client) {
throw new NotFoundHttpException(__('error.not_found'));
}
@@ -142,6 +144,7 @@ public function destroy(int $id)
}
$client->delete();
return 'success';
}
@@ -150,12 +153,13 @@ public function toggle(int $id)
{
$tenantId = $this->tenantId();
$client = Client::where('tenant_id', $tenantId)->find($id);
if (!$client) {
if (! $client) {
throw new NotFoundHttpException(__('error.not_found'));
}
$client->is_active = $client->is_active === 'Y' ? 'N' : 'Y';
$client->save();
return $client->refresh();
}
}