From 7589d5471d83a325e325dc76df2db9a8f71af7fd Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:59:42 +0100 Subject: [PATCH] PHPCBF --- .../output/core_course/output/activity_navigation.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/classes/output/core_course/output/activity_navigation.php b/classes/output/core_course/output/activity_navigation.php index f88093f..61fcdd8 100644 --- a/classes/output/core_course/output/activity_navigation.php +++ b/classes/output/core_course/output/activity_navigation.php @@ -50,7 +50,7 @@ public function __construct($prevmod, $nextmod, $activitylist = []) { // Check if there is a previous module to display. if ($prevmod) { - $linkurl = new \moodle_url($prevmod->url, array('forceview' => 1)); + $linkurl = new \moodle_url($prevmod->url, ['forceview' => 1]); if ($activitynavigationmodulenames) { $linkname = $prevmod->get_formatted_name(); @@ -70,7 +70,7 @@ public function __construct($prevmod, $nextmod, $activitylist = []) { // Check if there is a next module to display. if ($nextmod) { - $linkurl = new \moodle_url($nextmod->url, array('forceview' => 1)); + $linkurl = new \moodle_url($nextmod->url, ['forceview' => 1]); if ($activitynavigationmodulenames) { $linkname = $nextmod->get_formatted_name(); } else { @@ -89,9 +89,9 @@ public function __construct($prevmod, $nextmod, $activitylist = []) { // Render the activity list dropdown menu if available. if (!empty($activitylist)) { - $select = new url_select($activitylist, '', array('' => get_string('jumpto'))); - $select->set_label(get_string('jumpto'), array('class' => 'sr-only')); - $select->attributes = array('id' => 'jump-to-activity'); + $select = new url_select($activitylist, '', ['' => get_string('jumpto')]); + $select->set_label(get_string('jumpto'), ['class' => 'sr-only']); + $select->attributes = ['id' => 'jump-to-activity']; $this->activitylist = $select; } }