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

(4 errors, 49 warnings)

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

mod/gcanvas/ajax.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/gcanvas/lang/en/gcanvas.php
(#29) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#36) The string key "gcanvas:addinstance" is not in the correct order, it should be before "teacher_tools"
(#38) The string key "gcanvas:teacher" is not in the correct order, it should be before "gcanvas:view"
(#39) The string key "gcanvas:student_image" is not in the correct order, it should be before "gcanvas:teacher"
(#41) Unexpected comment found. Auto-fixing will not work after this comment
(#42) The string key "form:gcanvasname" is not in the correct order, it should be before "gcanvas:student_image"
(#45) The string key "form:attachment" is not in the correct order, it should be before "form:has_horizontal_ruler_desc"
(#48) Unexpected comment found. Auto-fixing will not work after this comment
(#49) The string key "btn:text" is not in the correct order, it should be before "form:helptext"
(#50) The string key "btn:save" is not in the correct order, it should be before "btn:text"
(#51) The string key "btn:clear" is not in the correct order, it should be before "btn:save"
(#53) The string key "btn:image" is not in the correct order, it should be before "btn:samples"
(#55) The string key "btn:arrow" is not in the correct order, it should be before "btn:trash"
(#59) The string key "btn:smiley" is not in the correct order, it should be before "btn:triangle"
(#60) The string key "btn:select_a_image" is not in the correct order, it should be before "btn:smiley"
(#61) The string key "btn:remove" is not in the correct order, it should be before "btn:select_a_image"
(#63) The string key "btn:download" is not in the correct order, it should be before "btn:restore"
(#65) The string key "btn:background" is not in the correct order, it should be before "btn:save_file"
(#67) The string key "btn:help" is not in the correct order, it should be before "btn:toolbar_images"
(#71) The string key "btn:colorpicker" is not in the correct order, it should be before "btn:undo"
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#75) The string key "javascript:confirm_desc" is not in the correct order, it should be before "javascript:confirm_title"
(#77) The string key "javascript:no" is not in the correct order, it should be before "javascript:yes"
(#83) The string key "privacy:metadata:attempt:added_on" is not in the correct order, it should be before "privacy:metadata:attempt:json_data"
mod/gcanvas/lang/nl/gcanvas.php
(#29) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#36) The string key "gcanvas:addinstance" is not in the correct order, it should be before "teacher_tools"
(#38) The string key "gcanvas:teacher" is not in the correct order, it should be before "gcanvas:view"
(#39) The string key "gcanvas:student_image" is not in the correct order, it should be before "gcanvas:teacher"
(#41) Unexpected comment found. Auto-fixing will not work after this comment
(#42) The string key "form:gcanvasname" is not in the correct order, it should be before "gcanvas:student_image"
(#45) The string key "form:attachment" is not in the correct order, it should be before "form:has_horizontal_ruler_desc"
(#48) Unexpected comment found. Auto-fixing will not work after this comment
(#49) The string key "btn:save" is not in the correct order, it should be before "form:helptext"
(#50) The string key "btn:clear" is not in the correct order, it should be before "btn:save"
(#53) The string key "btn:image" is not in the correct order, it should be before "btn:text"
(#55) The string key "btn:arrow" is not in the correct order, it should be before "btn:trash"
(#59) The string key "btn:smiley" is not in the correct order, it should be before "btn:triangle"
(#60) The string key "btn:select_a_image" is not in the correct order, it should be before "btn:smiley"
(#61) The string key "btn:remove" is not in the correct order, it should be before "btn:select_a_image"
(#63) The string key "btn:download" is not in the correct order, it should be before "btn:restore"
(#65) The string key "btn:background" is not in the correct order, it should be before "btn:save_file"
(#67) The string key "btn:help" is not in the correct order, it should be before "btn:toolbar_images"
(#71) The string key "btn:colorpicker" is not in the correct order, it should be before "btn:undo"
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#75) The string key "javascript:confirm_desc" is not in the correct order, it should be before "javascript:confirm_title"
(#77) The string key "javascript:no" is not in the correct order, it should be before "javascript:yes"
(#83) The string key "privacy:metadata:attempt:added_on" is not in the correct order, it should be before "privacy:metadata:attempt:json_data"
mod/gcanvas/lib.php
(#55) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#77) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
mod/gcanvas/renderer.php
(#44) There must not be a space before the colon in a return type declaration
(#105) There must not be a space before the colon in a return type declaration
(#121) There must not be a space before the colon in a return type declaration

Javascript coding style problems

(0 errors, 3 warnings)

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

mod/gcanvas/amd/src/canvas.js
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#981) Unexpected space before function parentheses. (space-before-function-paren)
(#990) Unexpected space before function parentheses. (space-before-function-paren)

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]