2525
2626namespace format_multitopic \output \courseformat \content ;
2727
28+ use core \output \renderer_base ;
2829use core_courseformat \output \local \content \section as section_base ;
2930use core_courseformat \base as course_format ;
3031
@@ -57,10 +58,10 @@ public function __construct(course_format $format, \section_info $section) {
5758 /**
5859 * Export this data so it can be used as the context for a mustache template.
5960 *
60- * @param \ renderer_base $output typically, the renderer that's calling this function
61+ * @param renderer_base $output typically, the renderer that's calling this function
6162 * @return \stdClass data context for a mustache template
6263 */
63- public function export_for_template (\ renderer_base $ output ): \stdClass {
64+ public function export_for_template (renderer_base $ output ): \stdClass {
6465 $ format = $ this ->format ;
6566
6667 $ data = parent ::export_for_template ($ output );
@@ -84,10 +85,10 @@ public function export_for_template(\renderer_base $output): \stdClass {
8485 * Add the section header to the data structure.
8586 *
8687 * @param \stdClass $data the current cm data reference
87- * @param \ renderer_base $output typically, the renderer that's calling this function
88+ * @param renderer_base $output typically, the renderer that's calling this function
8889 * @return bool if the cm has name data
8990 */
90- protected function add_header_data (\stdClass &$ data , \ renderer_base $ output ): bool {
91+ protected function add_header_data (\stdClass &$ data , renderer_base $ output ): bool {
9192 $ result = parent ::add_header_data ($ data , $ output );
9293 if (!$ result || !empty ($ this ->section ->component )) {
9394 return $ result ;
@@ -104,10 +105,10 @@ protected function add_header_data(\stdClass &$data, \renderer_base $output): bo
104105 * Add the section cm list to the data structure.
105106 *
106107 * @param \stdClass $data the current cm data reference
107- * @param \ renderer_base $output typically, the renderer that's calling this function
108+ * @param renderer_base $output typically, the renderer that's calling this function
108109 * @return bool if the cm has name data
109110 */
110- protected function add_cm_data (\stdClass &$ data , \ renderer_base $ output ): bool {
111+ protected function add_cm_data (\stdClass &$ data , renderer_base $ output ): bool {
111112 $ result = false ;
112113
113114 $ section = $ this ->section ;
@@ -135,10 +136,10 @@ protected function add_cm_data(\stdClass &$data, \renderer_base $output): bool {
135136 * Add the section editor attributes to the data structure.
136137 *
137138 * @param \stdClass $data the current cm data reference
138- * @param \ renderer_base $output typically, the renderer that's calling this function
139+ * @param renderer_base $output typically, the renderer that's calling this function
139140 * @return bool if the cm has name data
140141 */
141- protected function add_editor_data (\stdClass &$ data , \ renderer_base $ output ): bool {
142+ protected function add_editor_data (\stdClass &$ data , renderer_base $ output ): bool {
142143 $ result = parent ::add_editor_data ($ data , $ output );
143144
144145 if (!empty ($ this ->section ->component ) || !$ result ) {
@@ -157,10 +158,10 @@ protected function add_editor_data(\stdClass &$data, \renderer_base $output): bo
157158 *
158159 * @param \stdClass $data the current cm data reference
159160 * @param bool[] $haspartials the result of loading partial data elements
160- * @param \ renderer_base $output typically, the renderer that's calling this function
161+ * @param renderer_base $output typically, the renderer that's calling this function
161162 * @return bool if the cm has name data
162163 */
163- protected function add_format_data (\stdClass &$ data , array $ haspartials , \ renderer_base $ output ): bool {
164+ protected function add_format_data (\stdClass &$ data , array $ haspartials , renderer_base $ output ): bool {
164165 $ section = $ this ->section ;
165166
166167 $ result = parent ::add_format_data ($ data , $ haspartials , $ output );
0 commit comments