Prechecker results: error


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

(318 errors, 81 warnings)

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

course/format/onetopic/duplicate.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#45) Variable "num_newsection" must not contain underscores.
(#59) Variable "course_format" must not contain underscores.
(#61) Variable "last_section_num" must not contain underscores.
(#63) This comment is 60% valid code; is this commented out code?
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) No space found before comment text; expected "// $courseformatoptions = $course_format->get_format_options();" but found "//$courseformatoptions = $course_format->get_format_options();"
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) This comment is 100% valid code; is this commented out code?
(#64) No space found before comment text; expected "// $courseformatoptions['numsections']++;" but found "//$courseformatoptions['numsections']++;"
(#65) Variable "num_newsection" must not contain underscores.
(#65) Variable "last_section_num" must not contain underscores.
(#67) Variable "course_format" must not contain underscores.
(#67) Variable "num_newsection" must not contain underscores.
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) No space found before comment text; expected "// Assign same section info" but found "//Assign same section info"
(#77) Variable "num_newsection" must not contain underscores.
(#78) No space found before comment text; expected "// The name is not duplicated" but found "//The name is not duplicated"
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) This comment is 50% valid code; is this commented out code?
(#79) No space found before comment text; expected "// $data->name = $sectioninfo->name;" but found "//$data->name = $sectioninfo->name;"
(#85) Variable "new_section_id" must not contain underscores.
(#87) Variable "num_newsection" must not contain underscores.
(#89) Variable "num_newsection" must not contain underscores.
(#92) Variable "format_options" must not contain underscores.
(#92) Variable "course_format" must not contain underscores.
(#93) Variable "format_options" must not contain underscores.
(#93) Variable "format_options" must not contain underscores.
(#94) Variable "format_options" must not contain underscores.
(#94) Variable "new_section_id" must not contain underscores.
(#95) Variable "course_format" must not contain underscores.
(#95) Variable "format_options" must not contain underscores.
(#101) Variable "new_section_id" must not contain underscores.
(#104) Variable "num_newsection" must not contain underscores.
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) This comment is 70% valid code; is this commented out code?
(#110) No space found before comment text; expected "// rebuild_course_cache($course->id, true);" but found "//rebuild_course_cache($course->id, true);"
(#111) Variable "new_sectioninfo" must not contain underscores.
(#111) Variable "num_newsection" must not contain underscores.
(#116) Variable "section_mods" must not contain underscores.
(#118) Variable "section_mods" must not contain underscores.
(#120) Variable "progress_bar_elements" must not contain underscores.
(#120) Variable "section_mods" must not contain underscores.
(#121) Variable "data_progress" must not contain underscores.
(#122) Variable "data_progress" must not contain underscores.
(#123) Variable "data_progress" must not contain underscores.
(#123) Variable "progress_bar_elements" must not contain underscores.
(#125) Variable "data_progress" must not contain underscores.
(#126) Variable "section_mods" must not contain underscores.
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) No space found before comment text; expected "// Move new module to new section" but found "//Move new module to new section"
(#137) Expected "if (...) {\n"; found "if(...) {\n"
(#138) Variable "new_sectioninfo" must not contain underscores.
(#141) Variable "data_progress" must not contain underscores.
(#142) Variable "progress_bar_elements" must not contain underscores.
(#143) Variable "data_progress" must not contain underscores.
(#147) Expected "} else {\n"; found "}\n else {\n"
(#151) Variable "section_togo" must not contain underscores.
(#151) Variable "num_newsection" must not contain underscores.
(#153) Expected "} else {\n"; found "}\nelse {\n"
(#154) Variable "section_togo" must not contain underscores.
(#160) Variable "num_newsection" must not contain underscores.
(#163) No space found before comment text; expected "// Redirect to new section or to current section if the new was not created" but found "//Redirect to new section or to current section if the new was not created"
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) No space found before comment text; expected "// redirect(course_get_url($course, $num_newsection));" but found "//redirect(course_get_url($course, $num_newsection));"
course/format/onetopic/format.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Expected 1 space after ">="; 0 found
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) No space found before comment text; expected "// onetopic format is always multipage" but found "//onetopic format is always multipage"
(#64) Whitespace found at end of line
(#65) Expected "} else {\n"; found "} \nelse {\n"
(#74) Variable "disable_ajax" must not contain underscores.
(#80) Variable "disable_ajax" must not contain underscores.
(#81) Variable "disable_ajax" must not contain underscores.
(#84) Expected "} else {\n"; found "}\n else {\n"
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/onetopic/lang/en/format_onetopic.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
course/format/onetopic/lang/es/format_onetopic.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
course/format/onetopic/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#137) Variable "disable_ajax" must not contain underscores.
(#140) Variable "disable_ajax" must not contain underscores.
(#152) Inline comments must start with a capital letter, digit or 3-dots sequence
(#152) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must start with a capital letter, digit or 3-dots sequence
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#185) Visibility must be declared on method "ajax_section_move"
(#360) Expected 1 space before "+"; 0 found
(#360) Expected 1 space after "+"; 0 found
(#392) This comment is 43% valid code; is this commented out code?
(#393) Inline comments must end in full-stops, exclamation marks, or question marks
(#394) Whitespace found at end of line within string
(#397) Inline comments must end in full-stops, exclamation marks, or question marks
(#402) This comment is 43% valid code; is this commented out code?
(#403) Inline comments must end in full-stops, exclamation marks, or question marks
(#417) Whitespace found at end of line within string
(#502) Line exceeds 132 characters; contains 137 characters
(#502) Inline comments must start with a capital letter, digit or 3-dots sequence
(#502) Inline comments must end in full-stops, exclamation marks, or question marks
(#502) This comment is 75% valid code; is this commented out code?
(#502) No space found before comment text; expected "// array_merge_recursive($sectionformatoptions, $sectionformatoptionsedit);" but found "//array_merge_recursive($sectionformatoptions, $sectionformatoptionsedit);"
(#540) Inline comments must end in full-stops, exclamation marks, or question marks
(#540) No space found before comment text; expected "// Change text for alternative text" but found "//Change text for alternative text"
(#541) Variable "new_replace" must not contain underscores.
(#543) Inline comments must start with a capital letter, digit or 3-dots sequence
(#543) Inline comments must end in full-stops, exclamation marks, or question marks
(#543) No space found before comment text; expected "// posible html tags position" but found "//posible html tags position"
(#559) Variable "new_replace" must not contain underscores.
(#561) Expected "} else {\n"; found "}\n else {\n"
(#562) Inline comments must end in full-stops, exclamation marks, or question marks
(#562) No space found before comment text; expected "// Change tag for resource or mod name" but found "//Change tag for resource or mod name"
(#563) Variable "new_replace" must not contain underscores.
(#564) Variable "new_replace" must not contain underscores.
course/format/onetopic/renderer.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#47) Line exceeds 132 characters; contains 136 characters
(#48) Line exceeds 132 characters; contains 139 characters
(#93) Line exceeds 132 characters; contains 163 characters
(#137) Variable "real_course_display" must not contain underscores.
(#140) Variable "real_course_display" must not contain underscores.
(#140) Whitespace found at end of line
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) Variable "format_data" must not contain underscores.
(#157) Variable "format_data" must not contain underscores.
(#158) Variable "format_data" must not contain underscores.
(#160) Variable "format_data" must not contain underscores.
(#165) Line exceeds 132 characters; contains 170 characters
(#172) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) No space found before comment text; expected "// Move controls" but found "//Move controls"
(#187) Variable "can_move" must not contain underscores.
(#189) Variable "can_move" must not contain underscores.
(#191) Variable "move_list_html" must not contain underscores.
(#192) Variable "count_move_sections" must not contain underscores.
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) No space found before comment text; expected "// Init custom tabs" but found "//Init custom tabs"
(#199) Variable "inactive_tabs" must not contain underscores.
(#201) Variable "default_topic" must not contain underscores.
(#216) Expected "} else if (...) {\n"; found "}\n else if (...){\n"
(#216) Expected "if (...) {\n"; found "if (...){\n"
(#227) Variable "default_topic" must not contain underscores.
(#228) Variable "default_topic" must not contain underscores.
(#231) Variable "default_topic" must not contain underscores.
(#235) Variable "format_options" must not contain underscores.
(#243) Variable "custom_styles" must not contain underscores.
(#245) Variable "format_options" must not contain underscores.
(#247) Variable "format_options" must not contain underscores.
(#248) Variable "custom_styles" must not contain underscores.
(#248) Variable "format_options" must not contain underscores.
(#251) Variable "format_options" must not contain underscores.
(#252) Variable "custom_styles" must not contain underscores.
(#252) Variable "format_options" must not contain underscores.
(#255) Variable "format_options" must not contain underscores.
(#256) Variable "custom_styles" must not contain underscores.
(#256) Variable "format_options" must not contain underscores.
(#259) Variable "format_options" must not contain underscores.
(#260) Variable "format_options" must not contain underscores.
(#270) Variable "special_style" must not contain underscores.
(#272) Variable "special_style" must not contain underscores.
(#272) Whitespace found at end of line
(#276) Variable "special_style" must not contain underscores.
(#279) Variable "inactive_tabs" must not contain underscores.
(#283) Variable "new_tab" must not contain underscores.
(#284) Variable "custom_styles" must not contain underscores.
(#284) Variable "special_style" must not contain underscores.
(#284) Line exceeds 132 characters; contains 149 characters
(#286) Variable "format_options" must not contain underscores.
(#286) Variable "format_options" must not contain underscores.
(#288) Expected "if (...) {\n"; found "if(...) {\n"
(#288) Variable "format_options" must not contain underscores.
(#289) Variable "new_tab" must not contain underscores.
(#290) Variable "new_tab" must not contain underscores.
(#292) Expected "} else {\n"; found "}\n else {\n"
(#293) Variable "parent_index" must not contain underscores.
(#294) Variable "parent_index" must not contain underscores.
(#295) Variable "parent_index" must not contain underscores.
(#297) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#297) Variable "parent_index" must not contain underscores.
(#298) Variable "parent_index" must not contain underscores.
(#298) Variable "parent_index" must not contain underscores.
(#299) Variable "parent_index" must not contain underscores.
(#300) Variable "parent_section" must not contain underscores.
(#300) Expected 1 space before "-"; 0 found
(#300) Expected 1 space after "-"; 0 found
(#301) Variable "parentformat_options" must not contain underscores.
(#301) Variable "parent_section" must not contain underscores.
(#302) Variable "parentformat_options" must not contain underscores.
(#303) Variable "firsttab_text" must not contain underscores.
(#303) Variable "parentformat_options" must not contain underscores.
(#305) Variable "firsttab_text" must not contain underscores.
(#307) Variable "parent_index" must not contain underscores.
(#307) Variable "firsttab_text" must not contain underscores.
(#307) Line exceeds 132 characters; contains 140 characters
(#308) Variable "parent_index" must not contain underscores.
(#310) Expected "if (...) {\n"; found "if(...) {\n"
(#311) Variable "parent_index" must not contain underscores.
(#314) Variable "new_tab" must not contain underscores.
(#315) Variable "parent_index" must not contain underscores.
(#315) Variable "new_tab" must not contain underscores.
(#318) Expected "} else {\n"; found "}\n else {\n"
(#319) Variable "new_tab" must not contain underscores.
(#322) Inline comments must end in full-stops, exclamation marks, or question marks
(#322) No space found before comment text; expected "// Init move section list***************************************************************************" but found "//Init move section list***************************************************************************"
(#323) Variable "can_move" must not contain underscores.
(#324) Inline comments must end in full-stops, exclamation marks, or question marks
(#332) No space found before comment text; expected "// ToDo: For new feature: subtabs. It is not implemented yet" but found "//ToDo: For new feature: subtabs. It is not implemented yet"
(#333) This comment is 54% valid code; is this commented out code?
(#335) Line exceeds 132 characters; contains 149 characters
(#337) Line exceeds 132 characters; contains 160 characters
(#348) Inline comments must end in full-stops, exclamation marks, or question marks
(#348) Line exceeds maximum limit of 180 characters; contains 215 characters
(#348) No space found before comment text; expected "// Define class from sublevels in order to move a margen in the left. Not apply if it is the first element (condition !empty($move_list_html)) because the first element can't be a sublevel" but found "//Define class from sublevels in order to move a margen in the left. Not apply if it is the first element (condition !empty($move_list_html)) because the first element can't be a sublevel"
(#349) Variable "li_class" must not contain underscores.
(#350) Variable "format_options" must not contain underscores.
(#350) Variable "format_options" must not contain underscores.
(#350) Variable "format_options" must not contain underscores.
(#350) Variable "move_list_html" must not contain underscores.
(#350) Line exceeds 132 characters; contains 154 characters
(#351) Variable "li_class" must not contain underscores.
(#355) Variable "move_list_html" must not contain underscores.
(#355) Variable "li_class" must not contain underscores.
(#355) Line exceeds 132 characters; contains 142 characters
(#356) Line indented incorrectly; expected 28 spaces, found 31
(#356) Closing brace indented incorrectly; expected 28 spaces, found 31
(#357) Expected "} else {\n"; found "}\n else {\n"
(#358) Variable "move_list_html" must not contain underscores.
(#358) Variable "li_class" must not contain underscores.
(#362) Line exceeds 132 characters; contains 134 characters
(#362) Inline comments must end in full-stops, exclamation marks, or question marks
(#362) No space found before comment text; expected "// End move section list***************************************************************************" but found "//End move section list***************************************************************************"
(#362) Whitespace found at end of line
(#397) Variable "inactive_tabs" must not contain underscores.
(#397) Inline comments must start with a capital letter, digit or 3-dots sequence
(#397) Inline comments must end in full-stops, exclamation marks, or question marks
(#397) This comment is 62% valid code; is this commented out code?
(#397) Line exceeds maximum limit of 180 characters; contains 189 characters
(#397) No space found before comment text; expected "// print_tabs($tabs, "tab_topic_" . $displaysection, $inactive_tabs, $active_tabs, true);" but found "//print_tabs($tabs, "tab_topic_" . $displaysection, $inactive_tabs, $active_tabs, true);"
(#403) Empty IF statement detected
(#404) Inline comments must end in full-stops, exclamation marks, or question marks
(#404) No space found before comment text; expected "// Not used more, is controled in /course/view.php" but found "//Not used more, is controled in /course/view.php"
(#408) Expected "} else {\n"; found "}\n else {\n"
(#424) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#442) Inline comments must start with a capital letter, digit or 3-dots sequence
(#444) Whitespace found at end of line
(#448) Line exceeds maximum limit of 180 characters; contains 186 characters
(#449) Whitespace found at end of line
(#449) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#451) Inline comments must end in full-stops, exclamation marks, or question marks
(#451) No space found before comment text; expected "// Move controls" but found "//Move controls"
(#452) Variable "can_move" must not contain underscores.
(#452) Variable "move_list_html" must not contain underscores.
(#458) Variable "move_list_html" must not contain underscores.
(#465) Whitespace found at end of line
(#474) Variable "text_button_disableajax" must not contain underscores.
(#476) Expected "} else {\n"; found "}\n else {\n"
(#478) Variable "text_button_disableajax" must not contain underscores.
(#486) Variable "text_button_disableajax" must not contain underscores.
(#493) Inline comments must end in full-stops, exclamation marks, or question marks
(#493) No space found before comment text; expected "// Duplicate current section option" but found "//Duplicate current section option"
(#495) Variable "url_duplicate" must not contain underscores.
(#495) Line exceeds 132 characters; contains 177 characters
(#497) Variable "url_duplicate" must not contain underscores.
(#498) Line exceeds 132 characters; contains 156 characters
(#529) Whitespace found at end of line
(#533) Whitespace found at end of line
(#542) Whitespace found at end of line
(#543) Expected 1 space before ".="; 0 found
(#544) Expected 1 space before "=>"; 0 found
(#544) Expected 1 space after "=>"; 0 found
(#545) Expected 1 space before "=>"; 0 found
(#546) Whitespace found at end of line
(#548) Expected 1 space before ".="; 0 found
(#549) Whitespace found at end of line
(#551) Expected 1 space before ".="; 0 found
(#552) Expected 1 space before ".="; 0 found
(#553) Whitespace found at end of line
(#557) Expected 1 space before ".="; 0 found
(#559) Expected 1 space before ".="; 0 found
(#560) Expected 1 space before ".="; 0 found
(#561) Expected 1 space before ".="; 0 found
(#562) Whitespace found at end of line
(#680) Inline comments must end in full-stops, exclamation marks, or question marks
(#680) 3 slashes comments are not allowed; use "// Comment." instead
(#685) Variable "html_resource" must not contain underscores.
(#686) Variable "html_more" must not contain underscores.
(#691) Variable "obj_replace" must not contain underscores.
(#707) Inline comments must end in full-stops, exclamation marks, or question marks
(#713) Variable "html_resource" must not contain underscores.
(#715) Expected "} else {\n"; found "}\n else {\n"
(#716) Variable "html_resource" must not contain underscores.
(#730) Inline comments must end in full-stops, exclamation marks, or question marks
(#731) Variable "html_resource" must not contain underscores.
(#734) Variable "availability_text" must not contain underscores.
(#736) Variable "availability_text" must not contain underscores.
(#737) Variable "unique_id" must not contain underscores.
(#738) Variable "html_resource" must not contain underscores.
(#738) Variable "unique_id" must not contain underscores.
(#738) Line exceeds 132 characters; contains 179 characters
(#740) Variable "html_more" must not contain underscores.
(#740) Variable "unique_id" must not contain underscores.
(#740) Variable "availability_text" must not contain underscores.
(#740) Line exceeds 132 characters; contains 151 characters
(#743) Inline comments must end in full-stops, exclamation marks, or question marks
(#743) No space found before comment text; expected "// Replace the link in pattern: [[resource name]]" but found "//Replace the link in pattern: [[resource name]]"
(#744) Variable "obj_replace" must not contain underscores.
(#744) Variable "html_resource" must not contain underscores.
(#745) Variable "obj_replace" must not contain underscores.
(#747) Variable "new_summary" must not contain underscores.
(#747) Variable "obj_replace" must not contain underscores.
(#747) Variable "obj_replace" must not contain underscores.
(#747) Line exceeds maximum limit of 180 characters; contains 213 characters
(#747) Whitespace found at end of line
(#749) Variable "new_summary" must not contain underscores.
(#753) Variable "new_summary" must not contain underscores.
(#762) Variable "html_more" must not contain underscores.
(#792) Inline comments must start with a capital letter, digit or 3-dots sequence
(#792) Inline comments must end in full-stops, exclamation marks, or question marks
(#799) Inline comments must end in full-stops, exclamation marks, or question marks
(#804) Inline comments must end in full-stops, exclamation marks, or question marks
(#804) No space found before comment text; expected "// Custom modification in order to hide resources if they are shown in summary" but found "//Custom modification in order to hide resources if they are shown in summary"
(#808) Inline comments must end in full-stops, exclamation marks, or question marks
(#808) No space found before comment text; expected "// End of custom modification" but found "//End of custom modification"
(#813) Inline comments must start with a capital letter, digit or 3-dots sequence
(#813) Inline comments must end in full-stops, exclamation marks, or question marks
(#830) Line exceeds 132 characters; contains 141 characters
(#840) Line exceeds 132 characters; contains 137 characters
course/format/onetopic/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#28) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(2 errors, 8 warnings)

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

course/format/onetopic/format.js
(#7) Identifier 'show_info' is not in camel case. (camelcase)
(#9) 'dialog' is defined but never used (no-unused-vars)
(#10) Extra space after key 'draggable'. (key-spacing)
(#12) Extra space after key 'bodyContent'. (key-spacing)
(#13) Extra space after key 'centered'. (key-spacing)
(#14) Extra space after key 'width'. (key-spacing)
(#15) Extra space after key 'modal'. (key-spacing)
(#16) Extra space after key 'visible'. (key-spacing)
(#21) Missing semicolon. (semi)
(#23) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(0 errors, 1 warnings)

This section shows CSS problems detected by csslint [More info]

course/format/onetopic/styles.css
(#25) Unknown property 'opactity'.

PHPDocs style problems

(23 errors, 1 warnings)

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

course/format/onetopic/duplicate.php
(#20) Package contribution is not valid
course/format/onetopic/format.php
(#2) Empty line found after PHP open tag
(#16) No one-line description found in phpdocs for file
(#19) Package contribution is not valid
course/format/onetopic/lang/en/format_onetopic.php
(#20) Package contribution is not valid
course/format/onetopic/lang/es/format_onetopic.php
(#20) Package contribution is not valid
course/format/onetopic/lib.php
(#37) Class format_onetopic is not documented
(#521) Class format_onetopic_replace_regularexpression is not documented
(#428) Function format_onetopic::section_format_options is not documented
(#527) Function format_onetopic_replace_regularexpression::replace_tag_in_expresion is not documented
(#522) Variable format_onetopic_replace_regularexpression::$_string_search is not documented
(#523) Variable format_onetopic_replace_regularexpression::$_string_replace is not documented
(#525) Variable format_onetopic_replace_regularexpression::$_tag_string is not documented
(#39) Constant format_onetopic::TEMPLATETOPIC_NOT is not documented
(#40) Constant format_onetopic::TEMPLATETOPIC_SINGLE is not documented
(#41) Constant format_onetopic::TEMPLATETOPIC_LIST is not documented
(#32) Package contribution is not valid
course/format/onetopic/renderer.php
(#652) Function format_onetopic_renderer::replace_resources is not documented
(#35) Variable format_onetopic_renderer::$_format_data is not documented
(#36) Variable format_onetopic_renderer::$_course is not documented
(#680) Found comment starting with three or more slashes
(#16) No one-line description found in phpdocs for file
(#19) Package contribution is not valid
course/format/onetopic/version.php
(#19) Package contribution is not valid

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]