From 1fb090d091d73c2d35b91a9cf4230de6b0a1ed27 Mon Sep 17 00:00:00 2001 From: oliviervalentin Date: Thu, 30 May 2024 09:50:02 +0200 Subject: [PATCH] Minor coding style correction --- admin_dashboard/orphaned_submissions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin_dashboard/orphaned_submissions.php b/admin_dashboard/orphaned_submissions.php index 9fa6de6..202302a 100644 --- a/admin_dashboard/orphaned_submissions.php +++ b/admin_dashboard/orphaned_submissions.php @@ -96,7 +96,7 @@ $delete = $targetassign->remove_submission($userorphan->id); } // Now that files are deleted, delete report entry. - $purgereport = $DB->delete_records('report_coursemanager_orphans', ['cmid' => $instance, 'course' => $course, ]); + $purgereport = $DB->delete_records('report_coursemanager_orphans', ['cmid' => $instance, 'course' => $course]); $returnurl = "orphaned_submissions.php"; redirect($returnurl); exit(); @@ -142,8 +142,8 @@ $selectedassigns = array_slice($listassigns, $page * $perpage, $perpage); foreach ($selectedassigns as $assign) { $cm = get_coursemodule_from_id('assign', $assign->cmid); - $course = $DB->get_record('course', array('id' => $assign->course)); - // $context = context_module::instance($cm->id); + $course = $DB->get_record('course', ['id' => $assign->course]); + $row = []; $row[] = html_writer::link("/course/view.php?id=".$assign->course, $course->fullname); $row[] = html_writer::link("/mod/assign/view.php?id=".$assign->cmid, $cm->name); @@ -157,7 +157,7 @@ echo html_writer::table($table); -$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/orphaned_submissions.php', array('perpage' => $perpage)); +$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/orphaned_submissions.php', ['perpage' => $perpage]); echo $OUTPUT->paging_bar(count($listassigns), $page, $perpage, $baseurl); echo $OUTPUT->footer();