Skip to content

Commit

Permalink
PHPCBF
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jul 12, 2024
1 parent 6b8df41 commit 7589d54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions classes/output/core_course/output/activity_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 {
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7589d54

Please sign in to comment.