Prechecker results: error


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

(317 errors, 78 warnings)

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

mod/labnbook/classes/ar/labnbook.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) This comment is 58% valid code; is this commented out code?
(#16) Opening brace should be on the same line as the declaration for class labnbook
(#22) Member variable "labnbook_missionid" must not contain underscores.
(#23) Member variable "labnbook_teamconfigid" must not contain underscores.
(#26) Opening brace should be on the same line as the declaration
(#35) Opening brace should be on the same line as the declaration
mod/labnbook/classes/fetch/environment.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#14) Opening brace should be on the same line as the declaration for class environment
(#33) Member variable "token_exp" must not contain underscores.
(#35) Public method name "environment::createPayload" must be in lower-case letters only
(#36) Opening brace should be on the same line as the declaration
mod/labnbook/classes/fetch/fetcher.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Opening brace should be on the same line as the declaration for class fetcher
(#19) Inline comments must start with a capital letter, digit or 3-dots sequence
(#19) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) Member variable "baseUrl" must be all lower-case
(#39) Member variable "lastError" must be all lower-case
(#41) Variable "baseUrl" must be all lower-case
(#42) Opening brace should be on the same line as the declaration
(#46) Variable "baseUrl" must be all lower-case
(#54) Public method name "fetcher::getLastError" must be in lower-case letters only
(#55) Opening brace should be on the same line as the declaration
(#67) Variable "urlPath" must be all lower-case
(#68) Opening brace should be on the same line as the declaration
(#73) Variable "urlPath" must be all lower-case
(#77) Variable "urlPath" must be all lower-case
(#91) The use of function error_log() is forbidden; use debugging() instead
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#96) Variable "contentType" must be all lower-case
(#98) Variable "contentType" must be all lower-case
(#104) Public method name "fetcher::createUrl" must be in lower-case letters only
(#104) Variable "urlPath" must be all lower-case
(#105) Opening brace should be on the same line as the declaration
(#106) Variable "urlPath" must be all lower-case
(#117) Public method name "fetcher::getJsFetch" must be in lower-case letters only
(#117) Variable "urlPath" must be all lower-case
(#118) Opening brace should be on the same line as the declaration
(#119) Variable "urlPath" must be all lower-case
(#121) Variable "urlPath" must be all lower-case
(#122) Inline comments must start with a capital letter, digit or 3-dots sequence
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Public method name "fetcher::encodeJwtToken" must be in lower-case letters only
(#138) Variable "urlPath" must be all lower-case
(#139) Opening brace should be on the same line as the declaration
(#140) Variable "jwtPayload" must be all lower-case
(#142) Variable "jwtPayload" must be all lower-case
(#144) Variable "jwtPayload" must be all lower-case
(#144) Variable "urlPath" must be all lower-case
(#145) Variable "jwtPayload" must be all lower-case
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Variable "jwtPayload" must be all lower-case
(#154) Protected method name "fetcher::validateResponse" must be in lower-case letters only
(#155) Opening brace should be on the same line as the declaration
(#160) Variable "responseCode" must be all lower-case
(#161) Variable "responseCode" must be all lower-case
(#166) Variable "responseCode" must be all lower-case
(#167) Variable "responseCode" must be all lower-case
mod/labnbook/classes/fetch/institution.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#14) Opening brace should be on the same line as the declaration for class institution
(#24) Public method name "institution::loginUser" must be in lower-case letters only
(#25) Opening brace should be on the same line as the declaration
(#39) Public method name "institution::updateInfo" must be in lower-case letters only
(#40) Opening brace should be on the same line as the declaration
(#57) Public method name "institution::getBindingTokenForRedirect" must be in lower-case letters only
(#57) Variable "returnUrl" must be all lower-case
(#58) Opening brace should be on the same line as the declaration
(#66) Variable "returnUrl" must be all lower-case
(#77) Protected method name "institution::getSigningKey" must be in lower-case letters only
(#78) Opening brace should be on the same line as the declaration
(#87) Public method name "institution::deleteTeamconfig" must be in lower-case letters only
(#87) Variable "teamconfigId" must be all lower-case
(#88) Opening brace should be on the same line as the declaration
(#89) Variable "teamconfigId" must be all lower-case
mod/labnbook/classes/fetch/moodlefetcher.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#16) Opening brace should be on the same line as the declaration for class moodlefetcher
(#23) Opening brace should be on the same line as the declaration
(#32) Public method name "moodlefetcher::getRedirectUrl" must be in lower-case letters only
(#33) Opening brace should be on the same line as the declaration
(#38) Public method name "moodlefetcher::getLastError" must be in lower-case letters only
(#39) Opening brace should be on the same line as the declaration
(#43) Protected method name "moodlefetcher::getEnvironment" must be in lower-case letters only
(#44) Opening brace should be on the same line as the declaration
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Opening brace should be on the same line as the declaration
(#75) Protected method name "moodlefetcher::fetchIgnore" must be in lower-case letters only
(#75) Variable "urlPath" must be all lower-case
(#76) Opening brace should be on the same line as the declaration
(#78) Variable "urlPath" must be all lower-case
(#85) Protected method name "moodlefetcher::getSigningKey" must be in lower-case letters only
mod/labnbook/classes/fetch/user.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#14) Opening brace should be on the same line as the declaration for class user
(#22) Public method name "user::isAuthenticated" must be in lower-case letters only
(#23) Opening brace should be on the same line as the declaration
(#32) Public method name "user::getMissions" must be in lower-case letters only
(#33) Opening brace should be on the same line as the declaration
(#40) Public method name "user::getTeamconfig" must be in lower-case letters only
(#40) Variable "teamconfigId" must be all lower-case
(#41) Opening brace should be on the same line as the declaration
(#42) Variable "teamconfigId" must be all lower-case
(#48) Public method name "user::getNumStartedReports" must be in lower-case letters only
(#48) Variable "teamconfigId" must be all lower-case
(#49) Opening brace should be on the same line as the declaration
(#50) Variable "teamconfigId" must be all lower-case
(#56) Public method name "user::getNumSubmittedReports" must be in lower-case letters only
(#56) Variable "teamconfigId" must be all lower-case
(#57) Opening brace should be on the same line as the declaration
(#58) Variable "teamconfigId" must be all lower-case
(#66) Public method name "user::grantMissionsAccess" must be in lower-case letters only
(#66) Variable "teamconfigIds" must be all lower-case
(#67) Opening brace should be on the same line as the declaration
(#72) Variable "teamconfigIds" must be all lower-case
(#87) Public method name "user::useMission" must be in lower-case letters only
(#87) Variable "missionId" must be all lower-case
(#87) Variable "courseId" must be all lower-case
(#87) Variable "groupId" must be all lower-case
(#87) Line exceeds 132 characters; contains 153 characters
(#88) Opening brace should be on the same line as the declaration
(#92) Variable "missionId" must be all lower-case
(#94) Variable "courseId" must be all lower-case
(#96) Variable "groupId" must be all lower-case
(#114) Public method name "user::updateMissionUse" must be in lower-case letters only
(#114) Variable "missionId" must be all lower-case
(#114) Variable "courseId" must be all lower-case
(#114) Variable "groupId" must be all lower-case
(#114) Line exceeds 132 characters; contains 133 characters
(#115) Opening brace should be on the same line as the declaration
(#119) Variable "missionId" must be all lower-case
(#121) Variable "courseId" must be all lower-case
(#123) Variable "groupId" must be all lower-case
(#137) Public method name "user::updateParticipants" must be in lower-case letters only
(#137) Variable "courseId" must be all lower-case
(#137) Variable "groupId" must be all lower-case
(#138) Opening brace should be on the same line as the declaration
(#144) Variable "courseId" must be all lower-case
(#145) Variable "groupId" must be all lower-case
(#161) Public method name "user::getJsMissions" must be in lower-case letters only
(#162) Opening brace should be on the same line as the declaration
(#181) Public method name "user::getReportTokenForRedirect" must be in lower-case letters only
(#181) Variable "teamconfigId" must be all lower-case
(#182) Opening brace should be on the same line as the declaration
(#184) Variable "teamconfigId" must be all lower-case
(#196) Public method name "user::getReportsTokenForRedirect" must be in lower-case letters only
(#196) Variable "teamconfigId" must be all lower-case
(#197) Opening brace should be on the same line as the declaration
(#199) Variable "teamconfigId" must be all lower-case
(#211) Public method name "user::getMissionEditTokenForRedirect" must be in lower-case letters only
(#211) Variable "missionId" must be all lower-case
(#212) Opening brace should be on the same line as the declaration
(#214) Variable "missionId" must be all lower-case
(#227) Public method name "user::getClassEditTokenForRedirect" must be in lower-case letters only
(#227) Variable "id_team_config" must not contain underscores.
(#228) Opening brace should be on the same line as the declaration
(#230) Variable "id_team_config" must not contain underscores.
(#242) Public method name "user::getTeamingTokenForRedirect" must be in lower-case letters only
(#242) Variable "teamconfigId" must be all lower-case
(#243) Opening brace should be on the same line as the declaration
(#245) Variable "teamconfigId" must be all lower-case
(#257) Public method name "user::getMissionTokenForRedirect" must be in lower-case letters only
(#258) Opening brace should be on the same line as the declaration
(#265) Protected method name "user::getEnvironment" must be in lower-case letters only
(#266) Opening brace should be on the same line as the declaration
(#277) Protected method name "user::getSigningKey" must be in lower-case letters only
(#278) Opening brace should be on the same line as the declaration
mod/labnbook/classes/form/select_dynamic.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#10) "require_once" must be immediately followed by an open parenthesis
(#11) "require_once" must be immediately followed by an open parenthesis
(#19) Opening brace should be on the same line as the declaration for class select_dynamic
(#27) Public method name "select_dynamic::exportValue" must be in lower-case letters only
(#27) Variable "submitValues" must be all lower-case
(#28) Opening brace should be on the same line as the declaration
(#33) Variable "submitValues" must be all lower-case
mod/labnbook/classes/local/helper.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#12) This comment is 58% valid code; is this commented out code?
(#18) Opening brace should be on the same line as the declaration for class helper
(#19) Class constants must be uppercase; expected LOCALURLPREFIX but found localUrlPrefix
(#27) Public method name "helper::requireLabnbookAuthentication" must be in lower-case letters only
(#28) Opening brace should be on the same line as the declaration
(#33) Variable "institutionFetcher" must be all lower-case
(#34) Variable "institutionFetcher" must be all lower-case
(#61) Public method name "helper::grantTeacherAccess" must be in lower-case letters only
(#61) Variable "courseId" must be all lower-case
(#62) Opening brace should be on the same line as the declaration
(#64) Variable "courseId" must be all lower-case
(#70) Variable "courseId" must be all lower-case
(#72) Variable "userFetcher" must be all lower-case
(#73) Variable "userFetcher" must be all lower-case
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Variable "courseId" must be all lower-case
(#82) Public method name "helper::getActivityLocalUrlForRedirect" must be in lower-case letters only
(#82) Variable "is_teacher" must not contain underscores.
(#83) Opening brace should be on the same line as the declaration
(#84) Variable "is_teacher" must not contain underscores.
mod/labnbook/classes/privacy/provider.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#19) Opening brace should be on the same line as the declaration for class provider
(#26) Opening brace should be on the same line as the declaration
mod/labnbook/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/labnbook/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#19) Opening brace should be on the same line as the declaration
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
mod/labnbook/grade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
mod/labnbook/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#44) Usage of ELSEIF not allowed; use ELSE IF instead
mod/labnbook/lang/en/labnbook.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
mod/labnbook/lang/fr/labnbook.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
mod/labnbook/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#16) This comment is 50% valid code; is this commented out code?
(#30) Opening brace should be on the same line as the declaration
(#32) No space found before comment text; expected "// FEATURE_BACKUP_MOODLE2," but found "//FEATURE_BACKUP_MOODLE2,"
(#33) No space found before comment text; expected "// FEATURE_GRADE_HAS_GRADE," but found "//FEATURE_GRADE_HAS_GRADE,"
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) No space found before comment text; expected "// FEATURE_GRADE_OUTCOMES," but found "//FEATURE_GRADE_OUTCOMES,"
(#49) Opening brace should be on the same line as the declaration
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Variable "display_name" must not contain underscores.
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Variable "display_name" must not contain underscores.
(#75) Opening brace should be on the same line as the declaration
(#84) Variable "teamConfig" must be all lower-case
(#95) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#100) Variable "teamConfig" must be all lower-case
(#101) Variable "teamConfig" must be all lower-case
(#120) Opening brace should be on the same line as the declaration
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Variable "all_users" must not contain underscores.
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Line exceeds 132 characters; contains 143 characters
(#140) Variable "all_users" must not contain underscores.
(#154) Opening brace should be on the same line as the declaration
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Variable "old_instance" must not contain underscores.
(#162) Variable "old_instance" must not contain underscores.
(#179) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) Opening brace should be on the same line as the declaration
(#224) Opening brace should be on the same line as the declaration
(#243) This comment is 47% valid code; is this commented out code?
(#265) Opening brace should be on the same line as the declaration
(#283) Opening brace should be on the same line as the declaration
(#286) Logical operator "and" is prohibited; use "&&" instead
(#302) Opening brace should be on the same line as the declaration
(#314) Usage of ELSEIF not allowed; use ELSE IF instead
(#334) Opening brace should be on the same line as the declaration
(#359) Opening brace should be on the same line as the declaration
(#379) Opening brace should be on the same line as the declaration
(#392) Opening brace should be on the same line as the declaration
mod/labnbook/mod_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#17) Inline comments must start with a capital letter, digit or 3-dots sequence
(#17) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Opening brace should be on the same line as the declaration for class mod_labnbook_mod_form
(#33) Opening brace should be on the same line as the declaration
(#37) Variable "creation_mode" must not contain underscores.
(#38) Variable "creation_mode" must not contain underscores.
(#43) Variable "createMissionUrl" must be all lower-case
(#48) Variable "createMissionUrl" must be all lower-case
(#54) Variable "creation_mode" must not contain underscores.
(#69) Line exceeds 132 characters; contains 137 characters
(#70) Inline comments must start with a capital letter, digit or 3-dots sequence
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Variable "dynamicSelect" must be all lower-case
(#81) Variable "dynamicSelect" must be all lower-case
(#85) Variable "fetchMissions" must be all lower-case
(#107) Variable "fetchMissions" must be all lower-case
(#169) Whitespace found at end of line within string
(#183) Variable "group_options" must not contain underscores.
(#184) Variable "group_options" must not contain underscores.
(#186) Variable "group_options" must not contain underscores.
(#189) Variable "group_options" must not contain underscores.
(#191) Variable "group_options" must not contain underscores.
(#210) Inline comments must end in full-stops, exclamation marks, or question marks
(#237) Variable "default_values" must not contain underscores.
(#237) Expected 1 space before opening brace; found 0
(#238) Variable "default_values" must not contain underscores.
(#240) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) Variable "default_values" must not contain underscores.
(#242) Variable "default_values" must not contain underscores.
(#243) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) Variable "default_values" must not contain underscores.
(#247) Variable "default_values" must not contain underscores.
(#247) Expected 1 space before "="; 0 found
(#257) Opening brace should be on the same line as the declaration
(#259) Empty IF statement detected
(#260) Inline comments must start with a capital letter, digit or 3-dots sequence
(#260) This comment is 78% valid code; is this commented out code?
(#260) No space found before comment text; expected "// $this->_form->freeze('labnbook_missionid');" but found "//$this->_form->freeze('labnbook_missionid');"
(#264) Private method name "mod_labnbook_mod_form::addInputInt" must be in lower-case letters only
(#264) Variable "err_msg" must not contain underscores.
(#265) Opening brace should be on the same line as the declaration
(#276) Variable "err_msg" must not contain underscores.
mod/labnbook/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/labnbook/user-binding.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) "require_once" must be immediately followed by an open parenthesis
(#17) Variable "returnUrl" must be all lower-case
(#41) Variable "fetchInstitution" must be all lower-case
(#43) Variable "isTeacher" must be all lower-case
(#44) Variable "isTeacher" must be all lower-case
(#46) Variable "fetchInstitution" must be all lower-case
(#47) Variable "returnUrl" must be all lower-case
(#48) Variable "actual_link" must not contain underscores.
(#48) Variable "returnUrl" must be all lower-case
(#50) Variable "actual_link" must not contain underscores.
(#52) Expected 1 space before "="; 0 found
(#52) Expected 1 space after "="; 0 found
(#52) Variable "fetchInstitution" must be all lower-case
(#52) Variable "actual_link" must not contain underscores.
(#55) Variable "templateData" must be all lower-case
(#58) Variable "templateData" must be all lower-case
mod/labnbook/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#9) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#16) This comment is 58% valid code; is this commented out code?
(#16) Perl-style comments are not allowed; use "// Comment." instead
mod/labnbook/view.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) This comment is 58% valid code; is this commented out code?
(#18) function name "renderAndDie" must be lower-case letters only
(#18) Variable "templateName" must be all lower-case
(#18) Variable "templateData" must be all lower-case
(#19) Opening brace should be on the same line as the declaration
(#21) This comment is 50% valid code; is this commented out code?
(#28) Variable "templateName" must be all lower-case
(#28) Variable "templateData" must be all lower-case
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Usage of ELSEIF not allowed; use ELSE IF instead
(#50) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#52) This comment is 55% valid code; is this commented out code?
(#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
(#60) Variable "isTeacher" must be all lower-case
(#64) Variable "templateData" must be all lower-case
(#66) Expected 1 space after "=>"; 2 found
(#68) Variable "isTeacher" must be all lower-case
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Variable "templateData" must be all lower-case
(#75) Variable "templateData" must be all lower-case
(#76) Variable "templateData" must be all lower-case
(#80) Variable "isTeacher" must be all lower-case
(#84) This comment is 64% valid code; is this commented out code?
(#95) Variable "templateData" must be all lower-case
(#96) Variable "isTeacher" must be all lower-case
(#99) Variable "participants_linked_count" must not contain underscores.
(#100) Variable "templateData" must be all lower-case
(#100) Variable "participants_linked_count" must not contain underscores.
(#103) Inline comments must start with a capital letter, digit or 3-dots sequence
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Variable "templateName" must be all lower-case
(#105) Variable "templateData" must be all lower-case
(#106) Variable "templateData" must be all lower-case
(#107) Variable "templateData" must be all lower-case
(#108) Variable "templateData" must be all lower-case
(#109) Variable "templateData" must be all lower-case
(#109) Line exceeds 132 characters; contains 173 characters
(#111) Variable "templateData" must be all lower-case
(#111) Line exceeds 132 characters; contains 135 characters
(#113) Variable "templateData" must be all lower-case
(#115) Variable "templateData" must be all lower-case
(#116) Variable "templateData" must be all lower-case
(#117) Variable "templateData" must be all lower-case
(#119) Inline comments must start with a capital letter, digit or 3-dots sequence
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Variable "templateName" must be all lower-case
(#121) Variable "templateData" must be all lower-case
(#123) Variable "templateName" must be all lower-case
(#123) Variable "templateData" must be all lower-case

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

(98 errors, 26 warnings)

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

mod/labnbook/classes/ar/labnbook.php
(#12) Package is not specified for class labnbook. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#25) Function labnbook::__construct is not documented
(#34) Function labnbook::find is not documented
(#17) Variable labnbook::$id is not documented
(#18) Variable labnbook::$course is not documented
(#19) Variable labnbook::$name is not documented
(#20) Variable labnbook::$intro is not documented
(#21) Variable labnbook::$introformat is not documented
(#22) Variable labnbook::$labnbook_missionid is not documented
(#23) Variable labnbook::$labnbook_teamconfigid is not documented
(#3) No one-line description found in phpdocs for file
mod/labnbook/classes/fetch/environment.php
(#10) Package is not specified for class environment. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#35) Function environment::createPayload is not documented
(#3) No one-line description found in phpdocs for file
mod/labnbook/classes/fetch/fetcher.php
(#12) Package is not specified for class fetcher. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#41) Function fetcher::__construct is not documented
(#104) Function fetcher::createUrl is not documented
(#138) Function fetcher::encodeJwtToken is not documented
(#19) Constant fetcher::TIMEOUT is not documented
(#3) No one-line description found in phpdocs for file
(#51) There is no description in phpdocs for function getLastError
(#149) There is no description in phpdocs for function validateResponse
mod/labnbook/classes/fetch/institution.php
(#10) Package is not specified for class institution. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#77) Function institution::getSigningKey is not documented
(#15) Constant institution::OK is not documented
(#16) Constant institution::ERROR_NETWORK is not documented
(#17) Constant institution::ERROR_TOKEN_NOTVALID is not documented
(#18) Constant institution::ERROR_LOGIN_UNKNOWN is not documented
(#19) Constant institution::ERROR_CREATION_FAILED is not documented
(#3) No one-line description found in phpdocs for file
(#21) There is no description in phpdocs for function loginUser
(#83) Phpdocs for function institution::deleteTeamconfig has incomplete parameters list
mod/labnbook/classes/fetch/moodlefetcher.php
(#10) Package is not specified for class moodlefetcher. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#22) Function moodlefetcher::__construct is not documented
(#32) Function moodlefetcher::getRedirectUrl is not documented
(#38) Function moodlefetcher::getLastError is not documented
(#43) Function moodlefetcher::getEnvironment is not documented
(#53) Function moodlefetcher::fetch is not documented
(#85) Function moodlefetcher::getSigningKey is not documented
(#3) No one-line description found in phpdocs for file
(#10) No one-line description found in phpdocs for class moodlefetcher
mod/labnbook/classes/fetch/user.php
(#10) Package is not specified for class user. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#265) Function user::getEnvironment is not documented
(#277) Function user::getSigningKey is not documented
(#15) Constant user::ERROR_TOKEN_NOTVALID is not documented
(#16) Constant user::ERROR_LOGIN_UNKNOWN is not documented
(#17) Constant user::ERROR_CREATION_FAILED is not documented
(#3) No one-line description found in phpdocs for file
(#29) There is no description in phpdocs for function getMissions
(#37) There is no description in phpdocs for function getTeamconfig
(#45) There is no description in phpdocs for function getNumStartedReports
(#53) There is no description in phpdocs for function getNumSubmittedReports
(#37) Phpdocs for function user::getTeamconfig has incomplete parameters list
(#45) Phpdocs for function user::getNumStartedReports has incomplete parameters list
(#53) Phpdocs for function user::getNumSubmittedReports has incomplete parameters list
(#80) Phpdocs for function user::useMission has incomplete parameters list
(#132) Phpdocs for function user::updateParticipants has incomplete parameters list
(#207) Phpdocs for function user::getMissionEditTokenForRedirect has incomplete parameters list
(#222) Phpdocs for function user::getClassEditTokenForRedirect has incomplete parameters list
(#253) Phpdocs for function user::getMissionTokenForRedirect has incomplete parameters list
mod/labnbook/classes/form/select_dynamic.php
(#13) Package is not specified for class select_dynamic. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#13) No one-line description found in phpdocs for class select_dynamic
mod/labnbook/classes/local/helper.php
(#14) Package is not specified for class helper. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#82) Function helper::getActivityLocalUrlForRedirect is not documented
(#19) Constant helper::localUrlPrefix is not documented
(#3) No one-line description found in phpdocs for file
(#20) Phpdocs for function helper::requireLabnbookAuthentication has incomplete parameters list
(#24) Not recommended phpdocs tag @global used
mod/labnbook/classes/privacy/provider.php
(#15) Package is not specified for class provider. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#4) Inline phpdocs tag {@link \mod_labnbook\privacy\provider} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/labnbook/db/access.php
(#2) Empty line found after PHP open tag
mod/labnbook/db/upgrade.php
(#12) Package is not specified for function xmldb_labnbook_upgrade. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
mod/labnbook/grade.php
(#2) Empty line found after PHP open tag
mod/labnbook/index.php
(#2) Empty line found after PHP open tag
mod/labnbook/lang/en/labnbook.php
(#2) Empty line found after PHP open tag
mod/labnbook/lang/fr/labnbook.php
(#2) Empty line found after PHP open tag
mod/labnbook/lib.php
(#18) Package is not specified for function mod_labnbook_get_string_plural. It is also not specified in file-level phpdocs
(#23) Package is not specified for function labnbook_supports. It is also not specified in file-level phpdocs
(#42) Package is not specified for function mod_labnbook_get_activity_names. It is also not specified in file-level phpdocs
(#63) Package is not specified for function labnbook_add_instance. It is also not specified in file-level phpdocs
(#114) Package is not specified for function mod_labnbook_get_end_date. It is also not specified in file-level phpdocs
(#131) Package is not specified for function get_participants_ids. It is also not specified in file-level phpdocs
(#134) Package is not specified for function participants_to_id. It is also not specified in file-level phpdocs
(#143) Package is not specified for function labnbook_update_instance. It is also not specified in file-level phpdocs
(#186) Package is not specified for function labnbook_delete_instance. It is also not specified in file-level phpdocs
(#213) Package is not specified for function labnbook_get_coursemodule_info. It is also not specified in file-level phpdocs
(#254) Package is not specified for function labnbook_scale_used. It is also not specified in file-level phpdocs
(#274) Package is not specified for function labnbook_scale_used_anywhere. It is also not specified in file-level phpdocs
(#292) Package is not specified for function labnbook_grade_item_update. It is also not specified in file-level phpdocs
(#327) Package is not specified for function labnbook_grade_item_delete. It is also not specified in file-level phpdocs
(#350) Package is not specified for function labnbook_update_grades. It is also not specified in file-level phpdocs
(#368) Package is not specified for function labnbook_extend_navigation. It is also not specified in file-level phpdocs
(#382) Package is not specified for function labnbook_extend_settings_navigation. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#18) Function mod_labnbook_get_string_plural is not documented
(#131) Function get_participants_ids is not documented
(#134) Function participants_to_id is not documented
(#114) There is no description in phpdocs for function mod_labnbook_get_end_date
(#218) Inline phpdocs tag {@link get_array_of_activities()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#295) Inline phpdocs tag {@link grade_update_mod_grades()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#353) Inline phpdocs tag {@link grade_update_mod_grades()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#388) Inline phpdocs tag {@link settings_navigation} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#389) Inline phpdocs tag {@link navigation_node} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/labnbook/mod_form.php
(#21) Package is not specified for class mod_labnbook_mod_form. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#264) Function mod_labnbook_mod_form::addInputInt is not documented
mod/labnbook/settings.php
(#2) Empty line found after PHP open tag
mod/labnbook/user-binding.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
mod/labnbook/version.php
(#2) Empty line found after PHP open tag
mod/labnbook/view.php
(#18) Package is not specified for function renderAndDie. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#18) Function renderAndDie is not documented

Update savepoints problems

(4 errors, 0 warnings)

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

mod/labnbook/db/upgrade.php
Detected more 'if' blocks (3) than 'savepoint' calls (0)
version 2021010500 is missing corresponding savepoint call
version 2021051900 is missing corresponding savepoint call
version 2021120118 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, 13 warnings)

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

mod/labnbook/templates/view_bind.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 15: No “p” element in scope but a “p” end tag seen. (</ul> </p> <)
(#1) HTML Validation error, line 17: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (> <a onclick="window.open('','_blank');window.history.back()" href=#" class)
(#1) HTML Validation error, line 17: Bad value “#"” for attribute “href” on element “a”: Illegal character in fragment: “"” is not allowed. ()" href=#" class="btn btn-primary btn-lg">((bind)
mod/labnbook/templates/view_error.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (ron"> <h2></h2>)
(#1) HTML Validation info, line 5: Empty heading. (/h2> <h3 class="alert alert-danger"> )
mod/labnbook/templates/view_student.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (ron"> <h2></h2>)
mod/labnbook/templates/view_teacher.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (tion> <h2></h2>)
(#1) HTML Validation info, line 4: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (</h2> <br/><p><st)
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (</ul> <br/><p><st)

Gherkin .feature problems

(0 errors, 0 warnings)

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