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

(189 errors, 34 warnings)

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

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/lang/eu/format_onetopic.php
(#1) File has mixed line endings; this may cause incorrect results
(#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/>.".
(#114) Whitespace found at end of line
(#116) Whitespace found at end of line
(#116) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#117) Whitespace found at end of line
(#121) Whitespace found at end of line
(#122) Variable "disable_ajax" must not contain underscores.
(#123) Whitespace found at end of line
(#125) Variable "disable_ajax" must not contain underscores.
(#137) Inline comments must start with a capital letter, digit or 3-dots sequence
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Inline comments must start with a capital letter, digit or 3-dots sequence
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Visibility must be declared on method "ajax_section_move"
(#299) Expected 1 space before "+"; 0 found
(#299) Expected 1 space after "+"; 0 found
(#331) This comment is 43% valid code; is this commented out code?
(#332) Inline comments must end in full-stops, exclamation marks, or question marks
(#333) Whitespace found at end of line within string
(#336) Inline comments must end in full-stops, exclamation marks, or question marks
(#341) This comment is 43% valid code; is this commented out code?
(#342) Inline comments must end in full-stops, exclamation marks, or question marks
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/>.".
(#44) Line exceeds 132 characters; contains 136 characters
(#45) Line exceeds 132 characters; contains 139 characters
(#134) Line exceeds 132 characters; contains 163 characters
(#177) Whitespace found at end of line
(#178) Variable "real_course_display" must not contain underscores.
(#181) Variable "real_course_display" must not contain underscores.
(#181) Whitespace found at end of line
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#200) Line exceeds 132 characters; contains 170 characters
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#214) Inline comments must end in full-stops, exclamation marks, or question marks
(#214) No space found before comment text; expected "// Move controls" but found "//Move controls"
(#215) Variable "can_move" must not contain underscores.
(#217) Variable "can_move" must not contain underscores.
(#219) Variable "move_list_html" must not contain underscores.
(#220) Variable "count_move_sections" must not contain underscores.
(#222) Inline comments must end in full-stops, exclamation marks, or question marks
(#222) No space found before comment text; expected "// Init custom tabs" but found "//Init custom tabs"
(#227) Variable "inactive_tabs" must not contain underscores.
(#229) Variable "default_topic" must not contain underscores.
(#232) Whitespace found at end of line
(#239) Whitespace found at end of line
(#244) Expected "} else if (...) {\n"; found "}\n else if (...){\n"
(#244) Expected "if (...) {\n"; found "if (...){\n"
(#247) Whitespace found at end of line
(#254) Whitespace found at end of line
(#255) Variable "default_topic" must not contain underscores.
(#256) Variable "default_topic" must not contain underscores.
(#257) Whitespace found at end of line
(#259) Variable "default_topic" must not contain underscores.
(#274) Whitespace found at end of line
(#275) Variable "special_style" must not contain underscores.
(#277) Variable "special_style" must not contain underscores.
(#277) Whitespace found at end of line
(#281) Variable "special_style" must not contain underscores.
(#282) Whitespace found at end of line
(#284) Variable "inactive_tabs" must not contain underscores.
(#289) Variable "special_style" must not contain underscores.
(#289) Line exceeds 132 characters; contains 135 characters
(#290) Whitespace found at end of line
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) No space found before comment text; expected "// Init move section list***************************************************************************" but found "//Init move section list***************************************************************************"
(#292) Variable "can_move" must not contain underscores.
(#293) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) Whitespace found at end of line
(#300) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#301) Whitespace found at end of line
(#303) Variable "move_list_html" must not contain underscores.
(#304) Line indented incorrectly; expected 28 spaces, found 31
(#304) Closing brace indented incorrectly; expected 28 spaces, found 31
(#305) Expected "} else {\n"; found "}\n else {\n"
(#306) Variable "move_list_html" must not contain underscores.
(#310) Line exceeds 132 characters; contains 134 characters
(#310) Inline comments must end in full-stops, exclamation marks, or question marks
(#310) No space found before comment text; expected "// End move section list***************************************************************************" but found "//End move section list***************************************************************************"
(#310) Whitespace found at end of line
(#313) Whitespace found at end of line
(#320) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#323) Variable "inactive_tabs" must not contain underscores.
(#323) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#324) Whitespace found at end of line
(#325) Whitespace found at end of line
(#329) Empty IF statement detected
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#330) 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"
(#334) Expected "} else {\n"; found "}\n else {\n"
(#362) Inline comments must start with a capital letter, digit or 3-dots sequence
(#364) Whitespace found at end of line
(#368) Line exceeds maximum limit of 180 characters; contains 186 characters
(#369) Whitespace found at end of line
(#369) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#371) Inline comments must end in full-stops, exclamation marks, or question marks
(#371) No space found before comment text; expected "// Move controls" but found "//Move controls"
(#372) Variable "can_move" must not contain underscores.
(#372) Variable "move_list_html" must not contain underscores.
(#378) Variable "move_list_html" must not contain underscores.
(#385) Whitespace found at end of line
(#390) Whitespace found at end of line
(#394) Variable "text_button_disableajax" must not contain underscores.
(#396) Expected "} else {\n"; found "}\n else {\n"
(#398) Variable "text_button_disableajax" must not contain underscores.
(#406) Variable "text_button_disableajax" must not contain underscores.
(#412) Whitespace found at end of line
(#429) Whitespace found at end of line
(#433) Whitespace found at end of line
(#442) Whitespace found at end of line
(#443) Expected 1 space before ".="; 0 found
(#444) Expected 1 space before "=>"; 0 found
(#444) Expected 1 space after "=>"; 0 found
(#445) Expected 1 space before "=>"; 0 found
(#446) Whitespace found at end of line
(#448) Expected 1 space before ".="; 0 found
(#449) Whitespace found at end of line
(#451) Expected 1 space before ".="; 0 found
(#452) Expected 1 space before ".="; 0 found
(#453) Whitespace found at end of line
(#456) Expected 1 space before ".="; 0 found
(#457) Whitespace found at end of line
(#458) Expected 1 space before ".="; 0 found
(#459) Expected 1 space before ".="; 0 found
(#460) Whitespace found at end of line
(#463) Expected 1 space before "=>"; 0 found
(#463) Expected 1 space after "=>"; 0 found
(#463) Expected 1 space before "=>"; 0 found
(#463) Expected 1 space after "=>"; 0 found
(#464) Expected 1 space before ".="; 0 found
(#469) Expected 1 space before ".="; 0 found
(#470) Whitespace found at end of line
(#473) Whitespace found at end of line
(#488) Whitespace found at end of line
(#493) Whitespace found at end of line
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

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 1 warnings)

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

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

PHPDocs style problems

(10 errors, 1 warnings)

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

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/lang/eu/format_onetopic.php
(#20) Package contribution is not valid
course/format/onetopic/lib.php
(#37) Class format_onetopic is not documented
(#32) Package contribution is not valid
course/format/onetopic/renderer.php
(#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]


Mustache template problems

(0 errors, 0 warnings)

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