From 7c845f1a693a639414ded63f28bfb11e3147b599 Mon Sep 17 00:00:00 2001 From: Jonathan Champ Date: Thu, 14 Mar 2024 11:10:06 -0400 Subject: [PATCH] phpcs: Moodle Code Checker v3.4.1 --- tests/advanced_passcode_test.php | 2 +- tests/error_handling_test.php | 2 +- tests/get_meeting_reports_test.php | 2 +- tests/mod_zoom_grade_test.php | 2 +- tests/mod_zoom_invitation_test.php | 2 +- tests/mod_zoom_webservice_test.php | 2 +- view.php | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/advanced_passcode_test.php b/tests/advanced_passcode_test.php index 77549162..54d7e87e 100644 --- a/tests/advanced_passcode_test.php +++ b/tests/advanced_passcode_test.php @@ -29,7 +29,7 @@ /** * PHPunit testcase class. */ -class advanced_passcode_test extends basic_testcase { +final class advanced_passcode_test extends basic_testcase { /** * Fake data from get_user_security_settings(). * @var object diff --git a/tests/error_handling_test.php b/tests/error_handling_test.php index 51446625..729a4f1f 100644 --- a/tests/error_handling_test.php +++ b/tests/error_handling_test.php @@ -29,7 +29,7 @@ /** * PHPunit testcase class. */ -class error_handling_test extends basic_testcase { +final class error_handling_test extends basic_testcase { /** * Exception for when the meeting isn't found on Zoom. * @var not_found_exception diff --git a/tests/get_meeting_reports_test.php b/tests/get_meeting_reports_test.php index bd1cde66..273b07b1 100644 --- a/tests/get_meeting_reports_test.php +++ b/tests/get_meeting_reports_test.php @@ -34,7 +34,7 @@ * PHPunit testcase class. * @covers \mod_zoom\task\get_meeting_reports */ -class get_meeting_reports_test extends advanced_testcase { +final class get_meeting_reports_test extends advanced_testcase { /** * Scheduled task object. * @var \mod_zoom\task\get_meeting_reports diff --git a/tests/mod_zoom_grade_test.php b/tests/mod_zoom_grade_test.php index 22fade56..8d8f41ad 100644 --- a/tests/mod_zoom_grade_test.php +++ b/tests/mod_zoom_grade_test.php @@ -29,7 +29,7 @@ /** * PHPunit testcase class. */ -class mod_zoom_grade_test extends advanced_testcase { +final class mod_zoom_grade_test extends advanced_testcase { /** * @var \stdClass Course record. */ diff --git a/tests/mod_zoom_invitation_test.php b/tests/mod_zoom_invitation_test.php index 26f23dc0..9b8f9004 100644 --- a/tests/mod_zoom_invitation_test.php +++ b/tests/mod_zoom_invitation_test.php @@ -34,7 +34,7 @@ * PHPunit testcase class for invitations. * @covers \mod_zoom\invitation */ -class mod_zoom_invitation_test extends advanced_testcase { +final class mod_zoom_invitation_test extends advanced_testcase { /** * Setup to ensure that fixtures are loaded. */ diff --git a/tests/mod_zoom_webservice_test.php b/tests/mod_zoom_webservice_test.php index 1f551931..d126b74f 100644 --- a/tests/mod_zoom_webservice_test.php +++ b/tests/mod_zoom_webservice_test.php @@ -30,7 +30,7 @@ * PHPunit testcase class. * @covers \mod_zoom\webservice */ -class mod_zoom_webservice_test extends advanced_testcase { +final class mod_zoom_webservice_test extends advanced_testcase { /** * @var object Anonymous class to mock \curl. */ diff --git a/view.php b/view.php index 9b89a2a3..d946ec9f 100755 --- a/view.php +++ b/view.php @@ -94,6 +94,7 @@ * Get the display name for a Zoom user. * This is wrapped in a function to avoid unnecessary API calls. * + * @package mod_zoom * @param string $zoomuserid Zoom user ID. * @return ?string */