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

@@ -4,12 +4,12 @@
use App\Models\Commons\Category;
use App\Models\Commons\CategoryField;
use App\Models\Design\BomTemplate;
use App\Models\Design\Model;
use App\Models\Design\ModelVersion;
use App\Models\Design\BomTemplate;
use App\Models\Products\Product;
use App\Services\Service;
use App\Services\Calculation\CalculationEngine;
use App\Services\Service;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
@@ -33,11 +33,11 @@ public function getModelSets(array $filters = []): Collection
->where('code_group', 'estimate')
->where('level', '>=', 2); // 루트 카테고리 제외
if (!empty($filters['category_type'])) {
if (! empty($filters['category_type'])) {
$query->where('code', $filters['category_type']);
}
if (!empty($filters['is_active'])) {
if (! empty($filters['is_active'])) {
$query->where('is_active', $filters['is_active']);
}
@@ -92,7 +92,7 @@ public function createModelSet(array $data): array
]);
// 2. 동적 필드 생성
if (!empty($data['fields'])) {
if (! empty($data['fields'])) {
foreach ($data['fields'] as $fieldData) {
CategoryField::create([
'tenant_id' => $this->tenantId(),
@@ -111,7 +111,7 @@ public function createModelSet(array $data): array
}
// 3. 모델 및 BOM 템플릿 생성 (선택사항)
if (!empty($data['create_model'])) {
if (! empty($data['create_model'])) {
$this->createDefaultModel($category, $data['model_data'] ?? []);
}
@@ -278,7 +278,7 @@ public function getEstimateParameters($categoryId, array $filters = []): array
->filter(function ($field) {
return in_array($field->field_key, [
'open_width', 'open_height', 'quantity',
'model_name', 'guide_rail_type', 'shutter_box'
'model_name', 'guide_rail_type', 'shutter_box',
]);
})
->map(function ($field) {
@@ -298,7 +298,7 @@ public function getEstimateParameters($categoryId, array $filters = []): array
->filter(function ($field) {
return in_array($field->field_key, [
'make_width', 'make_height', 'calculated_weight',
'calculated_area', 'motor_bracket_size', 'motor_capacity'
'calculated_area', 'motor_bracket_size', 'motor_capacity',
]);
})
->map(function ($field) {
@@ -333,7 +333,7 @@ public function calculateModelSetBom($categoryId, array $parameters): array
// BOM 템플릿 찾기 (기본 템플릿 사용)
$bomTemplate = $this->findDefaultBomTemplate($categoryId, $parameters);
if (!$bomTemplate) {
if (! $bomTemplate) {
throw new \Exception(__('error.bom_template.not_found'));
}
@@ -355,7 +355,7 @@ protected function getRelatedModels($categoryId): Collection
return Model::with(['versions.bomTemplates'])
->where('tenant_id', $this->tenantId())
->where('code', 'like', $category->code . '%')
->where('code', 'like', $category->code.'%')
->get()
->map(function ($model) {
return [
@@ -400,8 +400,8 @@ protected function createDefaultModel(Category $category, array $modelData): voi
{
$model = Model::create([
'tenant_id' => $this->tenantId(),
'code' => $modelData['code'] ?? $category->code . '_MODEL',
'name' => $modelData['name'] ?? $category->name . ' 기본 모델',
'code' => $modelData['code'] ?? $category->code.'_MODEL',
'name' => $modelData['name'] ?? $category->name.' 기본 모델',
'description' => $modelData['description'] ?? '',
'status' => 'DRAFT',
'created_by' => $this->apiUserId(),
@@ -418,7 +418,7 @@ protected function createDefaultModel(Category $category, array $modelData): voi
BomTemplate::create([
'tenant_id' => $this->tenantId(),
'model_version_id' => $version->id,
'name' => $category->name . ' 기본 BOM',
'name' => $category->name.' 기본 BOM',
'company_type' => $this->getCompanyName($category),
'formula_version' => 'v1.0',
'calculation_schema' => $this->getDefaultCalculationSchema($category),
@@ -485,4 +485,4 @@ protected function getDefaultCalculationSchema(Category $category): array
'formulas' => $this->getCalculationSchema($category->code),
];
}
}
}