style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -45,6 +45,7 @@ public function create(array $data): DesignModel
|
||||
|
||||
return DB::transaction(function () use ($tenantId, $data) {
|
||||
$payload = array_merge($data, ['tenant_id' => $tenantId]);
|
||||
|
||||
return DesignModel::create($payload);
|
||||
});
|
||||
}
|
||||
@@ -55,10 +56,10 @@ public function find(int $id): DesignModel
|
||||
$tenantId = $this->tenantId();
|
||||
$model = DesignModel::query()
|
||||
->where('tenant_id', $tenantId)
|
||||
->with(['versions' => fn($q) => $q->orderBy('version_no')])
|
||||
->with(['versions' => fn ($q) => $q->orderBy('version_no')])
|
||||
->find($id);
|
||||
|
||||
if (!$model) {
|
||||
if (! $model) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
@@ -74,7 +75,7 @@ public function update(int $id, array $data): DesignModel
|
||||
->where('tenant_id', $tenantId)
|
||||
->find($id);
|
||||
|
||||
if (!$model) {
|
||||
if (! $model) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
@@ -103,7 +104,7 @@ public function delete(int $id): void
|
||||
->where('tenant_id', $tenantId)
|
||||
->find($id);
|
||||
|
||||
if (!$model) {
|
||||
if (! $model) {
|
||||
throw new NotFoundHttpException(__('error.not_found'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user