diff --git a/mod/quiz/classes/structure.php b/mod/quiz/classes/structure.php index 7d2aaabdd5241..168cce519174e 100644 --- a/mod/quiz/classes/structure.php +++ b/mod/quiz/classes/structure.php @@ -1714,7 +1714,7 @@ public function add_random_questions(int $addonpage, int $number, array $filterc * @param int $slotid id of slot. * @return string that can be used to display the random slot. */ - public function describe_random_slot($slotid) { + public function describe_random_slot(int $slotid): string { $this->ensure_random_slot_info_loaded(); if (!isset($this->randomslotcategories[$slotid])) { @@ -1738,7 +1738,7 @@ public function describe_random_slot($slotid) { /** * Ensure that {@see load_random_slot_info()} has been called, so the data is available. */ - protected function ensure_random_slot_info_loaded() { + protected function ensure_random_slot_info_loaded(): void { if ($this->randomslotcategories == null) { $this->load_random_slot_info(); } @@ -1747,7 +1747,7 @@ protected function ensure_random_slot_info_loaded() { /** * Load information about the question categories and tags for all random slots, */ - protected function load_random_slot_info() { + protected function load_random_slot_info(): void { global $DB; // Find the random slots. diff --git a/mod/quiz/lang/en/quiz.php b/mod/quiz/lang/en/quiz.php index fb1aee95300b8..6772987adef5a 100644 --- a/mod/quiz/lang/en/quiz.php +++ b/mod/quiz/lang/en/quiz.php @@ -850,7 +850,8 @@ $string['randomnosubcat'] = 'Questions from this category only, not its subcategories.'; $string['randomqname'] = 'Random question based on filter condition'; $string['randomqnamecat'] = 'Random ({$a->category}) based on filter condition'; -$string['randomqnamecattags'] = 'Random ({$a->category}) based on filter condition with tags: {$a->tags}';$string['randomquestion'] = 'Random question'; +$string['randomqnamecattags'] = 'Random ({$a->category}) based on filter condition with tags: {$a->tags}'; +$string['randomquestion'] = 'Random question'; $string['randomqnametags'] = 'Random question based on filter condition with tags: {$a}'; $string['randomquestion'] = 'Random question'; $string['randomquestion_help'] = 'A random question is a way of inserting a randomly-chosen question from a specified category or by a specified tag into an activity.';