style: Pint 포맷팅 적용
This commit is contained in:
@@ -223,11 +223,11 @@ public function getSessions(array $filters = [])
|
||||
->orderByDesc('interview_date')
|
||||
->orderByDesc('id');
|
||||
|
||||
if (!empty($filters['status'])) {
|
||||
if (! empty($filters['status'])) {
|
||||
$query->where('status', $filters['status']);
|
||||
}
|
||||
|
||||
if (!empty($filters['category_id'])) {
|
||||
if (! empty($filters['category_id'])) {
|
||||
$query->where('interview_category_id', $filters['category_id']);
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ public function startSession(array $data): InterviewSession
|
||||
->orderBy('sort_order')
|
||||
->get();
|
||||
|
||||
$totalQuestions = $templates->sum(fn($t) => $t->questions->count());
|
||||
$totalQuestions = $templates->sum(fn ($t) => $t->questions->count());
|
||||
|
||||
// 세션 생성
|
||||
$session = InterviewSession::create([
|
||||
@@ -302,7 +302,7 @@ public function toggleAnswer(array $data): InterviewAnswer
|
||||
->firstOrFail();
|
||||
|
||||
$answer->update([
|
||||
'is_checked' => !$answer->is_checked,
|
||||
'is_checked' => ! $answer->is_checked,
|
||||
'answer_text' => $data['answer_text'] ?? $answer->answer_text,
|
||||
'memo' => $data['memo'] ?? $answer->memo,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user