style: Pint 포맷팅 적용

This commit is contained in:
김보곤
2026-02-25 11:45:01 +09:00
parent 68b1622a4e
commit 9a7c548246
199 changed files with 1420 additions and 1083 deletions

View File

@@ -26,7 +26,7 @@ public function inquiry(Request $request): View|Response
return response('', 200)->header('HX-Redirect', route('credit.inquiry.index'));
}
$service = new CooconService();
$service = new CooconService;
$hasConfig = $service->hasConfig();
// 검색 조건
@@ -42,10 +42,10 @@ public function inquiry(Request $request): View|Response
// 기간 검색
if ($request->filled('start_date')) {
$query->where('inquired_at', '>=', $request->input('start_date') . ' 00:00:00');
$query->where('inquired_at', '>=', $request->input('start_date').' 00:00:00');
}
if ($request->filled('end_date')) {
$query->where('inquired_at', '<=', $request->input('end_date') . ' 23:59:59');
$query->where('inquired_at', '<=', $request->input('end_date').' 23:59:59');
}
// 이슈 있는 것만
@@ -79,9 +79,9 @@ public function search(Request $request): JsonResponse
$companyKey = preg_replace('/[^0-9]/', '', $request->input('company_key'));
$cooconService = new CooconService();
$cooconService = new CooconService;
if (!$cooconService->hasConfig()) {
if (! $cooconService->hasConfig()) {
return response()->json([
'success' => false,
'error' => '쿠콘 API 설정이 없습니다. 설정을 먼저 등록해주세요.',
@@ -92,7 +92,7 @@ public function search(Request $request): JsonResponse
$apiResult = $cooconService->getAllCreditInfo($companyKey);
// 국세청 사업자등록 상태 조회
$ntsService = new NtsBusinessService();
$ntsService = new NtsBusinessService;
$ntsResult = $ntsService->getBusinessStatus($companyKey);
// DB에 저장 (tenant_id는 세션에서 가져옴)
@@ -354,14 +354,14 @@ public function toggleConfig(int $id): JsonResponse
{
$config = CooconConfig::findOrFail($id);
if (!$config->is_active) {
if (! $config->is_active) {
// 같은 환경에서 활성화된 설정이 이미 있으면 비활성화
CooconConfig::where('environment', $config->environment)
->where('is_active', true)
->update(['is_active' => false]);
}
$config->update(['is_active' => !$config->is_active]);
$config->update(['is_active' => ! $config->is_active]);
return response()->json([
'success' => true,
@@ -380,9 +380,9 @@ public function testConnection(Request $request): JsonResponse
]);
$companyKey = $request->input('company_key');
$service = new CooconService();
$service = new CooconService;
if (!$service->hasConfig()) {
if (! $service->hasConfig()) {
return response()->json([
'success' => false,
'error' => '쿠콘 API 설정이 없습니다.',