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

(280 errors, 44 warnings)

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

local/webuntis/classes/lessonmap.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Variable "TENANT" must be all lower-case
(#42) Variable "TENANT" must be all lower-case
(#43) Expected 1 space after "="; 2 found
(#51) Variable "TENANT" must be all lower-case
(#68) Variable "TENANT" must be all lower-case
(#73) Variable "USERMAP" must be all lower-case
(#74) Variable "USERMAP" must be all lower-case
(#83) Variable "TENANT" must be all lower-case
(#86) Variable "TENANT" must be all lower-case
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Variable "TENANT" must be all lower-case
(#186) Variable "TENANT" must be all lower-case
(#188) Variable "TENANT" must be all lower-case
(#195) Variable "TENANT" must be all lower-case
(#199) Variable "TENANT" must be all lower-case
(#203) Inline comments must start with a capital letter, digit or 3-dots sequence
(#203) Inline comments must end in full-stops, exclamation marks, or question marks
(#203) This comment is 64% valid code; is this commented out code?
(#203) No space found before comment text; expected "// for ($a = 0; $a < count($this->lessonmap[self::get_lesson_id()]); $a++) {" but found "//for ($a = 0; $a < count($this->lessonmap[self::get_lesson_id()]); $a++) {"
(#205) Inline comments must start with a capital letter, digit or 3-dots sequence
(#205) This comment is 78% valid code; is this commented out code?
(#205) No space found before comment text; expected "// $this->lessonmap[$a]->courseid;" but found "//$this->lessonmap[$a]->courseid;"
(#238) Variable "TENANT" must be all lower-case
(#243) Variable "TENANT" must be all lower-case
(#244) Variable "TENANT" must be all lower-case
(#254) Variable "lesson_id" must not contain underscores.
(#255) Variable "TENANT" must be all lower-case
(#255) Variable "USERMAP" must be all lower-case
(#256) Variable "USERMAP" must be all lower-case
(#257) Inline control structures are not allowed
(#258) Variable "TENANT" must be all lower-case
(#259) Variable "TENANT" must be all lower-case
(#270) The use of function print_r() is forbidden
(#278) The use of function print_r() is forbidden
(#291) Variable "TENANT" must be all lower-case
(#299) Variable "TENANT" must be all lower-case
(#340) Variable "TENANT" must be all lower-case
(#353) Variable "TENANT" must be all lower-case
(#354) Variable "TENANT" must be all lower-case
(#356) Variable "TENANT" must be all lower-case
(#357) Variable "TENANT" must be all lower-case
(#359) Variable "TENANT" must be all lower-case
(#360) Inline comments must start with a capital letter, digit or 3-dots sequence
(#362) Variable "TENANT" must be all lower-case
(#371) Line exceeds 132 characters; contains 146 characters
(#375) Usage of ELSEIF not allowed; use ELSE IF instead
local/webuntis/classes/locallib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Member variable "preserved_caches" must not contain underscores.
(#51) Variable "preserved_caches" must not contain underscores.
(#52) Variable "preserved_caches" must not contain underscores.
(#54) Variable "preserved_caches" must not contain underscores.
(#69) Expected "if (...) {\n"; found "if (...){\n"
(#75) Commas (,) must be followed by white space.
(#83) Variable "TENANT" must be all lower-case
(#87) Variable "preserved_caches" must not contain underscores.
(#89) Variable "preserved_caches" must not contain underscores.
(#97) Variable "preserved_caches" must not contain underscores.
(#98) Inline control structures are not allowed
(#98) Variable "TENANT" must be all lower-case
(#111) The use of function print_r() is forbidden
(#111) Variable "preserved_caches" must not contain underscores.
(#148) Inline comments must start with a capital letter, digit or 3-dots sequence
(#148) This comment is 57% valid code; is this commented out code?
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#165) Inline comments must start with a capital letter, digit or 3-dots sequence
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) Inline control structures are not allowed
(#171) Inline comments must start with a capital letter, digit or 3-dots sequence
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Inline control structures are not allowed
(#221) Variable "http_status_codes" must not contain underscores.
(#297) Variable "http_status_codes" must not contain underscores.
(#298) Variable "http_status_codes" must not contain underscores.
local/webuntis/classes/orgmap.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Member variable "orgmap_connected" must not contain underscores.
(#57) Variable "orgmap_connected" must not contain underscores.
(#58) Variable "orgmap_connected" must not contain underscores.
(#60) Variable "orgmap_connected" must not contain underscores.
(#63) Variable "orgmap_connected" must not contain underscores.
(#66) Variable "orgmap_connected" must not contain underscores.
(#73) Variable "TENANT" must be all lower-case
(#73) Variable "USERMAP" must be all lower-case
(#74) Variable "TENANT" must be all lower-case
(#76) Usage of ELSEIF not allowed; use ELSE IF instead
(#77) Variable "TENANT" must be all lower-case
(#81) Variable "orgmap_connected" must not contain underscores.
(#81) Variable "USERMAP" must be all lower-case
(#103) Variable "TENANT" must be all lower-case
(#104) Variable "TENANT" must be all lower-case
(#110) Variable "TENANT" must be all lower-case
(#116) Variable "TENANT" must be all lower-case
(#124) Variable "TENANT" must be all lower-case
(#125) Variable "TENANT" must be all lower-case
(#130) Variable "TENANT" must be all lower-case
(#145) Variable "TENANT" must be all lower-case
(#146) Variable "TENANT" must be all lower-case
local/webuntis/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Line exceeds 132 characters; contains 136 characters
local/webuntis/classes/tenant.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Variable "ORGMAP" must be all lower-case
(#36) Variable "TENANT" must be all lower-case
(#36) Variable "USERMAP" must be all lower-case
(#44) Variable "TENANT" must be all lower-case
(#45) Variable "USERMAP" must be all lower-case
(#48) Variable "ORGMAP" must be all lower-case
(#48) Expected 1 space after "="; 0 found
(#68) Variable "USERMAP" must be all lower-case
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#115) The use of function print_r() is forbidden
(#127) Variable "USERMAP" must be all lower-case
(#144) The use of function print_r() is forbidden
(#150) Variable "USERMAP" must be all lower-case
(#242) Variable "USERMAP" must be all lower-case
(#243) Variable "USERMAP" must be all lower-case
local/webuntis/classes/usermap.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Variable "TENANT" must be all lower-case
(#52) Usage of ELSEIF not allowed; use ELSE IF instead
(#52) Variable "TENANT" must be all lower-case
(#53) Variable "TENANT" must be all lower-case
(#66) Variable "TENANT" must be all lower-case
(#67) Variable "TENANT" must be all lower-case
(#119) Variable "TENANT" must be all lower-case
(#126) Variable "TENANT" must be all lower-case
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#244) Variable "TENANT" must be all lower-case
(#256) Variable "TENANT" must be all lower-case
(#259) Variable "TENANT" must be all lower-case
(#266) Variable "TENANT" must be all lower-case
(#267) Variable "TENANT" must be all lower-case
(#296) Variable "TENANT" must be all lower-case
(#302) Variable "TENANT" must be all lower-case
(#306) Variable "TENANT" must be all lower-case
(#313) The use of function print_r() is forbidden
(#314) The use of function print_r() is forbidden
(#319) Variable "TENANT" must be all lower-case
(#325) Variable "TENANT" must be all lower-case
(#326) Variable "TENANT" must be all lower-case
(#340) Variable "TENANT" must be all lower-case
(#347) The use of function print_r() is forbidden
(#355) The use of function print_r() is forbidden
(#374) Variable "TENANT" must be all lower-case
(#380) Variable "TENANT" must be all lower-case
(#382) Variable "TENANT" must be all lower-case
(#391) The use of function print_r() is forbidden
(#396) The use of function print_r() is forbidden
(#410) Variable "TENANT" must be all lower-case
(#411) Variable "TENANT" must be all lower-case
(#412) Variable "TENANT" must be all lower-case
local/webuntis/credentials.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#26) Inline doc block comments are not allowed; use "// Comment." instead
(#33) Inline control structures are not allowed
(#33) The use of function error_log() is forbidden; use debugging() instead
(#34) Inline control structures are not allowed
(#34) The use of function error_log() is forbidden; use debugging() instead
(#35) Variable "DATA" must be all lower-case
(#41) Variable "ALGORITHM" must be all lower-case
(#41) Closing brace must be on a line by itself
(#42) Variable "ALGORITHM" must be all lower-case
(#42) Closing brace must be on a line by itself
(#44) Variable "ALGORITHM" must be all lower-case
(#48) Variable "SIGNATURE" must be all lower-case
(#53) Variable "SIGNATURE" must be all lower-case
(#53) Variable "ALGORITHM" must be all lower-case
(#57) Inline control structures are not allowed
(#57) The use of function error_log() is forbidden; use debugging() instead
(#57) Variable "SIGNATURE" must be all lower-case
(#58) Inline control structures are not allowed
(#58) The use of function error_log() is forbidden; use debugging() instead
(#58) Variable "ALGORITHM" must be all lower-case
(#59) Inline control structures are not allowed
(#59) The use of function error_log() is forbidden; use debugging() instead
(#59) Variable "DATA" must be all lower-case
(#69) Inline control structures are not allowed
(#69) The use of function error_log() is forbidden; use debugging() instead
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 4 spaces, found 1
(#71) Variable "DATA" must be all lower-case
(#71) Variable "SIGNATURE" must be all lower-case
(#71) Variable "ALGORITHM" must be all lower-case
(#72) The use of function error_log() is forbidden; use debugging() instead
(#75) Inline control structures are not allowed
(#75) The use of function error_log() is forbidden; use debugging() instead
(#77) Inline control structures are not allowed
(#77) The use of function error_log() is forbidden; use debugging() instead
(#84) Variable "DATA" must be all lower-case
(#86) Inline control structures are not allowed
(#86) The use of function error_log() is forbidden; use debugging() instead
(#93) Expected 1 space before "="; 0 found
(#97) Inline control structures are not allowed
(#97) The use of function error_log() is forbidden; use debugging() instead
(#105) Expected 1 space before "=>"; 0 found
(#111) Inline control structures are not allowed
(#111) The use of function error_log() is forbidden; use debugging() instead
(#123) Inline control structures are not allowed
(#123) The use of function error_log() is forbidden; use debugging() instead
local/webuntis/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
local/webuntis/disconnect.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Variable "USERMAP" must be all lower-case
local/webuntis/externallib.php
(#41) Variable "TENANT" must be all lower-case
(#41) Variable "USERMAP" must be all lower-case
(#43) Variable "USERMAP" must be all lower-case
(#47) Variable "TENANT" must be all lower-case
(#72) Variable "TENANT" must be all lower-case
(#76) Variable "LESSONMAP" must be all lower-case
(#78) Variable "LESSONMAP" must be all lower-case
(#79) Variable "LESSONMAP" must be all lower-case
(#85) Variable "LESSONMAP" must be all lower-case
(#87) Variable "TENANT" must be all lower-case
(#121) Variable "TENANT" must be all lower-case
(#125) Variable "LESSONMAP" must be all lower-case
(#127) Variable "LESSONMAP" must be all lower-case
(#132) Variable "LESSONMAP" must be all lower-case
(#135) Variable "LESSONMAP" must be all lower-case
(#137) Variable "TENANT" must be all lower-case
(#173) Variable "tenant_id" must not contain underscores.
(#178) Variable "tenant_id" must not contain underscores.
(#219) Variable "TENANT" must be all lower-case
(#219) Variable "USERMAP" must be all lower-case
(#234) Variable "USERMAP" must be all lower-case
(#260) Commas (,) must be followed by white space.
(#269) Line exceeds 132 characters; contains 159 characters
(#300) Variable "TENANT" must be all lower-case
(#300) Variable "USERMAP" must be all lower-case
(#312) Variable "USERMAP" must be all lower-case
local/webuntis/externallib_eduvidual.php
(#43) Variable "ORGMAP" must be all lower-case
(#43) Variable "TENANT" must be all lower-case
(#43) Variable "USERMAP" must be all lower-case
(#56) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#61) Variable "TENANT" must be all lower-case
(#65) Variable "USERMAP" must be all lower-case
(#98) Variable "TENANT" must be all lower-case
(#98) Variable "USERMAP" must be all lower-case
(#119) Variable "USERMAP" must be all lower-case
local/webuntis/index.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#33) The use of function print_r() is forbidden
(#36) Variable "lesson_id" must not contain underscores.
(#38) Variable "tenant_id" must not contain underscores.
(#43) Variable "lesson_id" must not contain underscores.
(#43) Variable "tenant_id" must not contain underscores.
(#44) Variable "lesson_id" must not contain underscores.
(#47) Variable "tenant_id" must not contain underscores.
(#48) Variable "LESSONMAP" must be all lower-case
(#48) Variable "lesson_id" must not contain underscores.
(#51) Variable "TENANT" must be all lower-case
(#57) Variable "TENANT" must be all lower-case
(#64) Variable "USERMAP" must be all lower-case
(#65) Variable "TENANT" must be all lower-case
(#68) Variable "LESSONMAP" must be all lower-case
(#69) Variable "LESSONMAP" must be all lower-case
(#72) Variable "LESSONMAP" must be all lower-case
(#75) Variable "LESSONMAP" must be all lower-case
(#76) Variable "LESSONMAP" must be all lower-case
(#82) Variable "LESSONMAP" must be all lower-case
(#85) Variable "LESSONMAP" must be all lower-case
(#90) Variable "LESSONMAP" must be all lower-case
local/webuntis/landing.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#37) Variable "LESSONMAP" must be all lower-case
(#40) Variable "LESSONMAP" must be all lower-case
(#41) Variable "LESSONMAP" must be all lower-case
(#46) Variable "LESSONMAP" must be all lower-case
local/webuntis/landingadmin.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#40) Variable "LESSONMAP" must be all lower-case
(#44) Variable "LESSONMAP" must be all lower-case
(#68) Variable "TENANT" must be all lower-case
(#97) Variable "TENANT" must be all lower-case
local/webuntis/landingedit.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#36) Variable "LESSONMAP" must be all lower-case
(#38) Variable "LESSONMAP" must be all lower-case
(#48) Variable "LESSONMAP" must be all lower-case
(#49) Variable "LESSONMAP" must be all lower-case
(#58) Variable "LESSONMAP" must be all lower-case
(#63) Variable "LESSONMAP" must be all lower-case
(#63) Variable "LESSONMAP" must be all lower-case
local/webuntis/landingexternal.php
(#24) Constants must be uppercase; expected 'WEBUNTIS_NO_ACTION' but found 'webuntis_no_action'
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
local/webuntis/landinguser.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#44) Variable "USERMAP" must be all lower-case
(#48) Variable "USERMAP" must be all lower-case
(#49) Variable "TENANT" must be all lower-case
(#56) Variable "USERMAP" must be all lower-case
(#76) Variable "USERMAP" must be all lower-case
(#77) Variable "USERMAP" must be all lower-case
(#78) Variable "USERMAP" must be all lower-case
(#79) Variable "USERMAP" must be all lower-case
(#80) Variable "USERMAP" must be all lower-case
(#110) Variable "USERMAP" must be all lower-case
(#112) Variable "USERMAP" must be all lower-case
(#113) Variable "USERMAP" must be all lower-case
(#114) Variable "TENANT" must be all lower-case
(#122) Variable "USERMAP" must be all lower-case
(#123) Variable "USERMAP" must be all lower-case
(#124) Variable "TENANT" must be all lower-case
(#138) Variable "TENANT" must be all lower-case
(#140) Variable "USERMAP" must be all lower-case
local/webuntis/landingusermaps.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#38) Variable "USERMAP" must be all lower-case
(#47) Variable "TENANT" must be all lower-case
local/webuntis/lib.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) Variable "ORGMAP" must be all lower-case
(#55) Variable "TENANT" must be all lower-case
(#55) Variable "USERMAP" must be all lower-case
(#63) Variable "USERMAP" must be all lower-case
(#63) Variable "USERMAP" must be all lower-case
local/webuntis/loginexternal.php
(#24) Constants must be uppercase; expected 'WEBUNTIS_NO_ACTION' but found 'webuntis_no_action'
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
local/webuntis/logout.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
local/webuntis/settings.php
(#79) Line exceeds maximum limit of 180 characters; contains 478 characters
(#91) Line exceeds maximum limit of 180 characters; contains 478 characters
local/webuntis/usersync.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Usage of ELSEIF not allowed; use ELSE IF instead
(#49) Variable "USERMAP" must be all lower-case
(#56) Variable "TENANT" must be all lower-case
(#75) Variable "TENANT" must be all lower-case
(#117) Variable "TENANT" must be all lower-case
(#117) Line exceeds 132 characters; contains 141 characters
(#118) Line exceeds 132 characters; contains 149 characters
(#142) Variable "TENANT" must be all lower-case
(#179) Variable "TENANT" must be all lower-case

Javascript coding style problems

(41 errors, 48 warnings)

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

local/webuntis/amd/src/eduvidual.js
(#9) Unexpected console statement. (no-console)
(#18) Unexpected console statement. (no-console)
(#22) There should be no space after '{'. (babel/object-curly-spacing)
(#22) There should be no space before '}'. (babel/object-curly-spacing)
(#26) Unexpected console statement. (no-console)
(#30) Unexpected console statement. (no-console)
local/webuntis/amd/src/main.js
(#6) Identifier 'sync_queue_create' is not in camel case. (camelcase)
(#7) Identifier 'sync_queue_purge' is not in camel case. (camelcase)
(#8) Identifier 'sync_queue_roles' is not in camel case. (camelcase)
(#13) Unexpected console statement. (no-console)
(#21) Unexpected console statement. (no-console)
(#25) There should be no space after '{'. (babel/object-curly-spacing)
(#25) There should be no space before '}'. (babel/object-curly-spacing)
(#29) Unexpected console statement. (no-console)
(#31) This line has a length of 136. Maximum allowed is 132. (max-len)
(#33) Unexpected console statement. (no-console)
(#43) Unexpected console statement. (no-console)
(#58) Unexpected console statement. (no-console)
(#66) Unexpected console statement. (no-console)
(#70) There should be no space after '{'. (babel/object-curly-spacing)
(#70) There should be no space before '}'. (babel/object-curly-spacing)
(#74) Unexpected console statement. (no-console)
(#76) This line has a length of 136. Maximum allowed is 132. (max-len)
(#78) Unexpected console statement. (no-console)
(#90) Unexpected console statement. (no-console)
(#100) Unexpected console statement. (no-console)
(#103) This line has a length of 135. Maximum allowed is 132. (max-len)
(#105) This line has a length of 135. Maximum allowed is 132. (max-len)
(#115) Unexpected console statement. (no-console)
(#124) Unexpected console statement. (no-console)
(#128) There should be no space after '{'. (babel/object-curly-spacing)
(#128) There should be no space before '}'. (babel/object-curly-spacing)
(#132) Unexpected console statement. (no-console)
(#136) Unexpected console statement. (no-console)
(#148) Identifier 'tenant_id' is not in camel case. (camelcase)
(#151) Unexpected console statement. (no-console)
(#153) Comments should not begin with a lowercase character. (capitalized-comments)
(#153) Expected space or tab after '//' in comment. (spaced-comment)
(#154) Expected space or tab after '//' in comment. (spaced-comment)
(#160) There should be no space after '{'. (babel/object-curly-spacing)
(#160) Identifier 'tenant_id' is not in camel case. (camelcase)
(#160) There should be no space before '}'. (babel/object-curly-spacing)
(#162) Unexpected console statement. (no-console)
(#170) Unexpected console statement. (no-console)
(#188) Missing JSDoc @param "uniqid" type. (jsdoc/require-param-type)
(#188) Missing JSDoc parameter type for 'uniqid'. (valid-jsdoc)
(#189) Missing JSDoc @param "item" type. (jsdoc/require-param-type)
(#189) Missing JSDoc parameter type for 'item'. (valid-jsdoc)
(#191) Identifier 'usersync_create' is not in camel case. (camelcase)
(#192) Expected { after 'if' condition. (curly)
(#192) Unexpected console statement. (no-console)
(#194) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#196) There should be no space after '{'. (babel/object-curly-spacing)
(#208) There should be no space after '{'. (babel/object-curly-spacing)
(#208) There should be no space before '}'. (babel/object-curly-spacing)
(#212) Unexpected console statement. (no-console)
(#229) Missing JSDoc @param "uniqid" type. (jsdoc/require-param-type)
(#229) Missing JSDoc parameter type for 'uniqid'. (valid-jsdoc)
(#230) Missing JSDoc @param "item" type. (jsdoc/require-param-type)
(#230) Missing JSDoc parameter type for 'item'. (valid-jsdoc)
(#232) Identifier 'usersync_purge' is not in camel case. (camelcase)
(#233) Expected { after 'if' condition. (curly)
(#233) Unexpected console statement. (no-console)
(#235) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#237) Extra space after key 'key'. (key-spacing)
(#238) Extra space after key 'key'. (key-spacing)
(#239) Extra space after key 'key'. (key-spacing)
(#240) Extra space after key 'key'. (key-spacing)
(#244) There should be no space after '{'. (babel/object-curly-spacing)
(#259) There should be no space after '{'. (babel/object-curly-spacing)
(#259) There should be no space before '}'. (babel/object-curly-spacing)
(#263) Unexpected console statement. (no-console)
(#280) Missing JSDoc @param "uniqid" type. (jsdoc/require-param-type)
(#280) Missing JSDoc parameter type for 'uniqid'. (valid-jsdoc)
(#281) Missing JSDoc @param "item" type. (jsdoc/require-param-type)
(#281) Missing JSDoc parameter type for 'item'. (valid-jsdoc)
(#283) Identifier 'usersync_roles' is not in camel case. (camelcase)
(#284) Expected { after 'if' condition. (curly)
(#284) Unexpected console statement. (no-console)
(#286) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#288) Extra space after key 'key'. (key-spacing)
(#289) Extra space after key 'key'. (key-spacing)
(#290) Extra space after key 'key'. (key-spacing)
(#291) Extra space after key 'key'. (key-spacing)
(#295) There should be no space after '{'. (babel/object-curly-spacing)
(#312) There should be no space after '{'. (babel/object-curly-spacing)
(#312) There should be no space before '}'. (babel/object-curly-spacing)
(#316) Unexpected console statement. (no-console)
(#318) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)

CSS problems

(54 errors, 4 warnings)

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

local/webuntis/less/main.less
(#5) Unexpected !important (declaration-no-important)
(#6) Unexpected !important (declaration-no-important)
(#11) Unexpected unit (length-zero-no-unit)
(#12) Unexpected unit (length-zero-no-unit)
(#13) Unexpected unit (length-zero-no-unit)
local/webuntis/style/main.css
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Unexpected !important (declaration-no-important)
(#1) Unexpected !important (declaration-no-important)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected single space after "," in a single-line function (function-comma-space-after)
(#1) Expected line length to be no more than 132 characters (max-line-length)

PHPDocs style problems

(131 errors, 0 warnings)

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

local/webuntis/classes/lessonmap.php
(#28) Class lessonmap is not documented
(#194) Function lessonmap::get_courses is not documented
(#226) Function lessonmap::get_edit_url is not documented
(#290) Function lessonmap::get_lessonmap is not documented
(#29) Variable lessonmap::$lessonmaps is not documented
(#30) Variable lessonmap::$lessonid is not documented
(#31) Variable lessonmap::$lessonmap is not documented
(#17) No one-line description found in phpdocs for file
(#33) Phpdocs for function lessonmap::set_lessonid has incomplete parameters list
(#48) Phpdocs for function lessonmap::__construct has incomplete parameters list
(#79) Phpdocs for function lessonmap::change_map has incomplete parameters list
(#251) Phpdocs for function lessonmap::get_lesson_role has incomplete parameters list
(#308) Phpdocs for function lessonmap::is_autoenrolenabled has incomplete parameters list
(#323) Phpdocs for function lessonmap::is_selected has incomplete parameters list
(#360) Invalid inline phpdocs tag @todo found
local/webuntis/classes/locallib.php
(#28) Class locallib is not documented
(#220) Function locallib::exception is not documented
(#29) Variable locallib::$key is not documented
(#30) Variable locallib::$preserved_caches is not documented
(#32) Variable locallib::$preserves is not documented
(#17) No one-line description found in phpdocs for file
(#64) Phpdocs for function locallib::cache_get has incomplete parameters list
(#79) Phpdocs for function locallib::cache_preserve has incomplete parameters list
(#106) Phpdocs for function locallib::cache_print has incomplete parameters list
(#119) Phpdocs for function locallib::cache_set has incomplete parameters list
(#182) Phpdocs for function locallib::curl has incomplete parameters list
(#304) Phpdocs for function locallib::get_actions has incomplete parameters list
(#335) Phpdocs for function locallib::get_courseimage has incomplete parameters list
local/webuntis/classes/orgmap.php
(#30) Class orgmap is not documented
(#102) Function orgmap::load_from_eduvidual is not documented
(#123) Function orgmap::map_role is not documented
(#31) Variable orgmap::$orgmap is not documented
(#32) Variable orgmap::$orgmap_connected is not documented
(#36) Phpdocs for function orgmap::convert_role has incomplete parameters list
(#142) Phpdocs for function orgmap::map_role_usermap has incomplete parameters list
local/webuntis/classes/privacy/provider.php
(#30) Class provider is not documented
(#35) Function provider::get_metadata is not documented
(#76) Function provider::delete_data_for_user is not documented
(#17) No one-line description found in phpdocs for file
local/webuntis/classes/tenant.php
(#28) Class tenant is not documented
(#31) Function tenant::last_tenant_id is not documented
(#35) Function tenant::load is not documented
(#52) Function tenant::__construct is not documented
(#167) Function tenant::get_autocreate is not documented
(#170) Function tenant::get_client is not documented
(#173) Function tenant::get_consumerkey is not documented
(#176) Function tenant::get_consumersecret is not documented
(#179) Function tenant::get_endpoints is not documented
(#193) Function tenant::get_host is not documented
(#196) Function tenant::get_id is not documented
(#229) Function tenant::get_school is not documented
(#236) Function tenant::get_tenant_id is not documented
(#240) Function tenant::set_autocreate is not documented
(#251) Function tenant::set_oauth_keys is not documented
(#29) Variable tenant::$tenantdata is not documented
(#17) No one-line description found in phpdocs for file
(#124) Phpdocs for function tenant::auth_token has incomplete parameters list
(#201) Phpdocs for function tenant::get_init_url has incomplete parameters list
local/webuntis/classes/usermap.php
(#28) Class usermap is not documented
(#90) Function usermap::can_disconnect is not documented
(#152) Function usermap::get_email is not documented
(#157) Function usermap::get_firstname is not documented
(#162) Function usermap::get_id is not documented
(#167) Function usermap::get_headerparams is not documented
(#170) Function usermap::get_lastname is not documented
(#175) Function usermap::get_map_url is not documented
(#196) Function usermap::get_userid is not documented
(#201) Function usermap::get_userinfo is not documented
(#206) Function usermap::get_usermap is not documented
(#211) Function usermap::get_username is not documented
(#216) Function usermap::get_remoteuserid is not documented
(#221) Function usermap::get_remoteuserrole is not documented
(#226) Function usermap::get_token is not documented
(#231) Function usermap::is_parent is not documented
(#234) Function usermap::is_student is not documented
(#237) Function usermap::is_teacher is not documented
(#240) Function usermap::is_administrator is not documented
(#243) Function usermap::release is not documented
(#305) Function usermap::set_userinfo is not documented
(#373) Function usermap::sync is not documented
(#409) Function usermap::to_cache is not documented
(#29) Variable usermap::$userinfos is not documented
(#30) Variable usermap::$usermaps is not documented
(#31) Variable usermap::$userinfo is not documented
(#32) Variable usermap::$usermap is not documented
(#17) No one-line description found in phpdocs for file
(#36) Phpdocs for function usermap::__construct has incomplete parameters list
(#116) Phpdocs for function usermap::do_userlogin has incomplete parameters list
(#138) Phpdocs for function usermap::extract_token has incomplete parameters list
(#180) Phpdocs for function usermap::get_moodlerole has incomplete parameters list
(#250) Phpdocs for function usermap::save_user has incomplete parameters list
(#293) Phpdocs for function usermap::set_userid has incomplete parameters list
local/webuntis/credentials.php
(#17) No one-line description found in phpdocs for file
local/webuntis/db/caches.php
(#17) No one-line description found in phpdocs for file
local/webuntis/db/services.php
(#17) No one-line description found in phpdocs for file
local/webuntis/db/upgrade.php
(#27) Function xmldb_local_webuntis_upgrade is not documented
(#18) No one-line description found in phpdocs for file
local/webuntis/disconnect.php
(#17) No one-line description found in phpdocs for file
local/webuntis/externallib.php
(#28) Class local_webuntis_external is not documented
(#17) No one-line description found in phpdocs for file
(#37) Phpdocs for function local_webuntis_external::autocreate has incomplete parameters list
(#68) Phpdocs for function local_webuntis_external::autoenrol has incomplete parameters list
(#117) Phpdocs for function local_webuntis_external::selecttarget has incomplete parameters list
(#170) Phpdocs for function local_webuntis_external::tenantdata has incomplete parameters list
(#215) Phpdocs for function local_webuntis_external::usersync_create has incomplete parameters list
(#296) Phpdocs for function local_webuntis_external::usersync_purge has incomplete parameters list
local/webuntis/externallib_eduvidual.php
(#30) Class local_webuntis_external_eduvidual is not documented
(#31) Function local_webuntis_external_eduvidual::orgmap_parameters is not documented
(#17) No one-line description found in phpdocs for file
(#39) Phpdocs for function local_webuntis_external_eduvidual::orgmap has incomplete parameters list
(#94) Phpdocs for function local_webuntis_external_eduvidual::usersync_roles has incomplete parameters list
local/webuntis/index.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landing.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landingadmin.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landingedit.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landingexternal.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landinguser.php
(#17) No one-line description found in phpdocs for file
local/webuntis/landingusermaps.php
(#17) No one-line description found in phpdocs for file
local/webuntis/lang/de/local_webuntis.php
(#17) No one-line description found in phpdocs for file
local/webuntis/lang/en/local_webuntis.php
(#17) No one-line description found in phpdocs for file
local/webuntis/lib.php
(#26) Function local_webuntis_after_config is not documented
(#42) Function local_webuntis_before_standard_html_head is not documented
(#17) No one-line description found in phpdocs for file
(#51) Phpdocs for function local_webuntis_extend_navigation has incomplete parameters list
(#77) Phpdocs for function local_webuntis_extend_navigation_course has incomplete parameters list
local/webuntis/loginexternal.php
(#17) No one-line description found in phpdocs for file
local/webuntis/logout.php
(#17) No one-line description found in phpdocs for file
local/webuntis/settings.php
(#17) No one-line description found in phpdocs for file
local/webuntis/tenants.php
(#17) No one-line description found in phpdocs for file
local/webuntis/usersync.php
(#17) No one-line description found in phpdocs for file
local/webuntis/version.php
(#17) No one-line description found in phpdocs for file

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 2 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]

local/webuntis/db/upgrade.php
Database modifications (new tables or columns) detected in the patch without any change to some important areas.
No changes detected to backup and restore, that may affect storage and transportability, please verify!

grunt changes

(1 errors, 1 warnings)

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

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(14 errors, 1 warnings)

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

local/webuntis/templates/disconnect.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landingadmin.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landingedit.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landingeduvidual.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landingexternal.mustache
(#1) Example context missing.
local/webuntis/templates/landingmissing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landinguser.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/landingusermaps.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/navbar.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/tenants.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/usersync_create.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/usersync_purge.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/usersync_roles.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/webuntis/templates/usersync_selectorg.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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