mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
Refactor elimination feature and improve backoffice usability
This commit introduces a refactored EliminationFactory for better modularity, updates the elimination preparation process, and adds functionality to view eliminations. Backoffice templates and forms have been reorganized, minor translations were corrected, and additional assets like styles and flashes were included for enhanced user experience.
This commit is contained in:
@@ -52,14 +52,14 @@ class QuizSpreadsheetService
|
||||
}
|
||||
|
||||
/** @throws SpreadsheetDataException */
|
||||
public function xlsxToQuiz(Quiz $quiz, File $file): Quiz
|
||||
public function xlsxToQuiz(Quiz $quiz, File $file): void
|
||||
{
|
||||
$spreadsheet = $this->readSheet($file);
|
||||
$sheet = $spreadsheet->getSheet($spreadsheet->getFirstSheetIndex());
|
||||
|
||||
$answerLines = \array_slice($sheet->toArray(formatData: false), 1);
|
||||
|
||||
return $this->fillQuizFromArray($quiz, $answerLines);
|
||||
$this->fillQuizFromArray($quiz, $answerLines);
|
||||
}
|
||||
|
||||
private function readSheet(File $file): Spreadsheet
|
||||
|
||||
Reference in New Issue
Block a user