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

(234 errors, 59 warnings)

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

course/format/buttons/classes/output/courseformat/content.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Missing docblock for class content
(#41) Opening brace should be on the same line as the declaration for class content
(#44) Content missing for @var tag in member variable comment
(#46) Member variable "array_sections" must not contain underscores.
(#50) Member variable "form_btn" must not contain underscores.
(#54) Member variable "selected_section" must not contain underscores.
(#61) No one-line description found in phpdocs for docblock of function __construct
(#62) Opening brace should be on the same line as the declaration
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) No space found before comment text; expected "// rounded btns" but found "//rounded btns"
(#76) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#82) Variable "verified_exist" must not contain underscores.
(#88) Variable "verified_exist" must not contain underscores.
(#110) Opening brace should be on the same line as the declaration
(#122) Opening brace should be on the same line as the declaration
(#152) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) No space found before comment text; expected "// If there is a img to init sections, return data" but found "//If there is a img to init sections, return data"
(#153) Variable "file_setting" must not contain underscores.
(#154) Variable "file_setting" must not contain underscores.
(#155) Line exceeds 132 characters; contains 135 characters
(#157) Inline comments must start with a capital letter, digit or 3-dots sequence
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) No space found before comment text; expected "// navigation" but found "//navigation"
(#175) Opening brace should be on the same line as the declaration
(#193) Opening brace should be on the same line as the declaration
(#213) Opening brace should be on the same line as the declaration
(#218) Variable "array_sections" must not contain underscores.
(#218) Short array syntax must be used to define arrays
(#220) Variable "all_sections" must not contain underscores.
(#220) Short array syntax must be used to define arrays
(#221) Variable "all_sections" must not contain underscores.
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
(#230) No space found before comment text; expected "// Ad class selected" but found "//Ad class selected"
(#235) Short array syntax must be used to define arrays
(#236) There should be a comma after the last array item in a multi-line array.
(#241) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) 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"
(#248) Variable "array_sections" must not contain underscores.
(#253) Variable "array_sections" must not contain underscores.
(#253) Variable "array_sections" must not contain underscores.
(#256) Variable "array_sections" must not contain underscores.
(#256) Variable "array_sections" must not contain underscores.
(#259) Variable "array_sections" must not contain underscores.
(#259) Variable "array_sections" must not contain underscores.
(#262) Inline comments must start with a capital letter, digit or 3-dots sequence
(#262) Inline comments must end in full-stops, exclamation marks, or question marks
(#262) No space found before comment text; expected "// default" but found "//default"
(#266) Variable "array_sections" must not contain underscores.
(#266) Variable "array_sections" must not contain underscores.
(#268) Variable "array_sections" must not contain underscores.
(#277) Variable "array_sections" must not contain underscores.
(#278) Opening brace should be on the same line as the declaration
(#282) Variable "array_sections" must not contain underscores.
(#282) Variable "array_section" must not contain underscores.
(#284) Inline control structures are not allowed
(#284) Variable "array_section" must not contain underscores.
(#285) Variable "array_section" must not contain underscores.
(#289) Variable "array_sections" must not contain underscores.
(#298) Variable "array_sections" must not contain underscores.
(#299) Opening brace should be on the same line as the declaration
(#303) Variable "array_sections" must not contain underscores.
(#303) Variable "array_section" must not contain underscores.
(#304) Inline control structures are not allowed
(#304) Variable "array_section" must not contain underscores.
(#305) Variable "array_section" must not contain underscores.
(#309) Variable "array_sections" must not contain underscores.
(#318) Variable "array_sections" must not contain underscores.
(#319) Opening brace should be on the same line as the declaration
(#324) Variable "array_sections" must not contain underscores.
(#324) Variable "array_section" must not contain underscores.
(#326) Inline control structures are not allowed
(#326) Variable "array_section" must not contain underscores.
(#328) Variable "array_section" must not contain underscores.
(#332) Variable "array_sections" must not contain underscores.
(#343) Variable "array_sections" must not contain underscores.
(#344) Opening brace should be on the same line as the declaration
(#345) Variable "max_groups" must not contain underscores.
(#347) Variable "atribute_sections" must not contain underscores.
(#348) Variable "max_groups" must not contain underscores.
(#349) Variable "max_groups" must not contain underscores.
(#350) Variable "group_section" must not contain underscores.
(#351) Variable "group_section" must not contain underscores.
(#353) Variable "group_section" must not contain underscores.
(#361) Variable "atribute_sections" must not contain underscores.
(#366) Variable "total_count_group" must not contain underscores.
(#367) Variable "atribute_sections" must not contain underscores.
(#367) Variable "atribute_section" must not contain underscores.
(#368) Variable "num_sections" must not contain underscores.
(#368) Variable "atribute_section" must not contain underscores.
(#371) Variable "count_first_btn_section" must not contain underscores.
(#372) Variable "num_sections" must not contain underscores.
(#373) Variable "array_sections" must not contain underscores.
(#375) Inline control structures are not allowed
(#376) Inline control structures are not allowed
(#376) Variable "num_sections" must not contain underscores.
(#376) Variable "total_count_group" must not contain underscores.
(#378) Inline control structures are not allowed
(#378) Variable "total_count_group" must not contain underscores.
(#379) Variable "count_first_btn_section" must not contain underscores.
(#380) Variable "atribute_section" must not contain underscores.
(#380) Variable "atribute_section" must not contain underscores.
(#381) Variable "num_sections" must not contain underscores.
(#381) Variable "total_count_group" must not contain underscores.
(#381) Line exceeds 132 characters; contains 142 characters
(#382) Variable "atribute_section" must not contain underscores.
(#382) Variable "count_first_btn_section" must not contain underscores.
(#383) Variable "atribute_section" must not contain underscores.
(#386) Variable "total_count_group" must not contain underscores.
(#386) Variable "num_sections" must not contain underscores.
(#389) Variable "array_sections" must not contain underscores.
(#399) Variable "baseChar" must be all lower-case
(#400) Opening brace should be on the same line as the declaration
(#404) Variable "baseChar" must be all lower-case
(#418) Opening brace should be on the same line as the declaration
(#435) Opening brace should be on the same line as the declaration
(#436) Short array syntax must be used to define arrays
(#438) There should be a comma after the last array item in a multi-line array.
(#463) Opening brace should be on the same line as the declaration
(#466) Inline comments must end in full-stops, exclamation marks, or question marks
(#466) No space found before comment text; expected "// If number its default" but found "//If number its default"
(#482) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#490) Inline comments must end in full-stops, exclamation marks, or question marks
(#490) No space found before comment text; expected "// If not option, Its default" but found "//If not option, Its default"
(#504) Variable "file_name" must not contain underscores.
(#505) Opening brace should be on the same line as the declaration
(#508) Variable "file_name" must not contain underscores.
(#508) Variable "file_name" must not contain underscores.
(#510) Variable "file_verified" must not contain underscores.
(#510) Short array syntax must be used to define arrays
(#515) There should be a comma after the last array item in a multi-line array.
(#515) Variable "file_name" must not contain underscores.
(#520) Variable "file_verified" must not contain underscores.
(#524) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#527) Variable "image_content" must not contain underscores.
(#529) Variable "image_base64" must not contain underscores.
(#529) Variable "image_content" must not contain underscores.
(#530) Variable "mime_type" must not contain underscores.
(#531) Variable "image_src" must not contain underscores.
(#531) Variable "mime_type" must not contain underscores.
(#531) Variable "image_base64" must not contain underscores.
(#533) Variable "image_src" must not contain underscores.
(#546) Opening brace should be on the same line as the declaration
(#559) Opening brace should be on the same line as the declaration
(#567) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Missing docblock for class section
(#38) Opening brace should be on the same line as the declaration for class section
(#47) Opening brace should be on the same line as the declaration
(#61) Opening brace should be on the same line as the declaration
(#72) Opening brace should be on the same line as the declaration
(#82) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section/cmitem.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Missing docblock for class cmitem
(#33) Opening brace should be on the same line as the declaration for class cmitem
(#43) Opening brace should be on the same line as the declaration
(#46) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section/controlmenu.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Missing docblock for class controlmenu
(#34) Opening brace should be on the same line as the declaration for class controlmenu
(#42) Opening brace should be on the same line as the declaration
(#52) Opening brace should be on the same line as the declaration
(#69) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/section/header.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Missing docblock for class header
(#37) Opening brace should be on the same line as the declaration for class header
(#38) Inline doc block comments are not allowed; use "// Comment." instead
(#43) Member variable "sectioname_return" must not contain underscores.
(#43) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#43) Scope modifier not specified for member variable "$sectioname_return"
(#52) Opening brace should be on the same line as the declaration
(#66) Opening brace should be on the same line as the declaration
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) No space found before comment text; expected "// Verified, if the config can sent sectioname" but found "//Verified, if the config can sent sectioname"
(#83) Opening brace should be on the same line as the declaration
(#87) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/sectionnavigation.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Missing docblock for class sectionnavigation
(#34) Opening brace should be on the same line as the declaration for class sectionnavigation
(#43) Opening brace should be on the same line as the declaration
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) No space found before comment text; expected "// Drop subsections" but found "//Drop subsections"
(#89) Logical operator "and" is prohibited; use "&&" instead
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) No space found before comment text; expected "// Drop subsections" but found "//Drop subsections"
(#111) File must end with a newline character
course/format/buttons/classes/output/courseformat/content/sectionselector.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Missing docblock for class sectionselector
(#41) Opening brace should be on the same line as the declaration for class sectionselector
(#66) Opening brace should be on the same line as the declaration
(#78) Opening brace should be on the same line as the declaration
(#104) Line indented incorrectly; expected 16 spaces, found 15
(#106) Closing brace indented incorrectly; expected 15 spaces, found 16
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) No space found before comment text; expected "// Deleted subsections" but found "//Deleted subsections"
(#113) This comment is 70% valid code; is this commented out code?
(#150) Opening brace should be on the same line as the declaration
(#163) Opening brace should be on the same line as the declaration
(#166) File must end with a newline character
course/format/buttons/classes/output/renderer.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Missing docblock for class renderer
(#37) Opening brace should be on the same line as the declaration for class renderer
(#48) Opening brace should be on the same line as the declaration
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
(#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
(#83) The string key "settings" is not in the correct order, it should be before "seven"
(#97) Unexpected string end, it should be a line feed after a semicolon
(#97) File must end with a newline character
course/format/buttons/lang/es/format_buttons.php
(#81) The string key "settings" is not in the correct order, it should be before "seven"
(#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
(#33) Opening brace should be on the same line as the declaration
(#45) Opening brace should be on the same line as the declaration
(#56) Opening brace should be on the same line as the declaration
(#66) Opening brace should be on the same line as the declaration
(#79) Opening brace should be on the same line as the declaration
(#91) Opening brace should be on the same line as the declaration
(#104) Opening brace should be on the same line as the declaration
(#114) 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
(#151) Short array syntax must be used to define arrays
(#156) There should be a comma after the last array item in a multi-line array.
(#159) Short array syntax must be used to define arrays
(#164) There should be a comma after the last array item in a multi-line array.
(#167) Short array syntax must be used to define arrays
(#172) There should be a comma after the last array item in a multi-line array.
(#175) Short array syntax must be used to define arrays
(#180) There should be a comma after the last array item in a multi-line array.
(#184) Short array syntax must be used to define arrays
(#190) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#195) There should be a comma after the last array item in a multi-line array.
(#196) There should be a comma after the last array item in a multi-line array.
(#197) There should be a comma after the last array item in a multi-line array.
(#200) Short array syntax must be used to define arrays
(#206) Short array syntax must be used to define arrays
(#207) Short array syntax must be used to define arrays
(#210) There should be a comma after the last array item in a multi-line array.
(#211) There should be a comma after the last array item in a multi-line array.
(#214) Short array syntax must be used to define arrays
(#220) Short array syntax must be used to define arrays
(#221) Short array syntax must be used to define arrays
(#224) There should be a comma after the last array item in a multi-line array.
(#225) There should be a comma after the last array item in a multi-line array.
(#228) Short array syntax must be used to define arrays
(#234) Short array syntax must be used to define arrays
(#235) Short array syntax must be used to define arrays
(#238) There should be a comma after the last array item in a multi-line array.
(#239) There should be a comma after the last array item in a multi-line array.
(#242) Variable "max_groups" must not contain underscores.
(#243) Variable "max_groups" must not contain underscores.
(#244) Variable "max_sections" must not contain underscores.
(#245) Variable "max_sections" must not contain underscores.
(#247) Variable "max_groups" must not contain underscores.
(#248) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
(#255) There should be a comma after the last array item in a multi-line array.
(#256) There should be a comma after the last array item in a multi-line array.
(#259) Short array syntax must be used to define arrays
(#266) Short array syntax must be used to define arrays
(#285) Possible useless method overriding detected
(#286) Opening brace should be on the same line as the declaration
(#287) Inline comments must end in full-stops, exclamation marks, or question marks
(#296) Opening brace should be on the same line as the declaration
(#311) Opening brace should be on the same line as the declaration
(#327) DocBlock missing a @package tag for function format_buttons_inplace_editable. Expected @package format_buttons
(#328) 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.
course/format/buttons/version.php
(#31) File must end with a newline character

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
(#56) Phpdocs for function content::__construct has incomplete parameters list
(#169) Phpdocs for function content::get_export_section has incomplete parameters list
(#187) Phpdocs for function content::get_initialsection has incomplete parameters list
(#338) Phpdocs for function content::agruping_sections has incomplete parameters list
(#395) Phpdocs for function content::convert_lowercase_letter has incomplete parameters list
(#414) Phpdocs for function content::convert_uppercase_letter has incomplete parameters list
(#458) Phpdocs for function content::get_namesection_for_btn has incomplete parameters list
(#499) Phpdocs for function content::get_content_file has incomplete parameters list
(#542) Phpdocs for function content::save_last_section_access has incomplete parameters list
course/format/buttons/lib.php
(#27) Phpdocs for function format_buttons::__construct has incomplete parameters list
(#144) Phpdocs for function format_buttons::course_format_options has incomplete parameters list
(#281) Phpdocs for function format_buttons::delete_section has incomplete parameters list
(#306) Phpdocs for function format_buttons::allow_stealth_module_visibility has incomplete parameters list
(#98) 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, 2 warnings)

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

course/format/buttons/templates/local/content.mustache
(#1) HTML Validation info, line 234: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (> <hr/> )
course/format/buttons/templates/local/content/section.mustache
(#1) HTML Validation error, line 13: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="section-3" class="section course-section main clearfix current " data-sectionid="3" data-sectionreturnnum="0" data-for="section" data-id="35" data-number="3" data-sectionname="Section title" > <)
course/format/buttons/templates/local/content/section/cmitem.mustache
(#1) HTML Validation error, line 8: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li class="activity forum modtype_forum newmessages " id="module-3" data-for="cmitem" data-id="3"> )
course/format/buttons/templates/local/content/section/content.mustache
(#1) HTML Validation info, line 31: Empty heading. ( <h3 class="h4 sectionname course-content-item d-flex align-self-stretch align-items-center mb-0" id="sectionid-10-title" data-for="section_title" data-id="10" data-number="1"> )
course/format/buttons/templates/local/content/sectionselector.mustache
(#1) HTML Validation info, line 2: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (ad><body><hr/><div )

Gherkin .feature problems

(0 errors, 0 warnings)

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