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

(207 errors, 55 warnings)

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

course/format/btns/classes/output/courseformat/content.php
(#34) Missing docblock for class content
(#35) Opening brace should be on the same line as the declaration for class content
(#36) Missing member variable doc comment
(#36) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#36) Scope modifier not specified for member variable "$currentsection"
(#45) Opening brace should be on the same line as the declaration
(#59) Opening brace should be on the same line as the declaration
(#64) Variable "array_sections" must not contain underscores.
(#64) Short array syntax must be used to define arrays
(#66) Variable "all_sections" must not contain underscores.
(#66) Short array syntax must be used to define arrays
(#67) Variable "section_prev" must not contain underscores.
(#68) Variable "all_sections" must not contain underscores.
(#73) Short array syntax must be used to define arrays
(#75) There should be a comma after the last array item in a multi-line array.
(#82) Variable "array_sections" must not contain underscores.
(#85) Variable "section_select" must not contain underscores.
(#89) Variable "section_select" must not contain underscores.
(#89) Variable "section_select" must not contain underscores.
(#90) Variable "array_sections" must not contain underscores.
(#90) Variable "section_select" must not contain underscores.
(#91) Variable "array_sections" must not contain underscores.
(#91) Variable "section_select" must not contain underscores.
(#92) Variable "section_select" must not contain underscores.
(#95) Variable "section_prev" must not contain underscores.
(#95) Variable "array_sections" must not contain underscores.
(#95) Variable "section_prev" must not contain underscores.
(#96) Variable "array_sections" must not contain underscores.
(#96) Variable "section_prev" must not contain underscores.
(#100) The use of function sizeof() is forbidden; use count() instead
(#100) Variable "all_sections" must not contain underscores.
(#100) Variable "section_select" must not contain underscores.
(#101) Short array syntax must be used to define arrays
(#106) Variable "section_select" must not contain underscores.
(#106) Variable "section_select" must not contain underscores.
(#107) Variable "section_prev" must not contain underscores.
(#107) Variable "array_sections" must not contain underscores.
(#107) Variable "section_prev" must not contain underscores.
(#108) Variable "array_sections" must not contain underscores.
(#108) Variable "section_select" must not contain underscores.
(#110) Variable "section_select" must not contain underscores.
(#113) Variable "array_sections" must not contain underscores.
(#114) Variable "array_sections" must not contain underscores.
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) No space found before comment text; expected "// Si es number se deja por defecto" but found "//Si es number se deja por defecto"
(#126) Variable "array_sections" must not contain underscores.
(#126) Variable "array_sections" must not contain underscores.
(#129) Variable "array_sections" must not contain underscores.
(#129) Variable "array_sections" must not contain underscores.
(#132) Variable "array_sections" must not contain underscores.
(#132) Variable "array_sections" must not contain underscores.
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) 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"
(#141) Variable "form_btn" must not contain underscores.
(#144) Variable "form_btn" must not contain underscores.
(#150) Line exceeds 132 characters; contains 144 characters
(#151) Line exceeds 132 characters; contains 153 characters
(#156) Variable "array_sections" must not contain underscores.
(#163) Variable "form_btn" must not contain underscores.
(#170) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#178) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#181) Short array syntax must be used to define arrays
(#184) Variable "file_setting" must not contain underscores.
(#185) Variable "file_setting" must not contain underscores.
(#187) Variable "url_1" must not contain underscores.
(#189) Variable "url_1" must not contain underscores.
(#204) Opening brace should be on the same line as the declaration
(#208) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#218) Inline comments must end in full-stops, exclamation marks, or question marks
(#218) No space found before comment text; expected "// Sección solicitada" but found "//Sección solicitada"
(#219) Variable "section_select" must not contain underscores.
(#220) Short array syntax must be used to define arrays
(#224) Variable "section_select" must not contain underscores.
(#226) Variable "section_select" must not contain underscores.
(#230) Variable "section_select" must not contain underscores.
(#234) Variable "section_select" must not contain underscores.
(#239) Variable "section_select" must not contain underscores.
(#252) Variable "section_select" must not contain underscores.
(#257) Logical operator "and" is prohibited; use "&&" instead
(#257) Variable "section_select" must not contain underscores.
(#276) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#296) Visibility must be declared on method "get_param_for_url"
(#296) Variable "params_need" must not contain underscores.
(#297) Opening brace should be on the same line as the declaration
(#300) Variable "current_url" must not contain underscores.
(#302) Variable "current_url" must not contain underscores.
(#304) Variable "params_need" must not contain underscores.
(#305) Variable "param_value" must not contain underscores.
(#306) Variable "param_value" must not contain underscores.
(#307) Variable "params_need" must not contain underscores.
(#307) Variable "param_value" must not contain underscores.
(#310) Variable "params_need" must not contain underscores.
(#313) Variable "params_need" must not contain underscores.
(#322) Visibility must be declared on method "save_last_section_access"
(#323) Opening brace should be on the same line as the declaration
(#335) Visibility must be declared on method "get_last_section_access"
(#336) Opening brace should be on the same line as the declaration
(#351) Opening brace should be on the same line as the declaration
(#369) Variable "array_sections" must not contain underscores.
(#370) Opening brace should be on the same line as the declaration
(#373) Variable "array_sections" must not contain underscores.
(#373) Variable "array_section" must not contain underscores.
(#374) Inline control structures are not allowed
(#374) Variable "array_section" must not contain underscores.
(#376) Variable "array_section" must not contain underscores.
(#380) Variable "array_sections" must not contain underscores.
(#390) Variable "baseChar" must be all lower-case
(#391) Opening brace should be on the same line as the declaration
(#395) Variable "baseChar" must be all lower-case
(#409) Variable "array_sections" must not contain underscores.
(#410) Opening brace should be on the same line as the declaration
(#413) Variable "array_sections" must not contain underscores.
(#413) Variable "array_section" must not contain underscores.
(#414) Inline control structures are not allowed
(#414) Variable "array_section" must not contain underscores.
(#416) Variable "array_section" must not contain underscores.
(#420) Variable "array_sections" must not contain underscores.
(#430) Opening brace should be on the same line as the declaration
(#448) Opening brace should be on the same line as the declaration
(#449) Short array syntax must be used to define arrays
(#451) There should be a comma after the last array item in a multi-line array.
(#474) Variable "array_sections" must not contain underscores.
(#475) Opening brace should be on the same line as the declaration
(#478) Variable "array_sections" must not contain underscores.
(#478) Variable "array_section" must not contain underscores.
(#480) Inline control structures are not allowed
(#480) Variable "array_section" must not contain underscores.
(#482) Variable "array_section" must not contain underscores.
(#486) Variable "array_sections" must not contain underscores.
(#497) Variable "file_name" must not contain underscores.
(#498) Opening brace should be on the same line as the declaration
(#501) Variable "file_name" must not contain underscores.
(#501) Variable "file_name" must not contain underscores.
(#503) Variable "file_verified" must not contain underscores.
(#503) Short array syntax must be used to define arrays
(#508) There should be a comma after the last array item in a multi-line array.
(#508) Variable "file_name" must not contain underscores.
(#513) Variable "file_verified" must not contain underscores.
(#517) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#520) Variable "image_content" must not contain underscores.
(#522) Variable "image_base64" must not contain underscores.
(#522) Variable "image_content" must not contain underscores.
(#523) Variable "mime_type" must not contain underscores.
(#524) Variable "image_src" must not contain underscores.
(#524) Variable "mime_type" must not contain underscores.
(#524) Variable "image_base64" must not contain underscores.
(#526) Variable "image_src" must not contain underscores.
(#531) File must end with a newline character
course/format/btns/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.
(#65) Variable "title_section_view" must not contain underscores.
(#66) Variable "title_section_view" must not contain underscores.
(#66) Variable "section_numer" must not contain underscores.
(#70) Variable "section_numer" must not contain underscores.
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) No space found before comment text; expected "// propios" but found "//propios"
(#79) Variable "title_section_view" must not contain underscores.
(#80) There should be a comma after the last array item in a multi-line array.
(#98) No one-line description found in phpdocs for docblock of function get_section_number
(#99) Opening brace should be on the same line as the declaration
(#103) File must end with a newline character
course/format/btns/classes/output/courseformat/content/section/cmitem.php
(#30) Missing docblock for class cmitem
(#40) File must end with a newline character
course/format/btns/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/btns/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/btns/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/btns/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/btns/format.php
(#51) File must end with a newline character
course/format/btns/lang/en/format_btns.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 "selectformbtn" is not in the correct order, it should be before "square"
(#66) The string key "selectform_help" is not in the correct order, it should be before "selectformbtn"
course/format/btns/lang/es/format_btns.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 "selectformbtn" is not in the correct order, it should be before "square"
(#66) The string key "selectform_help" is not in the correct order, it should be before "selectformbtn"
(#68) Unexpected string end, it should be a line feed after a semicolon
(#68) File must end with a newline character
course/format/btns/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_btns
(#27) Missing docblock for function __construct
(#28) Opening brace should be on the same line as the declaration
(#39) Opening brace should be on the same line as the declaration
(#50) Opening brace should be on the same line as the declaration
(#60) Opening brace should be on the same line as the declaration
(#73) Opening brace should be on the same line as the declaration
(#85) Opening brace should be on the same line as the declaration
(#98) Opening brace should be on the same line as the declaration
(#108) Opening brace should be on the same line as the declaration
(#121) Opening brace should be on the same line as the declaration
(#143) Opening brace should be on the same line as the declaration
(#146) Short array syntax must be used to define arrays
(#151) There should be a comma after the last array item in a multi-line array.
(#154) Short array syntax must be used to define arrays
(#159) There should be a comma after the last array item in a multi-line array.
(#162) Short array syntax must be used to define arrays
(#167) There should be a comma after the last array item in a multi-line array.
(#170) Short array syntax must be used to define arrays
(#175) There should be a comma after the last array item in a multi-line array.
(#179) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#186) Short array syntax must be used to define arrays
(#190) There should be a comma after the last array item in a multi-line array.
(#191) There should be a comma after the last array item in a multi-line array.
(#192) There should be a comma after the last array item in a multi-line array.
(#195) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#205) There should be a comma after the last array item in a multi-line array.
(#206) There should be a comma after the last array item in a multi-line array.
(#209) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#219) There should be a comma after the last array item in a multi-line array.
(#220) There should be a comma after the last array item in a multi-line array.
(#222) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#234) Possible useless method overriding detected
(#235) Opening brace should be on the same line as the declaration
(#236) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) Opening brace should be on the same line as the declaration
(#260) Opening brace should be on the same line as the declaration
(#275) DocBlock missing a @package tag for function format_btns_inplace_editable. Expected @package format_btns
(#276) Opening brace should be on the same line as the declaration
course/format/btns/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

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

(12 errors, 0 warnings)

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

course/format/btns/classes/output/courseformat/content.php
(#291) Phpdocs for function content::get_param_for_url has incomplete parameters list
(#318) Phpdocs for function content::save_last_section_access has incomplete parameters list
(#331) Phpdocs for function content::get_last_section_access has incomplete parameters list
(#386) Phpdocs for function content::convert_lowercase_letter has incomplete parameters list
(#426) Phpdocs for function content::convert_uppercase_letter has incomplete parameters list
(#492) Phpdocs for function content::get_content_file has incomplete parameters list
course/format/btns/classes/output/courseformat/content/section.php
(#42) Phpdocs for function section::get_template_name has incomplete parameters list
course/format/btns/classes/output/courseformat/content/section/cmitem.php
(#32) Phpdocs for function cmitem::get_template_name has incomplete parameters list
course/format/btns/lib.php
(#137) Phpdocs for function format_btns::course_format_options has incomplete parameters list
(#230) Phpdocs for function format_btns::delete_section has incomplete parameters list
(#255) Phpdocs for function format_btns::allow_stealth_module_visibility has incomplete parameters list
(#92) 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/btns/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/btns/templates/local/content/section.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 12: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ody> <li id="section-" class="section course-section main clearfix " data-sectionid="" data-sectionreturnid="" data-for="section" data-id="" data-number="" > )
course/format/btns/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/btns/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]