From dfb6a3ce160fd73b33cbf03e1e31342da45f302b Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Fri, 16 Feb 2024 16:24:12 +0100 Subject: [PATCH] MDL-80203 courseformat: Fix some typos and PHPDoc --- course/format/classes/output/local/content.php | 10 +--------- .../classes/output/local/content/cm/controlmenu.php | 6 +++--- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/course/format/classes/output/local/content.php b/course/format/classes/output/local/content.php index ea226af7ea3..8ff29d7a588 100644 --- a/course/format/classes/output/local/content.php +++ b/course/format/classes/output/local/content.php @@ -14,14 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . -/** - * Contains the main course format out class. - * - * @package core_courseformat - * @copyright 2020 Ferran Recio - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - namespace core_courseformat\output\local; use core\output\named_templatable; @@ -39,7 +31,7 @@ use renderable; class content implements named_templatable, renderable { use courseformat_named_templatable; - /** @var core_courseformat\base the course format class */ + /** @var \core_courseformat\base the course format class */ protected $format; /** @var string the section format class */ diff --git a/course/format/classes/output/local/content/cm/controlmenu.php b/course/format/classes/output/local/content/cm/controlmenu.php index ce8f73b4081..f71a7938371 100644 --- a/course/format/classes/output/local/content/cm/controlmenu.php +++ b/course/format/classes/output/local/content/cm/controlmenu.php @@ -65,7 +65,7 @@ class controlmenu implements named_templatable, renderable { * * @param course_format $format the course format * @param section_info $section the section info - * @param cm_info $mod the course module ionfo + * @param cm_info $mod the course module info * @param array $displayoptions optional extra display options */ public function __construct(course_format $format, section_info $section, cm_info $mod, array $displayoptions = []) { @@ -106,11 +106,11 @@ class controlmenu implements named_templatable, renderable { } /** - * Generate the aciton menu element. + * Generate the action menu element. * * This method is public in case some block needs to modify the menu before output it. * @param \renderer_base $output typically, the renderer that's calling this function - * @return aciton_menu the activity action menu + * @return action_menu|null the activity action menu */ public function get_action_menu(\renderer_base $output): ?action_menu {