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

@@ -42,7 +42,7 @@ public function subscriptions(Request $request): JsonResponse|Response
->orderBy('service_type');
// 테넌트 필터링
if (!$isHeadquarters && !$allTenants) {
if (! $isHeadquarters && ! $allTenants) {
$query->whereHas('member', function ($q) use ($tenantId) {
$q->where('tenant_id', $tenantId);
});
@@ -102,7 +102,7 @@ public function cancelSubscription(int $id): JsonResponse
{
$result = $this->billingService->cancelSubscription($id);
if (!$result) {
if (! $result) {
return response()->json([
'success' => false,
'message' => '구독을 찾을 수 없습니다.',
@@ -121,7 +121,7 @@ public function cancelSubscription(int $id): JsonResponse
public function memberSubscriptions(int $memberId): JsonResponse|Response
{
$member = BarobillMember::with('tenant')->find($memberId);
if (!$member) {
if (! $member) {
return response()->json([
'success' => false,
'message' => '회원사를 찾을 수 없습니다.',
@@ -157,7 +157,7 @@ public function billingList(Request $request): JsonResponse|Response
$billingMonth = $request->input('billing_month', now()->format('Y-m'));
// 테넌트 필터링
$filterTenantId = (!$isHeadquarters && !$allTenants) ? $tenantId : null;
$filterTenantId = (! $isHeadquarters && ! $allTenants) ? $tenantId : null;
$summaries = BarobillMonthlySummary::with(['member.tenant'])
->where('billing_month', $billingMonth)
@@ -202,7 +202,7 @@ public function billingStats(Request $request): JsonResponse|Response
$billingMonth = $request->input('billing_month', now()->format('Y-m'));
$filterTenantId = (!$isHeadquarters && !$allTenants) ? $tenantId : null;
$filterTenantId = (! $isHeadquarters && ! $allTenants) ? $tenantId : null;
$stats = $this->billingService->getMonthlyTotal($billingMonth, $filterTenantId);
if ($request->header('HX-Request')) {
@@ -225,7 +225,7 @@ public function billingStats(Request $request): JsonResponse|Response
public function memberBilling(Request $request, int $memberId): JsonResponse|Response
{
$member = BarobillMember::with('tenant')->find($memberId);
if (!$member) {
if (! $member) {
return response()->json([
'success' => false,
'message' => '회원사를 찾을 수 없습니다.',
@@ -293,7 +293,7 @@ public function yearlyTrend(Request $request): JsonResponse
$year = $request->input('year', now()->year);
$filterTenantId = (!$isHeadquarters && !$allTenants) ? $tenantId : null;
$filterTenantId = (! $isHeadquarters && ! $allTenants) ? $tenantId : null;
$trend = $this->billingService->getYearlyTrend($year, $filterTenantId);
return response()->json([
@@ -313,7 +313,7 @@ public function export(Request $request)
$billingMonth = $request->input('billing_month', now()->format('Y-m'));
$filterTenantId = (!$isHeadquarters && !$allTenants) ? $tenantId : null;
$filterTenantId = (! $isHeadquarters && ! $allTenants) ? $tenantId : null;
$summaries = BarobillMonthlySummary::with(['member.tenant'])
->where('billing_month', $billingMonth)
@@ -336,7 +336,7 @@ public function export(Request $request)
$callback = function () use ($summaries, $total, $isHeadquarters, $allTenants) {
$file = fopen('php://output', 'w');
fprintf($file, chr(0xEF) . chr(0xBB) . chr(0xBF));
fprintf($file, chr(0xEF).chr(0xBB).chr(0xBF));
// 헤더
$headerRow = ['사업자번호', '상호', '계좌조회', '카드내역', '홈텍스', '월정액합계', '세금계산서(건)', '세금계산서(원)', '건별합계', '총합계'];
@@ -411,7 +411,7 @@ public function pricingPolicies(Request $request): JsonResponse|Response
public function updatePricingPolicy(Request $request, int $id): JsonResponse
{
$policy = BarobillPricingPolicy::find($id);
if (!$policy) {
if (! $policy) {
return response()->json([
'success' => false,
'message' => '정책을 찾을 수 없습니다.',
@@ -444,7 +444,7 @@ public function updatePricingPolicy(Request $request, int $id): JsonResponse
public function getPricingPolicy(int $id): JsonResponse
{
$policy = BarobillPricingPolicy::find($id);
if (!$policy) {
if (! $policy) {
return response()->json([
'success' => false,
'message' => '정책을 찾을 수 없습니다.',