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

@@ -17,6 +17,7 @@
* schema="MaterialAttribute",
* type="object",
* description="규격 정보 한 항목",
*
* @OA\Property(property="label", type="string", example="두께"),
* @OA\Property(property="value", type="string", example="10"),
* @OA\Property(property="unit", type="string", example="T")
@@ -27,6 +28,7 @@
* type="object",
* description="자재 상세",
* required={"id","tenant_id","name","item_name","unit"},
*
* @OA\Property(property="id", type="integer", example=101),
* @OA\Property(property="tenant_id", type="integer", example=1),
* @OA\Property(property="category_id", type="integer", nullable=true, example=3),
@@ -42,8 +44,10 @@
* property="attributes",
* type="array",
* nullable=true,
*
* @OA\Items(ref="#/components/schemas/MaterialAttribute")
* ),
*
* @OA\Property(
* property="options",
* type="object",
@@ -61,6 +65,7 @@
* type="object",
* description="자재 요약",
* required={"id","name","item_name","unit"},
*
* @OA\Property(property="id", type="integer", example=101),
* @OA\Property(property="category_id", type="integer", nullable=true, example=3),
* @OA\Property(property="name", type="string", example="철판"),
@@ -71,12 +76,14 @@
* @OA\Schema(
* schema="MaterialList",
* type="array",
*
* @OA\Items(ref="#/components/schemas/MaterialBrief")
* )
*
* @OA\Schema(
* schema="MaterialIndexParams",
* type="object",
*
* @OA\Property(property="q", type="string", nullable=true, example="알루미늄"),
* @OA\Property(property="category", type="integer", nullable=true, example=3),
* @OA\Property(property="page", type="integer", nullable=true, example=1),
@@ -87,6 +94,7 @@
* schema="MaterialCreateRequest",
* type="object",
* required={"name","unit"},
*
* @OA\Property(property="category_id", type="integer", nullable=true, example=3),
* @OA\Property(property="name", type="string", example="철판"),
* @OA\Property(property="unit", type="string", example="EA"),
@@ -97,8 +105,10 @@
* property="attributes",
* type="array",
* nullable=true,
*
* @OA\Items(ref="#/components/schemas/MaterialAttribute")
* ),
*
* @OA\Property(
* property="options",
* type="object",
@@ -112,6 +122,7 @@
* @OA\Schema(
* schema="MaterialUpdateRequest",
* type="object",
*
* @OA\Property(property="category_id", type="integer", nullable=true, example=3),
* @OA\Property(property="name", type="string", nullable=true, example="철판(개선)"),
* @OA\Property(property="unit", type="string", nullable=true, example="KG"),
@@ -122,8 +133,10 @@
* property="attributes",
* type="array",
* nullable=true,
*
* @OA\Items(ref="#/components/schemas/MaterialAttribute")
* ),
*
* @OA\Property(
* property="options",
* type="object",
@@ -134,7 +147,6 @@
* @OA\Property(property="specification", type="string", nullable=true, example="두께 12T, 길이 180CM")
* )
*/
class MaterialApi
{
/**
@@ -144,18 +156,23 @@ class MaterialApi
* description="자재 목록을 페이징으로 반환합니다. (q로 코드/이름/태그 검색, category로 분류 필터)",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\Parameter(name="q", in="query", required=false, @OA\Schema(type="string"), description="검색어(이름/코드/태그 등)"),
* @OA\Parameter(name="category", in="query", required=false, @OA\Schema(type="integer"), description="카테고리 ID"),
* @OA\Parameter(name="page", in="query", required=false, @OA\Schema(type="integer", example=1)),
* @OA\Parameter(name="per_page", in="query", required=false, @OA\Schema(type="integer", example=20)),
*
* @OA\Response(
* response=200, description="자재 목록 조회 성공",
*
* @OA\JsonContent(
* allOf={
*
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
* @OA\Schema(@OA\Property(
* property="data",
* type="object",
*
* @OA\Property(property="current_page", type="integer", example=1),
* @OA\Property(property="per_page", type="integer", example=20),
* @OA\Property(property="total", type="integer", example=2),
@@ -175,16 +192,21 @@ public function index() {}
* description="자재를 등록합니다. item_name/specification은 name+attributes를 기반으로 서버에서 자동 생성됩니다.",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/MaterialCreateRequest")),
*
* @OA\Response(
* response=200, description="자재 등록 성공",
*
* @OA\JsonContent(
* allOf={
*
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/Material"))
* }
* )
* ),
*
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
* )
*/
@@ -196,16 +218,21 @@ public function store() {}
* summary="자재 단건 조회",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=101)),
*
* @OA\Response(
* response=200, description="자재 단건 조회 성공",
*
* @OA\JsonContent(
* allOf={
*
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/Material"))
* }
* )
* ),
*
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
* )
*/
@@ -218,17 +245,23 @@ public function show() {}
* description="자재를 수정합니다. name/attributes 변경 시 item_name/specification이 서버에서 재계산됩니다.",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=101)),
*
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/MaterialUpdateRequest")),
*
* @OA\Response(
* response=200, description="자재 수정 성공",
*
* @OA\JsonContent(
* allOf={
*
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/Material"))
* }
* )
* ),
*
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
* )
@@ -242,17 +275,23 @@ public function updatePut() {}
* description="자재의 일부 필드를 수정합니다. name/attributes 변경 시 item_name/specification이 서버에서 재계산됩니다.",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=101)),
*
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/MaterialUpdateRequest")),
*
* @OA\Response(
* response=200, description="자재 수정 성공",
*
* @OA\JsonContent(
* allOf={
*
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/Material"))
* }
* )
* ),
*
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
* )
@@ -266,7 +305,9 @@ public function updatePatch() {}
* description="자재를 소프트 삭제합니다.",
* tags={"Material"},
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
*
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=101)),
*
* @OA\Response(response=200, description="자재 삭제 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
* )