Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(483 errors, 95 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

mod/tutorialbooking/backup/moodle2/backup_tutorialbooking_activity_task.class.php
(#64) Expected at least 1 space before "."; 0 found
(#64) Expected at least 1 space after "."; 0 found
(#64) Expected at least 1 space before "."; 0 found
(#64) Expected at least 1 space after "."; 0 found
(#67) Expected at least 1 space before "."; 0 found
(#67) Expected at least 1 space after "."; 0 found
(#67) Expected at least 1 space before "."; 0 found
(#67) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/backup/moodle2/backup_tutorialbooking_stepslib.php
(#47) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Only one argument is allowed per line in a multi-line function call
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Only one argument is allowed per line in a multi-line function call
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Only one argument is allowed per line in a multi-line function call
(#92) Opening parenthesis of a multi-line function call must be the last content on the line
(#92) Only one argument is allowed per line in a multi-line function call
(#119) Opening parenthesis of a multi-line function call must be the last content on the line
mod/tutorialbooking/backup/moodle2/restore_tutorialbooking_activity_task.class.php
(#37) Opening brace must not be followed by a blank line
mod/tutorialbooking/backup/moodle2/restore_tutorialbooking_stepslib.php
(#46) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#47) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/confirmremoval_form.php
(#60) Opening parenthesis of a multi-line function call must be the last content on the line
(#61) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#62) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#62) Closing parenthesis of a multi-line function call must be on a line by itself
(#63) Opening parenthesis of a multi-line function call must be the last content on the line
(#64) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#64) Opening parenthesis of a multi-line function call must be the last content on the line
(#64) Only one argument is allowed per line in a multi-line function call
(#65) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#67) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#67) Closing parenthesis of a multi-line function call must be on a line by itself
(#68) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/email_form.php
(#51) Opening parenthesis of a multi-line function call must be the last content on the line
(#51) Only one argument is allowed per line in a multi-line function call
(#52) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#52) Closing parenthesis of a multi-line function call must be on a line by itself
(#72) Each PHP statement must be on a line by itself
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Only one argument is allowed per line in a multi-line function call
(#78) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#79) Opening parenthesis of a multi-line function call must be the last content on the line
(#79) Only one argument is allowed per line in a multi-line function call
(#79) Only one argument is allowed per line in a multi-line function call
(#80) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#80) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/event/signup_capability_removed.php
(#82) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#83) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/event/signup_removed.php
(#81) Opening parenthesis of a multi-line function call must be the last content on the line
(#82) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/exception/session_exception.php
(#42) Incorrect spacing between argument "$debuginfo" and equals sign; expected 1 but found 0
(#42) Incorrect spacing between default value and equals sign for argument "$debuginfo"; expected 1 but found 0
mod/tutorialbooking/classes/external/capabilities.php
(#48) Long list syntax is not allowed
mod/tutorialbooking/classes/external/details.php
(#58) Long list syntax is not allowed
(#58) Opening parenthesis of a multi-line function call must be the last content on the line
(#58) Only one argument is allowed per line in a multi-line function call
(#59) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
(#78) Long list syntax is not allowed
(#78) Opening parenthesis of a multi-line function call must be the last content on the line
(#78) Only one argument is allowed per line in a multi-line function call
(#79) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#79) Only one argument is allowed per line in a multi-line function call
(#79) Only one argument is allowed per line in a multi-line function call
(#79) Only one argument is allowed per line in a multi-line function call
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
(#80) Long list syntax is not allowed
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Only one argument is allowed per line in a multi-line function call
(#81) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#81) Only one argument is allowed per line in a multi-line function call
(#81) Only one argument is allowed per line in a multi-line function call
(#81) Only one argument is allowed per line in a multi-line function call
(#81) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/external/moveslot.php
(#52) Long list syntax is not allowed
mod/tutorialbooking/classes/external/removesignup.php
(#54) Long list syntax is not allowed
(#61) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#62) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#63) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#64) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#65) Multi-line function call not indented correctly; expected 16 spaces but found 20
mod/tutorialbooking/classes/external/signup.php
(#54) Long list syntax is not allowed
(#61) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#62) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#63) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#64) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#65) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#66) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#67) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#68) Multi-line function call not indented correctly; expected 16 spaces but found 20
mod/tutorialbooking/classes/external/view.php
(#52) Long list syntax is not allowed
mod/tutorialbooking/classes/message.php
(#183) Opening parenthesis of a multi-line function call must be the last content on the line
(#183) Only one argument is allowed per line in a multi-line function call
(#183) Only one argument is allowed per line in a multi-line function call
(#184) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#184) Only one argument is allowed per line in a multi-line function call
(#184) Only one argument is allowed per line in a multi-line function call
(#184) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/output/slot.php
(#74) Long list syntax is not allowed
(#76) Long list syntax is not allowed
(#172) Expected no space between "$usedspaces" and the comma. Found: 1 space
mod/tutorialbooking/classes/output/teacher_renderer.php
(#56) Opening parenthesis of a multi-line function call must be the last content on the line
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#73) Expected at least 1 space before "."; 0 found
(#73) Expected at least 1 space after "."; 0 found
(#90) Opening parenthesis of a multi-line function call must be the last content on the line
(#94) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#94) Closing parenthesis of a multi-line function call must be on a line by itself
(#99) Opening parenthesis of a multi-line function call must be the last content on the line
(#104) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#104) Closing parenthesis of a multi-line function call must be on a line by itself
(#170) Opening parenthesis of a multi-line function call must be the last content on the line
(#174) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#174) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/output/tutorialbooking.php
(#176) Long list syntax is not allowed
(#186) Expected 1 space after SWITCH keyword; 0 found
mod/tutorialbooking/classes/privacy/provider.php
(#49) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, \core_privacy\local\request\core_userlist_provider; Found: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider
(#50) Expected 4 spaces before interface name; 8 found
(#51) Expected 4 spaces before interface name; 8 found
(#52) Expected 4 spaces before interface name; 8 found
(#128) Long list syntax is not allowed
(#164) Long list syntax is not allowed
(#203) Long list syntax is not allowed
(#341) Long list syntax is not allowed
mod/tutorialbooking/classes/search/session.php
(#44) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $context.
(#46) Long list syntax is not allowed
(#47) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#48) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#49) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#50) Multi-line function call not indented correctly; expected 12 spaces but found 16
mod/tutorialbooking/classes/session.php
(#211) Opening parenthesis of a multi-line function call must be the last content on the line
(#211) Only one argument is allowed per line in a multi-line function call
(#212) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#212) Closing parenthesis of a multi-line function call must be on a line by itself
(#261) Long list syntax is not allowed
(#294) Opening parenthesis of a multi-line function call must be the last content on the line
(#294) Only one argument is allowed per line in a multi-line function call
(#295) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#295) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/session_add_user.php
(#35) Expected 0 spaces before closing parenthesis; 1 found
(#35) Expected at least 1 space before "."; 0 found
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Only one argument is allowed per line in a multi-line function call
(#78) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#85) Opening parenthesis of a multi-line function call must be the last content on the line
(#85) Only one argument is allowed per line in a multi-line function call
(#85) Only one argument is allowed per line in a multi-line function call
(#86) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/session_form.php
(#85) Opening parenthesis of a multi-line function call must be the last content on the line
(#85) Only one argument is allowed per line in a multi-line function call
(#85) Only one argument is allowed per line in a multi-line function call
(#86) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
(#94) Opening parenthesis of a multi-line function call must be the last content on the line
(#94) Only one argument is allowed per line in a multi-line function call
(#94) Only one argument is allowed per line in a multi-line function call
(#95) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#102) Opening parenthesis of a multi-line function call must be the last content on the line
(#102) Only one argument is allowed per line in a multi-line function call
(#103) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#103) Only one argument is allowed per line in a multi-line function call
(#103) Closing parenthesis of a multi-line function call must be on a line by itself
(#104) Opening parenthesis of a multi-line function call must be the last content on the line
(#104) Only one argument is allowed per line in a multi-line function call
(#105) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
(#106) Opening parenthesis of a multi-line function call must be the last content on the line
(#106) Only one argument is allowed per line in a multi-line function call
(#107) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#107) Only one argument is allowed per line in a multi-line function call
(#107) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/classes/task/fix_duplicates.php
(#80) Long list syntax is not allowed
(#85) Expected at least 1 space before "."; 0 found
(#85) Expected at least 1 space after "."; 0 found
(#85) Expected at least 1 space before "."; 0 found
(#85) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/classes/tutorial.php
(#182) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#183) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#184) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#185) Multi-line function call not indented correctly; expected 12 spaces but found 16
mod/tutorialbooking/classes/user.php
(#32) Header blocks must not contain blank lines
(#155) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#155) Multi-line function declarations must define one parameter per line
(#155) Multi-line function declarations must define one parameter per line
(#156) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#156) Multi-line function declarations must define one parameter per line
(#156) Multi-line function declarations must define one parameter per line
(#156) Multi-line function declarations must define one parameter per line
(#156) The closing parenthesis of a multi-line function declaration must be on a new line
(#162) Opening parenthesis of a multi-line function call must be the last content on the line
(#163) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
(#204) Opening parenthesis of a multi-line function call must be the last content on the line
(#204) Only one argument is allowed per line in a multi-line function call
(#205) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#205) Closing parenthesis of a multi-line function call must be on a line by itself
(#211) Expected at least 1 space before "."; 0 found
(#211) Expected at least 1 space after "."; 0 found
(#211) Expected at least 1 space before "."; 0 found
(#211) Expected at least 1 space after "."; 0 found
(#211) Expected at least 1 space before "."; 0 found
(#211) Expected at least 1 space after "."; 0 found
(#211) Expected at least 1 space before "."; 0 found
(#211) Expected at least 1 space after "."; 0 found
(#211) Expected at least 1 space before "."; 0 found
(#211) Expected at least 1 space after "."; 0 found
(#302) Opening parenthesis of a multi-line function call must be the last content on the line
(#302) Only one argument is allowed per line in a multi-line function call
(#303) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#303) Only one argument is allowed per line in a multi-line function call
(#303) Closing parenthesis of a multi-line function call must be on a line by itself
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#327) Expected at least 1 space before "."; 0 found
(#327) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/db/messages.php
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
mod/tutorialbooking/db/mobile.php
(#42) Expected no space between "'freespaces'" and the comma. Found: 1 space
(#45) Expected no space between "'removefromslot'" and the comma. Found: 1 space
(#46) Expected no space between "'signupforslot'" and the comma. Found: 1 space
(#48) Expected no space between "'usedspaces'" and the comma. Found: 1 space
(#49) Expected no space between "'yousignedup'" and the comma. Found: 1 space
mod/tutorialbooking/db/upgrade.php
(#37) Blank line found at start of control structure
(#63) Expected at least 1 space before "."; 0 found
(#63) Expected at least 1 space after "."; 0 found
(#73) Blank line found at start of control structure
mod/tutorialbooking/export.php
(#37) Long list syntax is not allowed
(#51) Expected at least 1 space before "."; 0 found
mod/tutorialbooking/index.php
(#90) Expected at least 1 space before "."; 0 found
(#90) Expected at least 1 space after "."; 0 found
(#95) Opening parenthesis of a multi-line function call must be the last content on the line
(#96) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#96) Closing parenthesis of a multi-line function call must be on a line by itself
(#97) Expected at least 1 space before "."; 0 found
(#120) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#143) Expected at least 1 space before "."; 0 found
(#143) Expected at least 1 space after "."; 0 found
(#143) Expected at least 1 space before "."; 0 found
(#143) Expected at least 1 space after "."; 0 found
(#147) Short array syntax must be used to define arrays
(#149) Expected at least 1 space before "."; 0 found
(#149) Expected at least 1 space after "."; 0 found
(#149) Expected at least 1 space before "."; 0 found
(#149) Expected at least 1 space after "."; 0 found
(#155) Blank line found at end of control structure
mod/tutorialbooking/lib.php
(#40) Expected 1 space after SWITCH keyword; 0 found
(#70) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#91) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#123) Expected 1 space after comma in argument list; 2 found
(#123) Expected 1 space between the comma and "[". Found: 2 spaces
(#184) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#185) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#212) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $tutorialbookingnode.
(#377) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#378) Multi-line function declaration not indented correctly; expected 4 spaces but found 64
(#379) Multi-line function declaration not indented correctly; expected 4 spaces but found 64
(#379) The closing parenthesis of a multi-line function declaration must be on a new line
(#449) Expected at least 1 space before "."; 0 found
(#449) Expected at least 1 space after "."; 0 found
(#449) Expected at least 1 space before "."; 0 found
(#449) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/mod_form.php
(#30) Expected at least 1 space before "."; 0 found
(#30) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/settings.php
(#30) Opening parenthesis of a multi-line function call must be the last content on the line
(#31) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#31) Only one argument is allowed per line in a multi-line function call
(#31) Only one argument is allowed per line in a multi-line function call
(#31) Only one argument is allowed per line in a multi-line function call
(#31) Closing parenthesis of a multi-line function call must be on a line by itself
(#34) Opening parenthesis of a multi-line function call must be the last content on the line
(#35) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#36) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#37) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#38) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#39) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#39) Closing parenthesis of a multi-line function call must be on a line by itself
(#43) Opening parenthesis of a multi-line function call must be the last content on the line
(#44) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#44) Only one argument is allowed per line in a multi-line function call
(#44) Only one argument is allowed per line in a multi-line function call
(#44) Only one argument is allowed per line in a multi-line function call
(#44) Closing parenthesis of a multi-line function call must be on a line by itself
(#50) Blank line found at end of control structure
mod/tutorialbooking/tests/behat/behat_mod_tutorialbooking.php
(#29) Useless alias "TableNode" found for import of "Behat\Gherkin\Node\TableNode"
(#53) Expected at least 1 space after "."; 0 found
(#53) Expected at least 1 space before "."; 0 found
(#90) Line exceeds maximum limit of 180 characters; contains 192 characters
(#214) Line exceeds 132 characters; contains 177 characters
(#350) Only one argument is allowed per line in a multi-line function call
(#358) Line exceeds 132 characters; contains 140 characters
(#382) Expected at least 1 space before "."; 0 found
(#382) Expected at least 1 space after "."; 0 found
(#382) Expected at least 1 space before "."; 0 found
(#382) Expected at least 1 space after "."; 0 found
(#393) Line exceeds maximum limit of 180 characters; contains 187 characters
(#452) Expected at least 1 space after "."; 0 found
(#452) Expected at least 1 space before "."; 0 found
(#453) Expected at least 1 space after "."; 0 found
(#453) Expected at least 1 space before "."; 0 found
(#585) Line exceeds maximum limit of 180 characters; contains 189 characters
mod/tutorialbooking/tests/external/capabilities_test.php
(#43) Unit test capabilities_test should be declared as final.
(#51) Test method test_capabilities_student() is missing a return type
(#98) Test method test_capabilities_not_on_course() is missing a return type
(#144) Test method test_capabilities_teacher() is missing a return type
(#191) Test method test_capabilities_editingteacher() is missing a return type
mod/tutorialbooking/tests/external/details_test.php
(#43) Unit test details_test should be declared as final.
(#51) Test method test_details_not_signed_up() is missing a return type
(#128) Test method test_details_signed_up() is missing a return type
mod/tutorialbooking/tests/external/moveslot_test.php
(#43) Unit test moveslot_test should be declared as final.
(#47) Test method test_moveslot_up() is missing any coverage information, own or at class level
(#47) Test method test_moveslot_up() is missing a return type
(#81) Test method test_moveslot_down() is missing any coverage information, own or at class level
(#81) Test method test_moveslot_down() is missing a return type
(#115) Test method test_no_capability() is missing any coverage information, own or at class level
(#115) Test method test_no_capability() is missing a return type
(#142) Test method test_invalid_slot() is missing any coverage information, own or at class level
(#142) Test method test_invalid_slot() is missing a return type
(#170) Test method test_slot_in_different_tutorial() is missing any coverage information, own or at class level
(#170) Test method test_slot_in_different_tutorial() is missing a return type
mod/tutorialbooking/tests/external/remove_signup_test.php
(#43) Unit test remove_signup_test should be declared as final.
(#52) Test method test_remove_signup() is missing a return type
(#104) Test method test_no_signup() is missing a return type
(#147) Test method test_no_capability() is missing a return type
(#193) Test method test_locked() is missing a return type
mod/tutorialbooking/tests/external/signup_test.php
(#43) Unit test signup_test should be declared as final.
(#52) Test method test_signup() is missing a return type
(#101) Test method test_already_signedup() is missing a return type
(#147) Test method test_no_capability() is missing a return type
(#191) Test method test_no_space() is missing a return type
(#237) Test method test_locked() is missing a return type
mod/tutorialbooking/tests/external/view_test.php
(#43) Unit test view_test should be declared as final.
(#49) Test method test_view() is missing a return type
mod/tutorialbooking/tests/generator/lib.php
(#67) Expected at least 1 space before "."; 0 found
(#67) Expected at least 1 space after "."; 0 found
(#117) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $options.
mod/tutorialbooking/tests/lib_test.php
(#40) Testcase mod_tutorialbooking_lib_testcase should be declared as abstract.
(#40) PHPUnit testcase name "mod_tutorialbooking_lib_testcase" does not match file name "lib_test"
(#40) PHPUnit class "mod_tutorialbooking_lib_testcase" does not have any namespace. It is recommended to add it to the "mod_tutorialbooking" namespace, using more levels if needed, in order to match the code being tested
(#46) Test method test_check_updates_since_student() is missing a return type
(#51) Variable "clock1_int" must not contain underscores.
(#52) Variable "clock2_int" must not contain underscores.
(#52) Variable "clock1_int" must not contain underscores.
(#53) Variable "clock3_int" must not contain underscores.
(#53) Variable "clock1_int" must not contain underscores.
(#54) Variable "clock4_int" must not contain underscores.
(#54) Variable "clock1_int" must not contain underscores.
(#55) Variable "clock5_int" must not contain underscores.
(#55) Variable "clock1_int" must not contain underscores.
(#56) Variable "clock6_int" must not contain underscores.
(#56) Variable "clock1_int" must not contain underscores.
(#57) Variable "clock7_int" must not contain underscores.
(#57) Variable "clock1_int" must not contain underscores.
(#61) Variable "clock1_int" must not contain underscores.
(#62) Variable "clock1_num" must not contain underscores.
(#63) Variable "clock2_int" must not contain underscores.
(#64) Variable "clock2_num" must not contain underscores.
(#65) Variable "clock3_int" must not contain underscores.
(#66) Variable "clock3_num" must not contain underscores.
(#67) Variable "clock4_int" must not contain underscores.
(#68) Variable "clock4_num" must not contain underscores.
(#69) Variable "clock5_int" must not contain underscores.
(#70) Variable "clock5_num" must not contain underscores.
(#71) Variable "clock6_int" must not contain underscores.
(#72) Variable "clock6_num" must not contain underscores.
(#73) Variable "clock7_int" must not contain underscores.
(#74) Variable "clock7_num" must not contain underscores.
(#88) Variable "clock1_num" must not contain underscores.
(#89) Variable "clock2_num" must not contain underscores.
(#92) Variable "clock1_num" must not contain underscores.
(#92) Variable "clock2_num" must not contain underscores.
(#94) Variable "clock3_num" must not contain underscores.
(#94) Variable "clock5_num" must not contain underscores.
(#96) Variable "clock6_num" must not contain underscores.
(#97) Variable "clock5_num" must not contain underscores.
(#102) Variable "clock2_num" must not contain underscores.
(#103) Variable "clock3_num" must not contain underscores.
(#106) Variable "clock3_num" must not contain underscores.
(#106) Variable "clock4_num" must not contain underscores.
(#108) Variable "clock6_num" must not contain underscores.
(#114) Variable "clock1_num" must not contain underscores.
(#129) Variable "clock5_num" must not contain underscores.
(#142) Variable "clock7_num" must not contain underscores.
(#157) Variable "clock1_num" must not contain underscores.
(#173) Variable "clock5_num" must not contain underscores.
mod/tutorialbooking/tests/message_test.php
(#40) Unit test message_test should be declared as final.
(#46) Test method test_generate_formdata() is missing a return type
(#76) Test method test_generate_formdata_error() is missing a return type
(#101) Test method test_send_message() is missing a return type
(#173) Opening parenthesis of a multi-line function call must be the last content on the line
(#173) Only one argument is allowed per line in a multi-line function call
(#174) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#174) Only one argument is allowed per line in a multi-line function call
(#174) Only one argument is allowed per line in a multi-line function call
(#174) Closing parenthesis of a multi-line function call must be on a line by itself
(#180) Opening parenthesis of a multi-line function call must be the last content on the line
(#180) Only one argument is allowed per line in a multi-line function call
(#181) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#181) Only one argument is allowed per line in a multi-line function call
(#181) Only one argument is allowed per line in a multi-line function call
(#181) Closing parenthesis of a multi-line function call must be on a line by itself
(#186) Opening parenthesis of a multi-line function call must be the last content on the line
(#186) Only one argument is allowed per line in a multi-line function call
(#187) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#187) Only one argument is allowed per line in a multi-line function call
(#187) Only one argument is allowed per line in a multi-line function call
(#187) Closing parenthesis of a multi-line function call must be on a line by itself
mod/tutorialbooking/tests/privacy/provider_test.php
(#38) Unit test provider_test should be declared as final.
(#62) Test method test_user_not_signed_up() is missing any coverage information, own or at class level
(#62) Test method test_user_not_signed_up() is missing a return type
(#80) Test method test_signedup_user() is missing any coverage information, own or at class level
(#80) Test method test_signedup_user() is missing a return type
(#117) Test method test_user_sent_message() is missing any coverage information, own or at class level
(#117) Test method test_user_sent_message() is missing a return type
(#161) Test method test_all_users_deleted_from_context() is missing any coverage information, own or at class level
(#161) Test method test_all_users_deleted_from_context() is missing a return type
(#201) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#201) Test method test_delete_data_for_user() is missing a return type
(#251) Test method test_delete_data_for_user_messages() is missing any coverage information, own or at class level
(#251) Test method test_delete_data_for_user_messages() is missing a return type
(#301) Test method test_get_users_in_context() is missing any coverage information, own or at class level
(#301) Test method test_get_users_in_context() is missing a return type
(#337) Test method test_delete_data_for_users() is missing any coverage information, own or at class level
(#337) Test method test_delete_data_for_users() is missing a return type
mod/tutorialbooking/tests/register_test.php
(#38) Unit test register_test should be declared as final.
(#44) Test method test_getsessionsignups() is missing a return type
mod/tutorialbooking/tests/search_test.php
(#48) Unit test search_test should be declared as final.
(#74) Test method test_search_enabled() is missing any coverage information, own or at class level
(#74) Test method test_search_enabled() is missing a return type
(#76) Long list syntax is not allowed
(#94) Test method test_session_indexing() is missing any coverage information, own or at class level
(#94) Test method test_session_indexing() is missing a return type
(#144) Test method test_check_access() is missing any coverage information, own or at class level
(#144) Test method test_check_access() is missing a return type
mod/tutorialbooking/tests/session_test.php
(#40) Unit test session_test should be declared as final.
(#46) Test method test_computesequence() is missing a return type
(#64) Opening parenthesis of a multi-line function call must be the last content on the line
(#65) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#65) Closing parenthesis of a multi-line function call must be on a line by itself
(#70) Opening parenthesis of a multi-line function call must be the last content on the line
(#71) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#71) Closing parenthesis of a multi-line function call must be on a line by itself
(#75) Opening parenthesis of a multi-line function call must be the last content on the line
(#76) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#76) Closing parenthesis of a multi-line function call must be on a line by itself
(#94) Opening parenthesis of a multi-line function call must be the last content on the line
(#95) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#104) Opening parenthesis of a multi-line function call must be the last content on the line
(#105) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
(#124) Test method test_delete_session() is missing a return type
(#177) Test method test_generate_editsession_formdata() is missing a return type
(#234) Test method test_getsessionstats() is missing a return type
(#304) Test method test_move_sequence_down() is missing a return type
(#349) Test method test_move_sequence_up() is missing a return type
mod/tutorialbooking/tests/task/fix_duplicates_test.php
(#38) Unit test fix_duplicates_test should be declared as final.
(#44) Test method test_duplicates_in_slot() is missing a return type
(#88) Test method test_duplicates_in_tutorial() is missing a return type
mod/tutorialbooking/tests/tutorial_test.php
(#40) Unit test tutorial_test should be declared as final.
(#46) Test method test_getstatsfortutorial() is missing a return type
(#96) Test method test_togglelock() is missing a return type
(#123) Test method test_gettutorialsessions() is missing a return type
(#167) Test method test_gettutorialsignups() is missing a return type
(#226) Test method test_gettutorialstats() is missing a return type
mod/tutorialbooking/tests/user_test.php
(#42) Unit test user_test should be declared as final.
(#48) Test method test_adduser() is missing a return type
(#86) Short array syntax must be used to define arrays
(#208) Test method test_addusers_from_form() is missing a return type
(#240) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#255) Opening parenthesis of a multi-line function call must be the last content on the line
(#255) Only one argument is allowed per line in a multi-line function call
(#255) Only one argument is allowed per line in a multi-line function call
(#255) Only one argument is allowed per line in a multi-line function call
(#256) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#256) Only one argument is allowed per line in a multi-line function call
(#256) Only one argument is allowed per line in a multi-line function call
(#256) Closing parenthesis of a multi-line function call must be on a line by itself
(#263) Opening parenthesis of a multi-line function call must be the last content on the line
(#263) Only one argument is allowed per line in a multi-line function call
(#263) Only one argument is allowed per line in a multi-line function call
(#263) Only one argument is allowed per line in a multi-line function call
(#264) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#264) Only one argument is allowed per line in a multi-line function call
(#264) Only one argument is allowed per line in a multi-line function call
(#264) Closing parenthesis of a multi-line function call must be on a line by itself
(#269) Opening parenthesis of a multi-line function call must be the last content on the line
(#269) Only one argument is allowed per line in a multi-line function call
(#269) Only one argument is allowed per line in a multi-line function call
(#269) Only one argument is allowed per line in a multi-line function call
(#270) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#270) Only one argument is allowed per line in a multi-line function call
(#270) Only one argument is allowed per line in a multi-line function call
(#270) Closing parenthesis of a multi-line function call must be on a line by itself
(#281) Test method test_generate_removeuser_formdata() is missing a return type
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#340) Test method test_remove_user() is missing a return type
(#376) Short array syntax must be used to define arrays
(#376) Short array syntax must be used to define arrays
(#421) Test method test_displayusernames() is missing a return type
(#433) Expected at least 1 space before "."; 0 found
(#433) Expected at least 1 space after "."; 0 found
(#433) Expected at least 1 space before "."; 0 found
(#433) Expected at least 1 space after "."; 0 found
(#433) Expected at least 1 space before "."; 0 found
(#433) Expected at least 1 space after "."; 0 found
(#433) Expected at least 1 space before "."; 0 found
(#433) Expected at least 1 space after "."; 0 found
(#433) Expected at least 1 space before "."; 0 found
(#433) Expected at least 1 space after "."; 0 found
(#434) Expected at least 1 space before "."; 0 found
(#434) Expected at least 1 space after "."; 0 found
(#434) Expected at least 1 space before "."; 0 found
(#434) Expected at least 1 space after "."; 0 found
(#434) Expected at least 1 space before "."; 0 found
(#434) Expected at least 1 space after "."; 0 found
(#434) Expected at least 1 space before "."; 0 found
(#434) Expected at least 1 space after "."; 0 found
(#434) Expected at least 1 space before "."; 0 found
(#434) Expected at least 1 space after "."; 0 found
(#435) Expected at least 1 space before "."; 0 found
(#435) Expected at least 1 space after "."; 0 found
(#435) Expected at least 1 space before "."; 0 found
(#435) Expected at least 1 space after "."; 0 found
(#435) Expected at least 1 space before "."; 0 found
(#435) Expected at least 1 space after "."; 0 found
(#435) Expected at least 1 space before "."; 0 found
(#435) Expected at least 1 space after "."; 0 found
(#435) Expected at least 1 space before "."; 0 found
(#435) Expected at least 1 space after "."; 0 found
mod/tutorialbooking/tutorial_register.php
(#31) Expected at least 1 space before "."; 0 found
(#31) Expected at least 1 space after "."; 0 found
(#38) Long list syntax is not allowed
mod/tutorialbooking/tutorialbooking_sessions.php
(#43) Each PHP statement must be on a line by itself
(#44) Each PHP statement must be on a line by itself
(#54) Long list syntax is not allowed
(#161) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Only one argument is allowed per line in a multi-line function call
(#161) Only one argument is allowed per line in a multi-line function call
(#162) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#162) Only one argument is allowed per line in a multi-line function call
(#162) Closing parenthesis of a multi-line function call must be on a line by itself
(#213) Blank line found at end of control structure
mod/tutorialbooking/view.php
(#39) Long list syntax is not allowed
(#41) Long list syntax is not allowed
(#53) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#55) Multi-line function call not indented correctly; expected 4 spaces but found 16
(#55) Closing parenthesis of a multi-line function call must be on a line by itself

Javascript coding style problems

(0 errors, 0 warnings)

This section shows the coding style problems detected in the code by eslint [More info]


CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(1 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

mod/tutorialbooking/classes/export.php
(#95) Phpdocs for function export::getexportcourse has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 16 warnings)

This section shows problems detected in mustache templates [More info]

mod/tutorialbooking/templates/mobile/ionic3/signup.mustache
(#1) Template produced no content
mod/tutorialbooking/templates/mobile/ionic3/slot.mustache
(#1) HTML Validation info, line 21: Attribute “[params]” is not serializable as XML 1.0. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation info, line 21: Attribute “[presets]” is not serializable as XML 1.0. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “ion-button” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “icon-start” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “core-site-plugins-call-ws” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “[params]” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “[presets]” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 21: Attribute “refreshonsuccess” not allowed on element “button” at this point. ( <button ion-button icon-start core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
mod/tutorialbooking/templates/mobile/ionic3/tutorialbooking.mustache
(#1) HTML Validation info, line 7: Attribute “[params]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation info, line 7: Attribute “[presets]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “core-site-plugins-call-ws-on-load” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “name” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “[params]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “[presets]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
mod/tutorialbooking/templates/mobile/latest/signup.mustache
(#1) Template produced no content
mod/tutorialbooking/templates/mobile/latest/slot.mustache
(#1) HTML Validation info, line 21: Attribute “[params]” is not serializable as XML 1.0. ( <ion-button size="default" core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
(#1) HTML Validation info, line 21: Attribute “[presets]” is not serializable as XML 1.0. ( <ion-button size="default" core-site-plugins-call-ws name="mod_tutorialbooking_signup" [params]="{slotid: 6}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true"> )
mod/tutorialbooking/templates/mobile/latest/tutorialbooking.mustache
(#1) HTML Validation info, line 7: Attribute “[params]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation info, line 7: Attribute “[presets]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “core-site-plugins-call-ws-on-load” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “name” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “[params]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 7: Attribute “[presets]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_tutorialbooking_view_tutorialbooking" [params]="{id: 13}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
mod/tutorialbooking/templates/student_signup.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="signedupuser">Jane S)
mod/tutorialbooking/templates/teacher_signup.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="signedupuser"><a hre)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]