mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-07 16:10:15 +02:00
Cleanup
This commit is contained in:
+1
-4
@@ -110,9 +110,7 @@ class Quiz
|
||||
return $errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param list<Candidate> $activeCandidates
|
||||
*/
|
||||
/** @param list<Candidate> $activeCandidates */
|
||||
private function getQuestionError(Question $question, bool $hasCandidateRelations, array $activeCandidates): ?string
|
||||
{
|
||||
if (0 === \count($question->answers)) {
|
||||
@@ -131,7 +129,6 @@ class Quiz
|
||||
|
||||
// Only validate candidate-answer relations if at least one exists in the quiz
|
||||
if ($hasCandidateRelations) {
|
||||
|
||||
$candidateCounts = [];
|
||||
|
||||
// Count how many times each candidate appears in answers
|
||||
|
||||
Reference in New Issue
Block a user