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

(377 errors, 135 warnings)

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

mod/wooflash/auth_wooflash.php
(#29) "require_once" must be immediately followed by an open parenthesis
(#42) Variable "authUser" must be all lower-case
(#54) Variable "authUser" must be all lower-case
(#54) Variable "authUser" must be all lower-case
(#61) Line exceeds 132 characters; contains 137 characters
(#65) Variable "authUser" must be all lower-case
mod/wooflash/backup/moodle2/backup_wooflash_activity_task.class.php
(#1) No one-line description found in phpdocs for docblock of file backup_wooflash_activity_task.class.php
(#23) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#23) "require_once" must be immediately followed by an open parenthesis
(#25) "require_once" must be immediately followed by an open parenthesis
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) The static declaration must come after the visibility declaration
(#55) Commas (,) must be followed by white space.
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Expected 1 space before "="; 0 found
(#58) Expected 1 space after "="; 0 found
(#59) Expected 1 space before "="; 0 found
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Expected 1 space before "="; 0 found
(#62) Expected 1 space after "="; 0 found
(#63) Expected 1 space before "="; 0 found
mod/wooflash/backup/moodle2/backup_wooflash_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file backup_wooflash_stepslib.php
(#23) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#23) "require_once" must be immediately followed by an open parenthesis
(#34) Missing docblock for function define_structure
(#40) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
mod/wooflash/backup/moodle2/restore_wooflash_activity_task.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_wooflash_activity_task.class.php
(#23) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#23) "require_once" must be immediately followed by an open parenthesis
(#30) "require_once" must be immediately followed by an open parenthesis
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Missing docblock for class restore_wooflash_activity_task
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) The static declaration must come after the visibility declaration
(#54) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#65) The static declaration must come after the visibility declaration
(#66) Short array syntax must be used to define arrays
(#81) The static declaration must come after the visibility declaration
(#82) Short array syntax must be used to define arrays
(#104) The static declaration must come after the visibility declaration
(#105) Short array syntax must be used to define arrays
mod/wooflash/backup/moodle2/restore_wooflash_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file restore_wooflash_stepslib.php
(#23) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#23) "require_once" must be immediately followed by an open parenthesis
(#30) Missing docblock for function define_structure
(#32) Short array syntax must be used to define arrays
(#44) Missing docblock for function process_wooflash
(#56) Missing docblock for function process_wooflash_completion
(#68) Missing docblock for function after_execute
mod/wooflash/classes/event/course_module_instance_list_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class course_module_instance_list_viewed
mod/wooflash/classes/event/course_module_viewed.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/wooflash/classes/observer.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#28) "require_once" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#68) Whitespace found at end of line
(#95) Variable "quiz_file" must not contain underscores.
(#101) Variable "auth_url" must not contain underscores.
(#109) Variable "report_url" must not contain underscores.
(#124) Variable "displayName" must be all lower-case
(#125) Variable "firstName" must be all lower-case
(#126) Variable "lastName" must be all lower-case
(#150) Variable "course_url" must not contain underscores.
(#154) Variable "data_token" must not contain underscores.
(#156) Variable "auth_url" must not contain underscores.
(#157) Variable "course_url" must not contain underscores.
(#160) Variable "report_url" must not contain underscores.
(#165) Variable "curl_data" must not contain underscores.
(#166) Variable "curl_data" must not contain underscores.
(#168) Variable "curl_data" must not contain underscores.
(#172) Variable "curl_data" must not contain underscores.
(#172) Variable "quiz_file" must not contain underscores.
(#172) Variable "quiz_file" must not contain underscores.
(#173) Variable "curl_data" must not contain underscores.
(#174) Variable "curl_data" must not contain underscores.
(#174) Variable "displayName" must be all lower-case
(#175) Variable "curl_data" must not contain underscores.
(#175) Variable "firstName" must be all lower-case
(#176) Variable "curl_data" must not contain underscores.
(#176) Variable "lastName" must be all lower-case
(#177) Variable "curl_data" must not contain underscores.
(#178) Variable "curl_data" must not contain underscores.
(#178) Variable "auth_url" must not contain underscores.
(#179) Variable "curl_data" must not contain underscores.
(#179) Variable "course_url" must not contain underscores.
(#180) Variable "curl_data" must not contain underscores.
(#180) Variable "report_url" must not contain underscores.
(#181) Variable "curl_data" must not contain underscores.
(#182) Variable "curl_data" must not contain underscores.
(#187) Variable "data_token" must not contain underscores.
(#188) Variable "curl_data" must not contain underscores.
(#192) Line exceeds 132 characters; contains 135 characters
(#194) Whitespace found at end of line
(#197) Variable "data_token" must not contain underscores.
(#198) Variable "curl_data" must not contain underscores.
(#201) Variable "curl_data" must not contain underscores.
(#202) Variable "data_token" must not contain underscores.
(#204) Variable "curl_data" must not contain underscores.
(#212) Variable "curl_data" must not contain underscores.
(#228) Variable "response_data" must not contain underscores.
(#231) Variable "response_data" must not contain underscores.
(#232) Variable "response_data" must not contain underscores.
(#236) Variable "canEdit" must be all lower-case
(#240) Variable "data_token" must not contain underscores.
(#242) Variable "auth_url" must not contain underscores.
(#243) Variable "canEdit" must be all lower-case
(#244) Variable "course_url" must not contain underscores.
(#246) Variable "report_url" must not contain underscores.
(#252) Variable "data_token" must not contain underscores.
(#254) Variable "data_frame" must not contain underscores.
(#256) Variable "auth_url" must not contain underscores.
(#257) Variable "canEdit" must be all lower-case
(#258) Variable "course_url" must not contain underscores.
(#259) Variable "displayName" must be all lower-case
(#261) Variable "firstName" must be all lower-case
(#262) Variable "lastName" must be all lower-case
(#264) Variable "report_url" must not contain underscores.
(#274) Whitespace found at end of line
(#278) Variable "response_data" must not contain underscores.
(#278) Variable "data_frame" must not contain underscores.
mod/wooflash/classes/privacy/provider.php
(#1) No one-line description found in phpdocs for docblock of file provider.php
(#33) "require_once" must be immediately followed by an open parenthesis
(#39) Missing docblock for interface wooflash_userlist
(#39) Closing brace must be on a line by itself
(#41) Duplicate interface name "mod_wooflash\privacy\wooflash_userlist" found; first defined in /var/lib/jenkins/git_repositories/prechecker/mod/wooflash/classes/privacy/provider.php on line 39
(#41) Missing docblock for interface wooflash_userlist
(#41) Closing brace must be on a line by itself
(#44) Missing docblock for class provider
(#55) Expected 1 space before opening brace; found 0
(#70) Expected 1 space before opening brace; found 0
mod/wooflash/classes/test_connection.php
(#19) "require_once" must be immediately followed by an open parenthesis
(#21) Missing @copyright tag
(#21) Missing @license tag
(#25) DocBlock missing a @package tag for class mod_wooflash_test_connection. Expected @package mod_wooflash
(#26) Opening brace should be on the same line as the declaration for class mod_wooflash_test_connection
(#27) Line indented incorrectly; expected at least 4 spaces, found 2
(#34) Line indented incorrectly; expected 4 spaces, found 2
(#35) Line indented incorrectly; expected at least 4 spaces, found 2
(#35) Opening brace should be on the same line as the declaration
(#36) Line indented incorrectly; expected at least 8 spaces, found 4
(#36) Variable "isPingOk" must be all lower-case
(#38) Line indented incorrectly; expected 8 spaces, found 4
(#38) Variable "isPingOk" must be all lower-case
(#39) Line indented incorrectly; expected at least 12 spaces, found 6
(#40) Line indented incorrectly; expected at least 12 spaces, found 8
(#41) Line indented incorrectly; expected at least 12 spaces, found 8
(#42) Line indented incorrectly; expected 8 spaces, found 4
(#43) Line indented incorrectly; expected at least 12 spaces, found 6
(#44) Line indented incorrectly; expected at least 12 spaces, found 8
(#45) Line indented incorrectly; expected at least 12 spaces, found 8
(#46) Line indented incorrectly; expected 8 spaces, found 4
(#47) Line indented incorrectly; expected 4 spaces, found 2
mod/wooflash/classes/wooflash_curl.php
(#1) No one-line description found in phpdocs for docblock of file wooflash_curl.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#27) Missing docblock for class wooflash_curl
mod/wooflash/cli/v3_upgrade.php
(#1) DocBlock missing a @package tag for file v3_upgrade.php. Expected @package mod_wooflash
(#17) Missing @copyright tag
(#28) "require" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#30) "require_once" must be immediately followed by an open parenthesis
(#54) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
mod/wooflash/db/access.php
(#1) No one-line description found in phpdocs for docblock of file access.php
mod/wooflash/db/upgrade.php
(#21) "require_once" must be immediately followed by an open parenthesis
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for function xmldb_wooflash_upgrade
(#24) Opening brace should be on the same line as the declaration
(#27) "require_once" must be immediately followed by an open parenthesis
(#39) Line indented incorrectly; expected at least 12 spaces, found 10
(#40) Line indented incorrectly; expected at least 12 spaces, found 10
(#41) Line indented incorrectly; expected at least 12 spaces, found 10
(#43) Line indented incorrectly; expected at least 12 spaces, found 10
(#68) Variable "regexMatches" must be all lower-case
(#70) Variable "regexMatches" must be all lower-case
(#71) Variable "regexMatches" must be all lower-case
(#72) Variable "eventSlug" must be all lower-case
(#72) Variable "regexMatches" must be all lower-case
(#73) Variable "eventSlug" must be all lower-case
(#74) Variable "eventSlug" must be all lower-case
(#83) Variable "newfieldId" must be all lower-case
(#84) Variable "oldfieldId" must be all lower-case
(#86) Variable "oldfieldId" must be all lower-case
(#86) Variable "newfieldId" must be all lower-case
(#87) Variable "oldfieldId" must be all lower-case
(#88) Usage of ELSEIF not allowed; use ELSE IF instead
(#88) Variable "newfieldId" must be all lower-case
(#89) Variable "newfieldId" must be all lower-case
mod/wooflash/format.php
(#21) Incorrect @package tag for file format.php. Expected mod_wooflash, found qformat_wooflash.
(#28) "require_once" must be immediately followed by an open parenthesis
(#30) Missing docblock for class qformat_wooflash
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
mod/wooflash/grade.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#23) "require_once" must be immediately followed by an open parenthesis
(#32) Short array syntax must be used to define arrays
(#36) Variable "course_context" must not contain underscores.
(#37) Variable "course_context" must not contain underscores.
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
mod/wooflash/index.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file index.php
(#22) "require_once" must be immediately followed by an open parenthesis
(#23) "require_once" must be immediately followed by an open parenthesis
mod/wooflash/lang/en/wooflash.php
(#30) The string key "modulename_help" is not in the correct order, it should be before "modulenameplural"
(#32) The string key "pluginadministration" is not in the correct order, it should be before "pluginname"
(#34) The string key "wooflashintro" is not in the correct order, it should be before "wooflashname"
(#35) The string key "modulenamepluralformatted" is not in the correct order, it should be before "wooflashintro"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) The string key "testconnection" is not in the correct order, it should be before "wooflashsettings"
(#42) The string key "pingOK" is not in the correct order, it should be before "testconnection"
(#43) The string key "pingNOTOK" is not in the correct order, it should be before "pingOK"
(#46) The string key "accesskeyid" is not in the correct order, it should be before "secretaccesskey-description"
(#53) The string key "nowooflash" is not in the correct order, it should be before "showconsentscreen-description"
(#54) The string key "customcompletion" is not in the correct order, it should be before "nowooflash"
(#57) Unexpected comment found. Auto-fixing will not work after this comment
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) The string key "consent-screen:description" is not in the correct order, it should be before "customcompletiongroup"
(#60) The string key "consent-screen:agree" is not in the correct order, it should be before "consent-screen:explanation"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Unexpected comment found. Auto-fixing will not work after this comment
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) The string key "wooflash:view" is not in the correct order, it should be before "wooflashredirect"
(#68) The string key "wooflash:addinstance" is not in the correct order, it should be before "wooflash:view"
(#70) The string key "privacy:metadata:wooflash_server" is not in the correct order, it should be before "wooflash:addinstance"
(#73) The string key "error-noeventid" is not in the correct order, it should be before "privacy:metadata:wooflash_server:userid"
(#74) The string key "error-auth-nosession" is not in the correct order, it should be before "error-noeventid"
(#77) The string key "error-couldnotloadevents" is not in the correct order, it should be before "error-couldnotredirect"
(#79) The string key "error-couldnotauth" is not in the correct order, it should be before "error-couldnotupdatereport"
(#83) The string key "error-invalidtoken" is not in the correct order, it should be before "error-reportdeprecated"
(#84) The string key "error-invalidjoinurl" is not in the correct order, it should be before "error-invalidtoken"
(#86) The string key "error-invalid-callback-url" is not in the correct order, it should be before "error-missingparameters"
mod/wooflash/lang/fr/wooflash.php
(#30) The string key "modulename_help" is not in the correct order, it should be before "modulenameplural"
(#32) The string key "pluginadministration" is not in the correct order, it should be before "pluginname"
(#34) The string key "wooflashintro" is not in the correct order, it should be before "wooflashname"
(#35) The string key "modulenamepluralformatted" is not in the correct order, it should be before "wooflashintro"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) The string key "testconnection" is not in the correct order, it should be before "wooflashsettings"
(#42) The string key "pingOK" is not in the correct order, it should be before "testconnection"
(#43) The string key "pingNOTOK" is not in the correct order, it should be before "pingOK"
(#46) The string key "accesskeyid" is not in the correct order, it should be before "secretaccesskey-description"
(#52) The string key "customcompletion" is not in the correct order, it should be before "nowooflash"
(#55) Unexpected comment found. Auto-fixing will not work after this comment
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) The string key "consent-screen:description" is not in the correct order, it should be before "showconsentscreen-description"
(#60) The string key "consent-screen:agree" is not in the correct order, it should be before "consent-screen:explanation"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Unexpected comment found. Auto-fixing will not work after this comment
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) The string key "wooflash:view" is not in the correct order, it should be before "wooflashredirect"
(#68) The string key "wooflash:addinstance" is not in the correct order, it should be before "wooflash:view"
(#70) The string key "privacy:metadata:wooflash_server" is not in the correct order, it should be before "wooflash:addinstance"
(#73) The string key "error-noeventid" is not in the correct order, it should be before "privacy:metadata:wooflash_server:userid"
(#74) The string key "error-auth-nosession" is not in the correct order, it should be before "error-noeventid"
(#77) The string key "error-couldnotloadevents" is not in the correct order, it should be before "error-couldnotredirect"
(#79) The string key "error-couldnotauth" is not in the correct order, it should be before "error-couldnotupdatereport"
(#81) The string key "error-invalidjoinurl" is not in the correct order, it should be before "error-invalidtoken"
(#84) The string key "error-invalid-callback-url" is not in the correct order, it should be before "error-reportdeprecated"
mod/wooflash/lib.php
(#34) "require_once" must be immediately followed by an open parenthesis
(#35) "require_once" must be immediately followed by an open parenthesis
(#36) "require_once" must be immediately followed by an open parenthesis
(#42) No one-line description found in phpdocs for docblock of function wooflash_supports
(#66) No one-line description found in phpdocs for docblock of function wooflash_delete_instance
(#88) No one-line description found in phpdocs for docblock of function wooflash_update_instance
(#122) No one-line description found in phpdocs for docblock of function wooflash_add_instance
(#147) No one-line description found in phpdocs for docblock of function wooflash_get_instance
(#159) No one-line description found in phpdocs for docblock of function wooflash_get_create_url
(#168) No one-line description found in phpdocs for docblock of function wooflash_get_events_list_url
(#177) No one-line description found in phpdocs for docblock of function wooflash_get_ping_url
(#188) No one-line description found in phpdocs for docblock of function wooflash_generate_token
(#196) No one-line description found in phpdocs for docblock of function wooflash_http_build_query
(#207) No one-line description found in phpdocs for docblock of function wooflash_check_activity_user_access
(#225) No one-line description found in phpdocs for docblock of function wooflash_redirect_auth
(#241) Variable "course_context" must not contain underscores.
(#249) Variable "course_context" must not contain underscores.
(#251) Variable "hasAccess" must be all lower-case
(#253) Variable "data_token" must not contain underscores.
(#255) Variable "hasAccess" must be all lower-case
(#268) Inline comments must end in full-stops, exclamation marks, or question marks
(#271) Variable "hasAccess" must be all lower-case
(#274) Variable "data_token" must not contain underscores.
(#279) Variable "callback_url" must not contain underscores.
(#281) Variable "callback_url" must not contain underscores.
(#287) No one-line description found in phpdocs for docblock of function wooflash_ask_consent_if_not_given
(#287) Variable "redirectUrl" must be all lower-case
(#290) Variable "showConsentScreen" must be all lower-case
(#294) Variable "showConsentScreen" must be all lower-case
(#303) Variable "redirectUrl" must be all lower-case
(#326) Variable "data_token" must not contain underscores.
(#334) Variable "data_token" must not contain underscores.
(#338) Variable "ping_url" must not contain underscores.
(#348) Variable "ping_url" must not contain underscores.
(#356) Variable "response_data" must not contain underscores.
(#357) Variable "response_data" must not contain underscores.
(#364) No one-line description found in phpdocs for docblock of function wooflash_get_role
(#364) Variable "course_context" must not contain underscores.
(#365) Variable "course_context" must not contain underscores.
(#365) Logical operator "and" is prohibited; use "&&" instead
(#365) Variable "course_context" must not contain underscores.
(#377) No one-line description found in phpdocs for docblock of function wooflash_validate_callback_url
(#377) Variable "callback_url" must not contain underscores.
(#378) Variable "callback_url" must not contain underscores.
(#379) Variable "callback_url" must not contain underscores.
(#379) Variable "callback_url" must not contain underscores.
(#381) Variable "callback_url" must not contain underscores.
(#384) Variable "callback_url" must not contain underscores.
(#395) No one-line description found in phpdocs for docblock of function wooflash_update_grade
(#397) "require_once" must be immediately followed by an open parenthesis
(#411) There should be a comma after the last array item in a multi-line array.
(#413) Variable "grade_item" must not contain underscores.
(#414) Variable "grade_item" must not contain underscores.
(#423) Expected "if (...) {\n"; found "if(...) {\n"
(#472) No one-line description found in phpdocs for docblock of function wooflash_get_isotime
(#491) No one-line description found in phpdocs for docblock of function wooflash_frame_view
(#491) Variable "noHtmlBlock" must be all lower-case
(#493) Line exceeds 132 characters; contains 145 characters
(#495) Variable "noHtmlBlock" must be all lower-case
(#520) No one-line description found in phpdocs for docblock of function wooflash_get_completion_state
(#523) Short array syntax must be used to define arrays
(#529) Short array syntax must be used to define arrays
(#551) "require_once" must be immediately followed by an open parenthesis
(#610) Variable "quiz_id" must not contain underscores.
(#610) Expected 1 space before opening brace; found 0
(#614) Variable "quiz_slots" must not contain underscores.
(#614) Variable "quiz_id" must not contain underscores.
(#616) Variable "question_ids" must not contain underscores.
(#620) Variable "quiz_slots" must not contain underscores.
(#623) Variable "question_ids" must not contain underscores.
(#636) Variable "quiz_id" must not contain underscores.
(#636) Expected 1 space before opening brace; found 0
(#665) There should be a comma after the last array item in a multi-line array.
(#665) Variable "quiz_id" must not contain underscores.
(#682) Inline comments must end in full-stops, exclamation marks, or question marks
(#683) Expected "if (...) {\n"; found "if(...) {\n"
(#686) Inline comments must end in full-stops, exclamation marks, or question marks
(#687) Expected "} else {\n"; found "}\n // When Moodle version is >= v4\n else {\n"
(#692) Short array syntax must be used to define arrays
(#713) function name "wooflash_isValidCallbackUrl" must be lower-case letters only
(#713) Variable "callbackUrl" must be all lower-case
(#714) Opening brace should be on the same line as the declaration
(#716) Variable "callbackUrl" must be all lower-case
(#716) Variable "callbackUrl" must be all lower-case
mod/wooflash/locallib.php
(#21) "require_once" must be immediately followed by an open parenthesis
(#22) "require_once" must be immediately followed by an open parenthesis
(#24) Missing @copyright tag
(#24) Missing @license tag
(#30) DocBlock missing a @package tag for function mod_wooflash_v3_upgrade. Expected @package mod_wooflash
(#31) Opening brace should be on the same line as the declaration
(#60) Variable "curl_data_step1" must not contain underscores.
(#61) Variable "curl_data_step1" must not contain underscores.
(#62) Variable "curl_data_step1" must not contain underscores.
(#63) Variable "curl_data_step1" must not contain underscores.
(#66) Variable "curl_data_step1" must not contain underscores.
(#69) Variable "curl_data_step1" must not contain underscores.
(#75) Variable "idsToUsernamesMapping" must be all lower-case
(#83) Line indented incorrectly; expected at least 16 spaces, found 14
(#83) Variable "idsToUsernamesMapping" must be all lower-case
(#87) Variable "idsToUsernamesMapping" must be all lower-case
(#97) Variable "curl_data_step2" must not contain underscores.
(#98) Variable "curl_data_step2" must not contain underscores.
(#99) Variable "curl_data_step2" must not contain underscores.
(#100) Variable "curl_data_step2" must not contain underscores.
(#101) Variable "curl_data_step2" must not contain underscores.
(#104) Variable "curl_data_step2" must not contain underscores.
(#107) Variable "curl_data_step2" must not contain underscores.
mod/wooflash/mod_form.php
(#1) No one-line description found in phpdocs for docblock of file mod_form.php
(#26) "require_once" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#29) Missing docblock for class mod_wooflash_mod_form
(#31) Missing docblock for function definition
(#73) Variable "quizz_db" must not contain underscores.
(#76) Variable "quizz_db" must not contain underscores.
(#76) Variable "quiz_db" must not contain underscores.
(#77) Variable "quiz_db" must not contain underscores.
(#77) Variable "quiz_db" must not contain underscores.
(#94) Variable "eventsListUrl" must be all lower-case
(#99) Variable "data_token" must not contain underscores.
(#107) Variable "curl_data" must not contain underscores.
(#108) Variable "curl_data" must not contain underscores.
(#109) Variable "curl_data" must not contain underscores.
(#110) Variable "curl_data" must not contain underscores.
(#111) Variable "curl_data" must not contain underscores.
(#112) Variable "curl_data" must not contain underscores.
(#113) Variable "curl_data" must not contain underscores.
(#114) Variable "curl_data" must not contain underscores.
(#115) Variable "data_token" must not contain underscores.
(#117) Variable "curl_data" must not contain underscores.
(#125) Variable "eventsListUrl" must be all lower-case
(#125) Variable "curl_data" must not contain underscores.
(#129) Variable "wooflash_events" must not contain underscores.
(#130) Variable "wooflash_events" must not contain underscores.
(#132) Variable "w_event" must not contain underscores.
(#133) Variable "wooflash_events" must not contain underscores.
(#133) Variable "w_event" must not contain underscores.
(#133) Variable "w_event" must not contain underscores.
(#144) Variable "wooflash_events" must not contain underscores.
(#193) No one-line description found in phpdocs for docblock of function completion_rule_enabled
(#200) No one-line description found in phpdocs for docblock of function data_preprocessing
(#200) Variable "default_values" must not contain underscores.
(#201) Variable "default_values" must not contain underscores.
(#203) Variable "default_values" must not contain underscores.
(#204) Variable "default_values" must not contain underscores.
(#206) Variable "default_values" must not contain underscores.
mod/wooflash/report_wooflash_v3.php
(#31) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#38) Variable "accessKeyId" must be all lower-case
(#43) Variable "data_token" must not contain underscores.
(#50) Variable "token_calc" must not contain underscores.
(#50) Variable "data_token" must not contain underscores.
(#52) Variable "token_calc" must not contain underscores.
(#54) Variable "completion_param" must not contain underscores.
(#56) Variable "completion_param" must not contain underscores.
(#58) Variable "completion_param" must not contain underscores.
(#68) Variable "completion_param" must not contain underscores.
mod/wooflash/settings.php
(#1) No one-line description found in phpdocs for docblock of file settings.php
(#27) Variable "defaultBaseUrl" must be all lower-case
(#51) Variable "defaultBaseUrl" must be all lower-case
mod/wooflash/version.php
(#1) No one-line description found in phpdocs for docblock of file version.php
mod/wooflash/view.php
(#1) No one-line description found in phpdocs for docblock of file view.php
(#24) "require_once" must be immediately followed by an open parenthesis
(#25) "require_once" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Short array syntax must be used to define arrays
(#76) Variable "canEdit" must be all lower-case
(#80) Variable "auth_url" must not contain underscores.
(#88) Variable "report_url" must not contain underscores.
(#92) Variable "course_url" must not contain underscores.
(#96) Variable "data_token" must not contain underscores.
(#98) Variable "auth_url" must not contain underscores.
(#99) Variable "canEdit" must be all lower-case
(#100) Variable "course_url" must not contain underscores.
(#102) Variable "report_url" must not contain underscores.
(#107) Variable "data_token" must not contain underscores.
(#109) Variable "data_frame" must not contain underscores.
(#111) Variable "auth_url" must not contain underscores.
(#112) Variable "canEdit" must be all lower-case
(#113) Variable "course_url" must not contain underscores.
(#121) Variable "report_url" must not contain underscores.
(#130) Variable "data_frame" must not contain underscores.
mod/wooflash/wooflash_consent_screen.php
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#26) "require_once" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#31) Variable "showConsentScreen" must be all lower-case
(#33) Variable "hasConsentedQuery" must be all lower-case
(#34) Variable "redirectUrl" must be all lower-case
(#36) Variable "hasConsentedQuery" must be all lower-case
(#37) Variable "hasConsentedQuery" must be all lower-case
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "redirectUrl" must be all lower-case
(#45) Variable "redirectUrl" must be all lower-case
(#55) Variable "baseUrl" must be all lower-case
(#56) Variable "redirectUrl" must be all lower-case
(#58) Variable "noConsentUrl" must be all lower-case
(#58) Variable "baseUrl" must be all lower-case
(#59) Variable "yesConsentUrl" must be all lower-case
(#59) Variable "baseUrl" must be all lower-case
(#73) Missing docblock for file wooflash_consent_screen.php
(#74) Missing docblock for file wooflash_consent_screen.php
(#76) Missing docblock for file wooflash_consent_screen.php
(#76) Variable "noConsentUrl" must be all lower-case
(#76) Missing docblock for file wooflash_consent_screen.php
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#76) Line exceeds 132 characters; contains 133 characters
(#77) Missing docblock for file wooflash_consent_screen.php
(#77) Variable "yesConsentUrl" must be all lower-case
(#77) Missing docblock for file wooflash_consent_screen.php

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

(21 errors, 0 warnings)

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

mod/wooflash/backup/moodle2/backup_wooflash_activity_task.class.php
(#48) Phpdocs for function backup_wooflash_activity_task::encode_content_links has incomplete parameters list
mod/wooflash/backup/moodle2/restore_wooflash_activity_task.class.php
(#77) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#79) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#96) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#98) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/wooflash/classes/privacy/provider.php
(#52) Phpdocs for function provider::get_metadata has incomplete parameters list
mod/wooflash/format.php
(#31) Phpdocs for function qformat_wooflash::exportprocess has incomplete parameters list
mod/wooflash/lib.php
(#39) Phpdocs for function wooflash_supports has incomplete parameters list
(#84) Phpdocs for function wooflash_update_instance has incomplete parameters list
(#118) Phpdocs for function wooflash_add_instance has incomplete parameters list
(#184) Phpdocs for function wooflash_generate_token has incomplete parameters list
(#193) Phpdocs for function wooflash_http_build_query has incomplete parameters list
(#222) Phpdocs for function wooflash_redirect_auth has incomplete parameters list
(#284) Phpdocs for function wooflash_ask_consent_if_not_given has incomplete parameters list
(#361) Phpdocs for function wooflash_get_role has incomplete parameters list
(#388) Phpdocs for function wooflash_update_grade has incomplete parameters list
(#513) Phpdocs for function wooflash_get_completion_state has incomplete parameters list
(#543) Phpdocs for function wooflash_grade_item_update has incomplete parameters list
(#606) Phpdocs for function wooflash_load_questions_before_v4 has incomplete parameters list
(#632) Phpdocs for function wooflash_load_questions_for_v4 has incomplete parameters list
(#674) Phpdocs for function wooflash_get_questions_quiz has incomplete parameters list

Update savepoints problems

(2 errors, 0 warnings)

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

mod/wooflash/db/upgrade.php
Detected more 'if' blocks (2) than 'savepoint' calls (1)
version 2023080900 is missing corresponding savepoint call

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, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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