style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -20,7 +20,7 @@ public function listByModel(int $modelId)
|
||||
->where('tenant_id', $tenantId)
|
||||
->find($modelId);
|
||||
|
||||
if (!$model) {
|
||||
if (! $model) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public function createDraft(int $modelId, array $extra = []): ModelVersion
|
||||
->where('tenant_id', $tenantId)
|
||||
->find($modelId);
|
||||
|
||||
if (!$model) {
|
||||
if (! $model) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public function createDraft(int $modelId, array $extra = []): ModelVersion
|
||||
$max = ModelVersion::query()
|
||||
->where('model_id', $model->id)
|
||||
->max('version_no');
|
||||
$versionNo = (int)($max ?? 0) + 1;
|
||||
$versionNo = (int) ($max ?? 0) + 1;
|
||||
} else {
|
||||
$exists = ModelVersion::query()
|
||||
->where('model_id', $model->id)
|
||||
@@ -63,14 +63,14 @@ public function createDraft(int $modelId, array $extra = []): ModelVersion
|
||||
}
|
||||
|
||||
return ModelVersion::create([
|
||||
'tenant_id' => $tenantId,
|
||||
'model_id' => $model->id,
|
||||
'version_no' => $versionNo,
|
||||
'status' => 'DRAFT',
|
||||
'is_active' => true,
|
||||
'notes' => $extra['notes'] ?? null,
|
||||
'tenant_id' => $tenantId,
|
||||
'model_id' => $model->id,
|
||||
'version_no' => $versionNo,
|
||||
'status' => 'DRAFT',
|
||||
'is_active' => true,
|
||||
'notes' => $extra['notes'] ?? null,
|
||||
'effective_from' => $extra['effective_from'] ?? null,
|
||||
'effective_to' => $extra['effective_to'] ?? null,
|
||||
'effective_to' => $extra['effective_to'] ?? null,
|
||||
]);
|
||||
});
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public function release(int $versionId): ModelVersion
|
||||
->where('tenant_id', $tenantId)
|
||||
->find($versionId);
|
||||
|
||||
if (!$mv) {
|
||||
if (! $mv) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user