Skip to content

Commit dfc3bed

Browse files
committed
CI check changes
1 parent 84e6557 commit dfc3bed

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

classes/util.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ public static function process_student_accounts() {
8686
$deleteaftermonths = get_config('tool_disable_delete_students', 'delete_after_months');
8787

8888
// Get all active student accounts.
89-
$sql = "SELECT DISTINCT u.*
89+
$sql = "SELECT DISTINCT u.*
9090
FROM {user} u
9191
JOIN {role_assignments} ra ON ra.userid = u.id
9292
JOIN {role} r ON r.id = ra.roleid
93-
WHERE u.deleted = 0
93+
WHERE u.deleted = 0
9494
AND r.shortname = 'student'";
9595

9696
$students = $DB->get_records_sql($sql);

tests/cleanup_test.php tests/task/cleanup_test.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

26+
namespace tool_disable_delete_students\task;
2627
use tool_disable_delete_students\util;
2728

2829
/**
@@ -74,7 +75,7 @@ protected function setUp(): void {
7475
* Create a course with valid start and end dates
7576
*
7677
* @param int $endoffset Number of seconds to offset the end date from start
77-
* @return stdClass The created course
78+
* @return \stdClass The created course
7879
*/
7980
private function create_course_with_dates(int $endoffset): \stdClass {
8081
$startdate = time() - (360 * DAYSECS); // Start date 360 days ago.
@@ -208,7 +209,6 @@ public function test_delete_after_months(): void {
208209
// Check if student account was deleted.
209210
$userexists = $DB->record_exists('user', ['id' => $student->id, 'deleted' => 0]);
210211

211-
212212
// Capture the output.
213213
$output = ob_get_clean();
214214

version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
defined('MOODLE_INTERNAL') || die();
2828

2929
$plugin->version = 2024021500;
30-
$plugin->requires = 2022112800; // Moodle 4.1
30+
$plugin->requires = 2022112800; // Moodle 4.1.
3131
$plugin->component = 'tool_disable_delete_students';
3232
$plugin->maturity = MATURITY_STABLE;
3333
$plugin->release = '1.0';

0 commit comments

Comments
 (0)