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

@@ -1,4 +1,5 @@
<?php
namespace App\Services;
use Illuminate\Auth\AuthenticationException;
@@ -10,6 +11,7 @@ abstract class Service
protected function tenantIdOrNull(): ?int
{
$id = app('tenant_id');
return $id ? (int) $id : null;
}
@@ -17,10 +19,11 @@ protected function tenantIdOrNull(): ?int
protected function tenantId(): int
{
$id = $this->tenantIdOrNull();
if (!$id) {
if (! $id) {
// ko/error.php 의 'tenant_id' 키 사용
throw new BadRequestHttpException(__('error.tenant_id'));
}
return $id;
}
@@ -28,10 +31,11 @@ protected function tenantId(): int
protected function apiUserId(): int
{
$uid = app('api_user');
if (!$uid) {
if (! $uid) {
// Handler에서 AuthenticationException은 401로 처리 중
throw new AuthenticationException(__('auth.unauthenticated'));
}
return (int) $uid;
}
}