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

(47 errors, 252 warnings)

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

blocks/aipromptgen/block_aipromptgen.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#264) Line exceeds 132 characters; contains 138 characters
blocks/aipromptgen/classes/form/prompt_form.php
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Line exceeds 132 characters; contains 135 characters
(#154) Line exceeds 132 characters; contains 134 characters
(#170) Line exceeds 132 characters; contains 133 characters
blocks/aipromptgen/lang/en/block_aipromptgen.php
(#27) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#28) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "aipromptgen:manage" is not in the correct order, it should be before "privacy:metadata"
(#33) The string key "aipromptgen:addinstance" is not in the correct order, it should be before "aipromptgen:manage"
(#36) Unexpected comment found. Auto-fixing will not work after this comment
(#38) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#40) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#41) The string key "form:lessonlabel" is not in the correct order, it should be before "form:topicbrowse"
(#42) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#43) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#45) The string key "form:language" is not in the correct order, it should be before "form:outcomeslabel"
(#47) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#49) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#50) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#52) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#57) The string key "form:response" is not in the correct order, it should be before "form:sendtochatgpt"
(#58) The string key "form:reset" is not in the correct order, it should be before "form:response"
(#59) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
(#62) Unexpected comment found. Auto-fixing will not work after this comment
(#67) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#68) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#70) Unexpected comment found. Auto-fixing will not work after this comment
(#71) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#72) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#78) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#79) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#82) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#84) The string key "label:lesson" is not in the correct order, it should be before "label:topic"
(#85) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#88) Unexpected comment found. Auto-fixing will not work after this comment
(#90) The string key "prompt:instructions" is not in the correct order, it should be before "prompt:prefix"
(#92) Unexpected comment found. Auto-fixing will not work after this comment
(#98) Unexpected comment found. Auto-fixing will not work after this comment
(#99) The string key "classtype:lecture" is not in the correct order, it should be before "setting:model_desc"
(#100) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#105) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
blocks/aipromptgen/lang/pt/block_aipromptgen.php
(#27) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#28) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "form:subjectlabel" is not in the correct order, it should be before "privacy:metadata"
(#33) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#35) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#36) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#39) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#40) The string key "form:language" is not in the correct order, it should be before "form:topicbrowse"
(#42) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#44) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#45) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#47) Unexpected comment found. Auto-fixing will not work after this comment
(#52) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#53) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#55) Unexpected comment found. Auto-fixing will not work after this comment
(#56) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#57) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#62) Unexpected comment found. Auto-fixing will not work after this comment
(#63) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#64) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#67) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#69) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#76) Unexpected comment found. Auto-fixing will not work after this comment
(#77) The string key "classtype:lecture" is not in the correct order, it should be before "prompt:prefix"
(#78) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#83) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
(#85) Unexpected comment found. Auto-fixing will not work after this comment
(#87) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#90) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
(#92) Unexpected comment found. Auto-fixing will not work after this comment
(#93) The string key "aipromptgen:manage" is not in the correct order, it should be before "form:backtocourse"
(#94) The string key "aipromptgen:addinstance" is not in the correct order, it should be before "aipromptgen:manage"
blocks/aipromptgen/lang/sk/block_aipromptgen.php
(#27) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#28) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#31) Unexpected comment found. Auto-fixing will not work after this comment
(#32) The string key "form:subjectlabel" is not in the correct order, it should be before "privacy:metadata"
(#33) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#35) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#36) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#39) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#40) The string key "form:language" is not in the correct order, it should be before "form:topicbrowse"
(#42) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#44) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#45) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#47) Unexpected comment found. Auto-fixing will not work after this comment
(#52) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#53) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#55) Unexpected comment found. Auto-fixing will not work after this comment
(#56) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#57) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#62) Unexpected comment found. Auto-fixing will not work after this comment
(#63) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#64) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#67) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#69) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#76) Unexpected comment found. Auto-fixing will not work after this comment
(#77) The string key "classtype:lecture" is not in the correct order, it should be before "prompt:prefix"
(#78) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#83) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
(#85) Unexpected comment found. Auto-fixing will not work after this comment
(#87) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#90) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
blocks/aipromptgen/lang/sr/block_aipromptgen.php
(#28) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#29) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "form:subjectlabel" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#36) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#37) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#40) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#41) The string key "form:language" is not in the correct order, it should be before "form:topicbrowse"
(#43) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#45) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#46) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#48) Unexpected comment found. Auto-fixing will not work after this comment
(#53) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#54) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#57) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#58) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#64) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#65) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#68) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#70) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#74) Unexpected comment found. Auto-fixing will not work after this comment
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#78) The string key "classtype:lecture" is not in the correct order, it should be before "prompt:prefix"
(#79) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#84) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
(#86) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#91) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "aipromptgen:manage" is not in the correct order, it should be before "form:backtocourse"
(#95) The string key "aipromptgen:addinstance" is not in the correct order, it should be before "aipromptgen:manage"
blocks/aipromptgen/lang/sr_cr/block_aipromptgen.php
(#28) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#29) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "form:subjectlabel" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#36) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#37) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#40) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#41) The string key "form:language" is not in the correct order, it should be before "form:topicbrowse"
(#43) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#45) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#46) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#48) Unexpected comment found. Auto-fixing will not work after this comment
(#53) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#54) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#57) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#58) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#64) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#65) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#68) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#70) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#74) Unexpected comment found. Auto-fixing will not work after this comment
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#78) The string key "classtype:lecture" is not in the correct order, it should be before "prompt:prefix"
(#79) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#84) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
(#86) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#91) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "aipromptgen:manage" is not in the correct order, it should be before "form:backtocourse"
(#95) The string key "aipromptgen:addinstance" is not in the correct order, it should be before "aipromptgen:manage"
blocks/aipromptgen/lang/sr_lt/block_aipromptgen.php
(#28) The string key "openpromptbuilder" is not in the correct order, it should be before "pluginname"
(#29) The string key "notallowed" is not in the correct order, it should be before "openpromptbuilder"
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "form:subjectlabel" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "form:agerangelabel" is not in the correct order, it should be before "form:subjectlabel"
(#36) The string key "form:lessonbrowse" is not in the correct order, it should be before "form:lessonlabel"
(#37) The string key "form:class_typelabel" is not in the correct order, it should be before "form:lessonbrowse"
(#40) The string key "form:topicbrowse" is not in the correct order, it should be before "form:topiclabel"
(#41) The string key "form:language" is not in the correct order, it should be before "form:topicbrowse"
(#43) The string key "form:course" is not in the correct order, it should be before "form:purpose"
(#45) The string key "form:result" is not in the correct order, it should be before "form:submit"
(#46) The string key "form:audience" is not in the correct order, it should be before "form:result"
(#48) Unexpected comment found. Auto-fixing will not work after this comment
(#53) The string key "option:teacher" is not in the correct order, it should be before "option:worksheet"
(#54) The string key "option:student" is not in the correct order, it should be before "option:teacher"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#57) The string key "lang:sr" is not in the correct order, it should be before "option:student"
(#58) The string key "lang:en" is not in the correct order, it should be before "lang:sr"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#64) The string key "label:purpose" is not in the correct order, it should be before "lang:sr_cr"
(#65) The string key "label:audience" is not in the correct order, it should be before "label:purpose"
(#68) The string key "label:agerange" is not in the correct order, it should be before "label:subject"
(#70) The string key "label:classtype" is not in the correct order, it should be before "label:lesson"
(#74) Unexpected comment found. Auto-fixing will not work after this comment
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#78) The string key "classtype:lecture" is not in the correct order, it should be before "prompt:prefix"
(#79) The string key "classtype:discussion" is not in the correct order, it should be before "classtype:lecture"
(#84) The string key "classtype:assessment" is not in the correct order, it should be before "classtype:review"
(#86) Unexpected comment found. Auto-fixing will not work after this comment
(#88) The string key "form:copied" is not in the correct order, it should be before "form:copy"
(#91) The string key "form:backtocourse" is not in the correct order, it should be before "form:reset"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "aipromptgen:manage" is not in the correct order, it should be before "form:backtocourse"
(#95) The string key "aipromptgen:addinstance" is not in the correct order, it should be before "aipromptgen:manage"
blocks/aipromptgen/view.php
(#149) The CASE body must start on the line following the statement
(#150) Terminating statement must be indented to the same level as the CASE body
(#151) The CASE body must start on the line following the statement
(#152) Terminating statement must be indented to the same level as the CASE body
(#153) The CASE body must start on the line following the statement
(#154) Terminating statement must be indented to the same level as the CASE body
(#155) The CASE body must start on the line following the statement
(#156) Terminating statement must be indented to the same level as the CASE body
(#157) The CASE body must start on the line following the statement
(#158) Terminating statement must be indented to the same level as the CASE body
(#159) The CASE body must start on the line following the statement
(#160) Terminating statement must be indented to the same level as the CASE body
(#161) The CASE body must start on the line following the statement
(#162) Terminating statement must be indented to the same level as the CASE body
(#163) The CASE body must start on the line following the statement
(#164) Terminating statement must be indented to the same level as the CASE body
(#165) The CASE body must start on the line following the statement
(#166) Terminating statement must be indented to the same level as the CASE body
(#167) The CASE body must start on the line following the statement
(#168) Terminating statement must be indented to the same level as the CASE body
(#169) The CASE body must start on the line following the statement
(#170) Terminating statement must be indented to the same level as the CASE body
(#171) The CASE body must start on the line following the statement
(#172) Terminating statement must be indented to the same level as the CASE body
(#173) The CASE body must start on the line following the statement
(#174) Terminating statement must be indented to the same level as the CASE body
(#175) The CASE body must start on the line following the statement
(#176) Terminating statement must be indented to the same level as the CASE body
(#177) The CASE body must start on the line following the statement
(#178) Terminating statement must be indented to the same level as the CASE body
(#179) The CASE body must start on the line following the statement
(#180) Terminating statement must be indented to the same level as the CASE body
(#181) The CASE body must start on the line following the statement
(#182) Terminating statement must be indented to the same level as the CASE body
(#183) The CASE body must start on the line following the statement
(#184) Terminating statement must be indented to the same level as the CASE body
(#185) The CASE body must start on the line following the statement
(#186) Terminating statement must be indented to the same level as the CASE body
(#187) The CASE body must start on the line following the statement
(#188) Terminating statement must be indented to the same level as the CASE body
(#189) The DEFAULT body must start on the line following the statement
(#216) Inline comments must start with a capital letter, digit or 3-dots sequence
(#285) Line exceeds 132 characters; contains 134 characters
(#319) Line exceeds 132 characters; contains 145 characters
(#320) Line exceeds 132 characters; contains 142 characters
(#321) Line exceeds 132 characters; contains 133 characters
(#322) Line exceeds 132 characters; contains 177 characters
(#387) Line exceeds 132 characters; contains 157 characters
(#388) Line exceeds 132 characters; contains 154 characters
(#389) Line exceeds 132 characters; contains 145 characters
(#394) Line exceeds 132 characters; contains 134 characters
(#493) Expected 1 space after FUNCTION keyword; 0 found
(#597) Line exceeds 132 characters; contains 139 characters
(#622) Line exceeds 132 characters; contains 135 characters
(#623) Line exceeds 132 characters; contains 141 characters
(#634) Expected 1 space after FUNCTION keyword; 0 found
(#727) Line exceeds 132 characters; contains 147 characters
(#813) Blank line found at end of control structure
(#890) Line exceeds 132 characters; contains 153 characters
(#898) Opening parenthesis of a multi-line function call must be the last content on the line
(#902) Line exceeds 132 characters; contains 134 characters
(#909) Closing parenthesis of a multi-line function call must be on a line by itself
(#938) Line exceeds 132 characters; contains 151 characters
(#948) Line exceeds 132 characters; contains 175 characters
(#949) Line exceeds 132 characters; contains 171 characters
(#977) Line exceeds 132 characters; contains 146 characters
(#979) Line exceeds 132 characters; contains 140 characters
(#985) Line exceeds 132 characters; contains 142 characters
(#990) Line exceeds 132 characters; contains 156 characters
(#993) Line exceeds 132 characters; contains 180 characters
(#1052) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1071) Line exceeds 132 characters; contains 134 characters
(#1133) Line exceeds 132 characters; contains 134 characters
(#1208) Line exceeds 132 characters; contains 172 characters
(#1209) Line exceeds 132 characters; contains 166 characters
(#1281) Line exceeds 132 characters; contains 134 characters
(#1291) Line exceeds 132 characters; contains 136 characters
(#1308) Line exceeds 132 characters; contains 179 characters
(#1312) Line exceeds 132 characters; contains 166 characters
(#1322) Line exceeds 132 characters; contains 145 characters
(#1342) Line exceeds 132 characters; contains 134 characters
(#1359) Line exceeds 132 characters; contains 167 characters
(#1369) Line exceeds 132 characters; contains 146 characters
(#1389) Line exceeds 132 characters; contains 134 characters
(#1459) Line exceeds 132 characters; contains 172 characters
(#1547) Line exceeds 132 characters; contains 154 characters
(#1559) Multi-line function call not indented correctly; expected 8 spaces but found 4

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

(0 errors, 0 warnings)

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


Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 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]