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

(246 errors, 99 warnings)

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

course/format/buttons/classes/output/courseformat/content.php
(#38) Missing docblock for class content
(#39) Opening brace should be on the same line as the declaration for class content
(#40) Missing member variable doc comment
(#40) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#40) Scope modifier not specified for member variable "$currentsection"
(#49) Opening brace should be on the same line as the declaration
(#63) Opening brace should be on the same line as the declaration
(#68) Variable "array_sections" must not contain underscores.
(#68) Short array syntax must be used to define arrays
(#70) Variable "all_sections" must not contain underscores.
(#70) Short array syntax must be used to define arrays
(#71) Variable "section_prev" must not contain underscores.
(#72) Variable "all_sections" must not contain underscores.
(#80) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) No space found before comment text; expected "// Filter capacibility, and fixed the disabled sections for the teacher" but found "//Filter capacibility, and fixed the disabled sections for the teacher"
(#93) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#95) Variable "array_sections" must not contain underscores.
(#98) Variable "section_select" must not contain underscores.
(#103) The use of function sizeof() is forbidden; use count() instead
(#103) Variable "all_sections" must not contain underscores.
(#103) Variable "section_select" must not contain underscores.
(#104) Short array syntax must be used to define arrays
(#109) The use of function sizeof() is forbidden; use count() instead
(#109) Variable "all_sections" must not contain underscores.
(#109) Variable "section_prev" must not contain underscores.
(#110) Short array syntax must be used to define arrays
(#115) Variable "section_select" must not contain underscores.
(#116) Variable "section_select" must not contain underscores.
(#117) Variable "array_sections" must not contain underscores.
(#118) Variable "array_sections" must not contain underscores.
(#122) Variable "array_sections" must not contain underscores.
(#122) Variable "section_select" must not contain underscores.
(#123) Variable "section_select" must not contain underscores.
(#127) Variable "array_sections" must not contain underscores.
(#128) Variable "array_sections" must not contain underscores.
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) No space found before comment text; expected "// Si es number se deja por defecto" but found "//Si es number se deja por defecto"
(#142) Variable "array_sections" must not contain underscores.
(#142) Variable "array_sections" must not contain underscores.
(#145) Variable "array_sections" must not contain underscores.
(#145) Variable "array_sections" must not contain underscores.
(#148) Variable "array_sections" must not contain underscores.
(#148) Variable "array_sections" must not contain underscores.
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) No space found before comment text; expected "// Si no hay opción se deja por defecto" but found "//Si no hay opción se deja por defecto"
(#155) Variable "array_sections" must not contain underscores.
(#155) Variable "array_sections" must not contain underscores.
(#159) Variable "form_btn" must not contain underscores.
(#162) Variable "form_btn" must not contain underscores.
(#168) Line exceeds 132 characters; contains 147 characters
(#169) Line exceeds 132 characters; contains 156 characters
(#174) Variable "array_sections" must not contain underscores.
(#181) Variable "form_btn" must not contain underscores.
(#207) Short array syntax must be used to define arrays
(#210) Variable "file_setting" must not contain underscores.
(#211) Variable "file_setting" must not contain underscores.
(#213) Variable "url_1" must not contain underscores.
(#215) Variable "url_1" must not contain underscores.
(#229) Variable "array_sections" must not contain underscores.
(#230) Opening brace should be on the same line as the declaration
(#231) Variable "max_groups" must not contain underscores.
(#233) Variable "atribute_sections" must not contain underscores.
(#234) Variable "max_groups" must not contain underscores.
(#235) Variable "max_groups" must not contain underscores.
(#236) Variable "group_section" must not contain underscores.
(#237) Variable "group_section" must not contain underscores.
(#239) Variable "group_section" must not contain underscores.
(#247) Variable "atribute_sections" must not contain underscores.
(#252) Variable "total_count_group" must not contain underscores.
(#253) Variable "atribute_sections" must not contain underscores.
(#253) Variable "atribute_section" must not contain underscores.
(#254) Variable "num_sections" must not contain underscores.
(#254) Variable "atribute_section" must not contain underscores.
(#257) Variable "count_first_btn_section" must not contain underscores.
(#258) Variable "num_sections" must not contain underscores.
(#259) Variable "array_sections" must not contain underscores.
(#261) Inline control structures are not allowed
(#262) Inline control structures are not allowed
(#262) Variable "num_sections" must not contain underscores.
(#262) Variable "total_count_group" must not contain underscores.
(#264) Inline control structures are not allowed
(#264) Variable "total_count_group" must not contain underscores.
(#265) Variable "count_first_btn_section" must not contain underscores.
(#266) Inline comments must start with a capital letter, digit or 3-dots sequence
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) No space found before comment text; expected "// echo "total: " . $total_count_group . " count: " . $count . "<br>";" but found "//echo "total: " . $total_count_group . " count: " . $count . "<br>";"
(#267) Variable "atribute_section" must not contain underscores.
(#267) Variable "atribute_section" must not contain underscores.
(#268) Variable "num_sections" must not contain underscores.
(#268) Variable "total_count_group" must not contain underscores.
(#268) Line exceeds 132 characters; contains 142 characters
(#269) Variable "atribute_section" must not contain underscores.
(#269) Variable "count_first_btn_section" must not contain underscores.
(#270) Variable "atribute_section" must not contain underscores.
(#273) Variable "total_count_group" must not contain underscores.
(#273) Variable "num_sections" must not contain underscores.
(#276) Variable "array_sections" must not contain underscores.
(#286) Opening brace should be on the same line as the declaration
(#289) Inline comments must end in full-stops, exclamation marks, or question marks
(#289) No space found before comment text; expected "// Si es number se deja por defecto" but found "//Si es number se deja por defecto"
(#292) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) No space found before comment text; expected "// Se debe restar uno" but found "//Se debe restar uno"
(#297) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) No space found before comment text; expected "// Se debe restar uno" but found "//Se debe restar uno"
(#307) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#315) Inline comments must end in full-stops, exclamation marks, or question marks
(#315) No space found before comment text; expected "// Si no hay opción se deja por defecto" but found "//Si no hay opción se deja por defecto"
(#330) Opening brace should be on the same line as the declaration
(#334) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#344) Inline comments must end in full-stops, exclamation marks, or question marks
(#344) No space found before comment text; expected "// Sección solicitada" but found "//Sección solicitada"
(#345) Variable "section_select" must not contain underscores.
(#346) Short array syntax must be used to define arrays
(#350) Variable "section_select" must not contain underscores.
(#354) Variable "section_select" must not contain underscores.
(#359) Variable "section_select" must not contain underscores.
(#383) Logical operator "and" is prohibited; use "&&" instead
(#383) Variable "section_select" must not contain underscores.
(#403) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#425) Visibility must be declared on method "get_param_for_url"
(#425) Variable "params_need" must not contain underscores.
(#426) Opening brace should be on the same line as the declaration
(#429) Variable "section_select" must not contain underscores.
(#431) Variable "params_need" must not contain underscores.
(#432) Variable "param_value" must not contain underscores.
(#433) Variable "param_value" must not contain underscores.
(#434) Variable "section_select" must not contain underscores.
(#434) Variable "param_value" must not contain underscores.
(#440) Variable "section_select" must not contain underscores.
(#442) Variable "section_select" must not contain underscores.
(#451) Visibility must be declared on method "save_last_section_access"
(#452) Opening brace should be on the same line as the declaration
(#464) Visibility must be declared on method "get_last_section_access"
(#465) Opening brace should be on the same line as the declaration
(#484) Opening brace should be on the same line as the declaration
(#509) Variable "array_sections" must not contain underscores.
(#510) Opening brace should be on the same line as the declaration
(#514) Variable "array_sections" must not contain underscores.
(#514) Variable "array_section" must not contain underscores.
(#516) Inline control structures are not allowed
(#516) Variable "array_section" must not contain underscores.
(#518) Variable "array_section" must not contain underscores.
(#522) Variable "array_sections" must not contain underscores.
(#532) Variable "baseChar" must be all lower-case
(#533) Opening brace should be on the same line as the declaration
(#537) Variable "baseChar" must be all lower-case
(#551) Variable "array_sections" must not contain underscores.
(#552) Opening brace should be on the same line as the declaration
(#556) Variable "array_sections" must not contain underscores.
(#556) Variable "array_section" must not contain underscores.
(#557) Inline control structures are not allowed
(#557) Variable "array_section" must not contain underscores.
(#559) Variable "array_section" must not contain underscores.
(#563) Variable "array_sections" must not contain underscores.
(#573) Opening brace should be on the same line as the declaration
(#591) Opening brace should be on the same line as the declaration
(#592) Short array syntax must be used to define arrays
(#594) There should be a comma after the last array item in a multi-line array.
(#617) Variable "array_sections" must not contain underscores.
(#618) Opening brace should be on the same line as the declaration
(#623) Variable "array_sections" must not contain underscores.
(#623) Variable "array_section" must not contain underscores.
(#625) Inline control structures are not allowed
(#625) Variable "array_section" must not contain underscores.
(#627) Variable "array_section" must not contain underscores.
(#631) Variable "array_sections" must not contain underscores.
(#642) Variable "file_name" must not contain underscores.
(#643) Opening brace should be on the same line as the declaration
(#646) Variable "file_name" must not contain underscores.
(#646) Variable "file_name" must not contain underscores.
(#648) Variable "file_verified" must not contain underscores.
(#648) Short array syntax must be used to define arrays
(#653) There should be a comma after the last array item in a multi-line array.
(#653) Variable "file_name" must not contain underscores.
(#658) Variable "file_verified" must not contain underscores.
(#662) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#665) Variable "image_content" must not contain underscores.
(#667) Variable "image_base64" must not contain underscores.
(#667) Variable "image_content" must not contain underscores.
(#668) Variable "mime_type" must not contain underscores.
(#669) Variable "image_src" must not contain underscores.
(#669) Variable "mime_type" must not contain underscores.
(#669) Variable "image_base64" must not contain underscores.
(#671) Variable "image_src" must not contain underscores.
(#676) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section.php
(#34) Missing docblock for class section
(#35) Opening brace should be on the same line as the declaration for class section
(#37) Possible useless method overriding detected
(#37) Missing docblock for function __construct
(#38) Opening brace should be on the same line as the declaration
(#48) Opening brace should be on the same line as the declaration
(#53) Missing docblock for function export_for_template
(#54) Opening brace should be on the same line as the declaration
(#62) Variable "section_numer" must not contain underscores.
(#63) Variable "title_section_view" must not contain underscores.
(#74) Variable "section_numer" must not contain underscores.
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) No space found before comment text; expected "// propios" but found "//propios"
(#83) Variable "title_section_view" must not contain underscores.
(#84) There should be a comma after the last array item in a multi-line array.
(#102) No one-line description found in phpdocs for docblock of function get_section_number
(#103) Opening brace should be on the same line as the declaration
(#107) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section/cmitem.php
(#30) Missing docblock for class cmitem
(#40) File must end with a newline character
course/format/buttons/classes/output/renderer.php
(#1) Moodle boilerplate not found
(#13) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#18) Missing docblock for class renderer
course/format/buttons/classes/privacy/provider.php
(#1) Moodle boilerplate not found
(#14) Missing docblock for class provider
(#15) Opening brace should be on the same line as the declaration for class provider
(#18) Invalid docblock tag "@inheritDoc".
(#20) No one-line description found in phpdocs for docblock of function get_reason
(#21) Opening brace should be on the same line as the declaration
(#24) File must end with a newline character
course/format/buttons/db/caches.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file caches.php
(#1) Moodle boilerplate not found
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#11) File must end with a newline character
course/format/buttons/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/buttons/format.php
(#51) File must end with a newline character
course/format/buttons/lang/en/format_buttons.php
(#29) The string key "addsections" is not in the correct order, it should be before "privacy:metadata"
(#41) The string key "cachedef_user_last_section" is not in the correct order, it should be before "showfromothers"
(#44) The string key "config" is not in the correct order, it should be before "fontcolor_desc"
(#45) The string key "bgcolor" is not in the correct order, it should be before "config"
(#51) The string key "numeretion" is not in the correct order, it should be before "option4"
(#54) The string key "colorfont" is not in the correct order, it should be before "settings"
(#56) The string key "bgcolor_help" is not in the correct order, it should be before "colorfont_help"
(#59) The string key "bgcolor_selected" is not in the correct order, it should be before "selectoption_help"
(#65) The string key "rounded" is not in the correct order, it should be before "selectd_file_desc"
(#67) The string key "selectform" is not in the correct order, it should be before "square"
(#71) The string key "plugin_description" is not in the correct order, it should be before "title_section_view_help"
(#75) The string key "one" is not in the correct order, it should be before "zero"
(#77) The string key "three" is not in the correct order, it should be before "two"
(#78) The string key "four" is not in the correct order, it should be before "three"
(#79) The string key "five" is not in the correct order, it should be before "four"
(#81) The string key "seven" is not in the correct order, it should be before "six"
(#82) The string key "eight" is not in the correct order, it should be before "seven"
(#85) The string key "eleven" is not in the correct order, it should be before "ten"
(#87) The string key "thirteen" is not in the correct order, it should be before "twelve"
(#88) The string key "fourteen" is not in the correct order, it should be before "thirteen"
(#89) The string key "fifteen" is not in the correct order, it should be before "fourteen"
(#91) The string key "groups_course" is not in the correct order, it should be before "sixteen"
(#94) The string key "color_gruping" is not in the correct order, it should be before "title_gruping"
(#96) The string key "sections_gruping" is not in the correct order, it should be before "title_gruping_help"
(#97) Expected 1 space before "="; 0 found
(#97) Expected 1 space after "="; 0 found
course/format/buttons/lang/es/format_buttons.php
(#40) The string key "fontcolor" is not in the correct order, it should be before "showfromothers"
(#42) The string key "config" is not in the correct order, it should be before "fontcolor_desc"
(#43) The string key "bgcolor" is not in the correct order, it should be before "config"
(#49) The string key "numeretion" is not in the correct order, it should be before "option4"
(#52) The string key "colorfont" is not in the correct order, it should be before "settings"
(#54) The string key "bgcolor_help" is not in the correct order, it should be before "colorfont_help"
(#57) The string key "bgcolor_selected" is not in the correct order, it should be before "selectoption_help"
(#63) The string key "rounded" is not in the correct order, it should be before "selectd_file_desc"
(#65) The string key "selectform" is not in the correct order, it should be before "square"
(#69) The string key "plugin_description" is not in the correct order, it should be before "title_section_view_help"
(#73) The string key "one" is not in the correct order, it should be before "zero"
(#75) The string key "three" is not in the correct order, it should be before "two"
(#76) The string key "four" is not in the correct order, it should be before "three"
(#77) The string key "five" is not in the correct order, it should be before "four"
(#79) The string key "seven" is not in the correct order, it should be before "six"
(#80) The string key "eight" is not in the correct order, it should be before "seven"
(#83) The string key "eleven" is not in the correct order, it should be before "ten"
(#85) The string key "thirteen" is not in the correct order, it should be before "twelve"
(#86) The string key "fourteen" is not in the correct order, it should be before "thirteen"
(#87) The string key "fifteen" is not in the correct order, it should be before "fourteen"
(#89) The string key "groups_course" is not in the correct order, it should be before "sixteen"
(#92) The string key "color_gruping" is not in the correct order, it should be before "title_gruping"
(#94) The string key "sections_gruping" is not in the correct order, it should be before "title_gruping_help"
(#95) Unexpected string end, it should be a line feed after a semicolon
(#95) File must end with a newline character
course/format/buttons/lib.php
(#1) Missing docblock for file lib.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#26) Opening brace should be on the same line as the declaration for class format_buttons
(#27) Missing docblock for function __construct
(#28) Opening brace should be on the same line as the declaration
(#46) Opening brace should be on the same line as the declaration
(#57) Opening brace should be on the same line as the declaration
(#67) Opening brace should be on the same line as the declaration
(#80) Opening brace should be on the same line as the declaration
(#92) Opening brace should be on the same line as the declaration
(#105) Opening brace should be on the same line as the declaration
(#115) Opening brace should be on the same line as the declaration
(#128) Opening brace should be on the same line as the declaration
(#150) Opening brace should be on the same line as the declaration
(#153) Short array syntax must be used to define arrays
(#158) There should be a comma after the last array item in a multi-line array.
(#161) Short array syntax must be used to define arrays
(#166) There should be a comma after the last array item in a multi-line array.
(#169) Short array syntax must be used to define arrays
(#174) There should be a comma after the last array item in a multi-line array.
(#177) Short array syntax must be used to define arrays
(#182) There should be a comma after the last array item in a multi-line array.
(#186) Short array syntax must be used to define arrays
(#192) Short array syntax must be used to define arrays
(#193) Short array syntax must be used to define arrays
(#197) There should be a comma after the last array item in a multi-line array.
(#198) There should be a comma after the last array item in a multi-line array.
(#199) There should be a comma after the last array item in a multi-line array.
(#202) Short array syntax must be used to define arrays
(#208) Short array syntax must be used to define arrays
(#209) Short array syntax must be used to define arrays
(#212) There should be a comma after the last array item in a multi-line array.
(#213) There should be a comma after the last array item in a multi-line array.
(#216) Short array syntax must be used to define arrays
(#222) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#226) There should be a comma after the last array item in a multi-line array.
(#227) There should be a comma after the last array item in a multi-line array.
(#230) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#240) There should be a comma after the last array item in a multi-line array.
(#241) There should be a comma after the last array item in a multi-line array.
(#244) Variable "max_groups" must not contain underscores.
(#245) Variable "max_groups" must not contain underscores.
(#246) Variable "max_sections" must not contain underscores.
(#247) Variable "max_sections" must not contain underscores.
(#249) Variable "max_groups" must not contain underscores.
(#250) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
(#257) There should be a comma after the last array item in a multi-line array.
(#258) There should be a comma after the last array item in a multi-line array.
(#261) Short array syntax must be used to define arrays
(#268) Short array syntax must be used to define arrays
(#287) Possible useless method overriding detected
(#288) Opening brace should be on the same line as the declaration
(#289) Inline comments must end in full-stops, exclamation marks, or question marks
(#298) Opening brace should be on the same line as the declaration
(#313) Opening brace should be on the same line as the declaration
(#329) DocBlock missing a @package tag for function format_buttons_inplace_editable. Expected @package format_buttons
(#330) Opening brace should be on the same line as the declaration
course/format/buttons/settings.php
(#1) Moodle boilerplate not found
(#33) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#68) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.

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

(14 errors, 0 warnings)

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

course/format/buttons/classes/output/courseformat/content.php
(#224) Phpdocs for function content::agruping_sections has incomplete parameters list
(#281) Phpdocs for function content::get_namesection_for_btn has incomplete parameters list
(#418) Phpdocs for function content::get_param_for_url has incomplete parameters list
(#447) Phpdocs for function content::save_last_section_access has incomplete parameters list
(#460) Phpdocs for function content::get_last_section_access has incomplete parameters list
(#528) Phpdocs for function content::convert_lowercase_letter has incomplete parameters list
(#569) Phpdocs for function content::convert_uppercase_letter has incomplete parameters list
(#637) Phpdocs for function content::get_content_file has incomplete parameters list
course/format/buttons/classes/output/courseformat/content/section.php
(#42) Phpdocs for function section::get_template_name has incomplete parameters list
course/format/buttons/classes/output/courseformat/content/section/cmitem.php
(#32) Phpdocs for function cmitem::get_template_name has incomplete parameters list
course/format/buttons/lib.php
(#144) Phpdocs for function format_buttons::course_format_options has incomplete parameters list
(#283) Phpdocs for function format_buttons::delete_section has incomplete parameters list
(#308) Phpdocs for function format_buttons::allow_stealth_module_visibility has incomplete parameters list
(#99) Inline phpdocs tag {@link course_can_delete_section()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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

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

course/format/buttons/templates/local/content.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (qid"> <h2 class="accesshide"></h2>)
(#1) ESLint warning [space-in-parens]: There should be no space before this paren. ( component.init('page', {}, );
course/format/buttons/templates/local/content/section.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 13: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (dy> <li id="section-" class="section course-section main clearfix " data-sectionid="" data-sectionreturnid="" data-for="section" data-id="" data-number="" > )
course/format/buttons/templates/local/content/section/cmitem.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 7: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="activity activity-wrapper modtype_ " id="" data-for="cmitem" data-id=""></li>)
course/format/buttons/templates/local/content/section/content.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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