File tree 9 files changed +15
-14
lines changed 9 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 33
33
- php : ' 8.2'
34
34
moodle-branch : ' master'
35
35
database : ' pgsql'
36
+ - php : ' 8.3'
37
+ moodle-branch : ' MOODLE_404_STABLE'
38
+ database : ' mariadb'
39
+ - php : ' 8.2'
40
+ moodle-branch : ' MOODLE_403_STABLE'
41
+ database : ' pgsql'
36
42
- php : ' 8.1'
37
43
moodle-branch : ' MOODLE_402_STABLE'
38
44
database : ' mariadb'
45
51
46
52
steps :
47
53
- name : Check out repository code
48
- uses : actions/checkout@v3
54
+ uses : actions/checkout@v4
49
55
with :
50
56
path : plugin
51
57
78
84
if : ${{ always() }}
79
85
run : moodle-plugin-ci phplint
80
86
81
- - name : PHP Copy/Paste Detector
82
- continue-on-error : true # This step will show errors but will not fail
83
- if : ${{ always() }}
84
- run : moodle-plugin-ci phpcpd
85
-
86
87
- name : PHP Mess Detector
87
88
if : ${{ always() }}
88
89
run : moodle-plugin-ci phpmd
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
31
31
*
32
32
* @return string
33
33
*/
34
- public static function get_reason () : string {
34
+ public static function get_reason (): string {
35
35
return 'privacy:metadata ' ;
36
36
}
37
37
}
Original file line number Diff line number Diff line change 39
39
$ string ['errormaxmarknumber ' ] = 'The maximum mark must be a number. ' ;
40
40
$ string ['errornopermissions ' ] = 'You do not have permission to embed this question. ' ;
41
41
$ string ['errorunknownquestion ' ] = 'Unknown, or unsharable question. ' ;
42
- $ string ['errorvariantoutofrange ' ] = 'Variant number must be a positive integer at most {$a}. ' ;
43
42
$ string ['errorvariantformat ' ] = 'Variant number must be a positive integer. ' ;
43
+ $ string ['errorvariantoutofrange ' ] = 'Variant number must be a positive integer at most {$a}. ' ;
44
44
$ string ['filtername ' ] = 'Embed questions ' ;
45
45
$ string ['generalfeedback_desc ' ] = 'Whether the general feedback should be shown by default in embedded questions. ' ;
46
46
$ string ['howquestionbehaves ' ] = 'How the question behaves ' ;
Original file line number Diff line number Diff line change 26
26
* @covers \filter_embedquestion\attempt
27
27
* @covers \filter_embedquestion\attempt_storage
28
28
*/
29
- class attempt_test extends \advanced_testcase {
29
+ final class attempt_test extends \advanced_testcase {
30
30
31
31
public function test_start_new_attempt_at_question_will_select_an_unused_question (): void {
32
32
global $ DB , $ USER ;
Original file line number Diff line number Diff line change 26
26
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
27
* @covers \filter_embedquestion\task\cleanup_task
28
28
*/
29
- class cleanup_task_test extends \advanced_testcase {
29
+ final class cleanup_task_test extends \advanced_testcase {
30
30
31
31
public function test_cleanup_task (): void {
32
32
Original file line number Diff line number Diff line change 25
25
* @covers \filter_embedquestion\external
26
26
* @runTestsInSeparateProcesses
27
27
*/
28
- class external_test extends \advanced_testcase {
28
+ final class external_test extends \advanced_testcase {
29
29
30
30
public function setUp (): void {
31
31
global $ SCRIPT ;
Original file line number Diff line number Diff line change 31
31
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
32
* @covers \filter_embedquestion
33
33
*/
34
- class filter_test extends \advanced_testcase {
34
+ final class filter_test extends \advanced_testcase {
35
35
36
36
public function setUp (): void {
37
37
parent ::setUp ();
Original file line number Diff line number Diff line change 24
24
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
25
* @covers \filter_embedquestion\token
26
26
*/
27
- class token_test extends \advanced_testcase {
27
+ final class token_test extends \advanced_testcase {
28
28
29
29
public function test_is_authorized_secret_token (): void {
30
30
$ this ->resetAfterTest ();
Original file line number Diff line number Diff line change 32
32
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
33
* @covers \filter_embedquestion\utils
34
34
*/
35
- class utils_test extends \advanced_testcase {
35
+ final class utils_test extends \advanced_testcase {
36
36
37
37
public function test_get_category_by_idnumber (): void {
38
38
$ this ->resetAfterTest ();
You can’t perform that action at this time.
0 commit comments