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

(171 errors, 68 warnings)

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

course/format/folderview/addmod.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
course/format/folderview/addsection.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
course/format/folderview/config.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
course/format/folderview/db/install.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
course/format/folderview/db/upgrade.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/folderview/format.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#46) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline doc block comments are not allowed; use "// Comment." instead
(#51) Inline doc block comments are not allowed; use "// Comment." instead
course/format/folderview/lang/en/format_folderview.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
course/format/folderview/lib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#98) Inline comments must start with a capital letter, digit or 3-dots sequence
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) This comment is 43% valid code; is this commented out code?
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) Inline comments must end in full-stops, exclamation marks, or question marks
(#234) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Line exceeds 132 characters; contains 138 characters
(#266) Inline comments must start with a capital letter, digit or 3-dots sequence
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Inline comments must start with a capital letter, digit or 3-dots sequence
(#269) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) No space found before comment text; expected "// use display cache for one course only - we need to keep session small" but found "//use display cache for one course only - we need to keep session small"
(#293) Inline comments must start with a capital letter, digit or 3-dots sequence
(#293) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) No space found before comment text; expected "// show all, do not store anything in database" but found "//show all, do not store anything in database"
(#298) Line exceeds 132 characters; contains 134 characters
(#309) Inline comments must start with a capital letter, digit or 3-dots sequence
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#309) No space found before comment text; expected "// use display cache for one course only - we need to keep session small" but found "//use display cache for one course only - we need to keep session small"
course/format/folderview/renderer.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#88) Line exceeds 132 characters; contains 173 characters
(#89) Line exceeds 132 characters; contains 142 characters
(#92) Line exceeds 132 characters; contains 142 characters
(#107) Line exceeds 132 characters; contains 164 characters
(#108) Line exceeds 132 characters; contains 149 characters
(#124) Line exceeds 132 characters; contains 145 characters
(#129) Line exceeds 132 characters; contains 159 characters
(#130) Line exceeds 132 characters; contains 136 characters
(#142) Line exceeds 132 characters; contains 172 characters
(#143) Line exceeds 132 characters; contains 141 characters
(#146) Line exceeds 132 characters; contains 169 characters
(#147) Line exceeds 132 characters; contains 139 characters
(#166) Line exceeds 132 characters; contains 150 characters
(#192) Inline comments must end in full-stops, exclamation marks, or question marks
(#210) Inline comments must end in full-stops, exclamation marks, or question marks
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#256) Inline comments must start with a capital letter, digit or 3-dots sequence
(#300) Line exceeds 132 characters; contains 143 characters
(#301) Line exceeds 132 characters; contains 149 characters
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#335) Line exceeds maximum limit of 180 characters; contains 221 characters
(#341) Line exceeds maximum limit of 180 characters; contains 224 characters
(#347) Line exceeds maximum limit of 180 characters; contains 221 characters
(#350) Line exceeds maximum limit of 180 characters; contains 230 characters
(#354) Inline comments must end in full-stops, exclamation marks, or question marks
(#358) Inline comments must start with a capital letter, digit or 3-dots sequence
(#358) Inline comments must end in full-stops, exclamation marks, or question marks
(#358) No space found before comment text; expected "// output the Cancel button for all add dialogs" but found "//output the Cancel button for all add dialogs"
(#360) Line exceeds maximum limit of 180 characters; contains 189 characters
(#367) Inline comments must start with a capital letter, digit or 3-dots sequence
(#367) No space found before comment text; expected "// close dialog content area" but found "//close dialog content area"
(#368) Inline comments must end in full-stops, exclamation marks, or question marks
(#368) No space found before comment text; expected "// close dialog container" but found "//close dialog container"
(#385) Line exceeds 132 characters; contains 141 characters
(#389) Line exceeds 132 characters; contains 168 characters
(#390) Line exceeds 132 characters; contains 164 characters
(#391) Line exceeds 132 characters; contains 160 characters
(#473) Inline comments must end in full-stops, exclamation marks, or question marks
(#473) No space found before comment text; expected "// Output topic selector (which defaults to current topic)" but found "//Output topic selector (which defaults to current topic)"
(#493) Inline comments must start with a capital letter, digit or 3-dots sequence
(#493) Inline comments must end in full-stops, exclamation marks, or question marks
(#493) No space found before comment text; expected "// close addResource" but found "//close addResource"
(#558) Line exceeds 132 characters; contains 162 characters
(#561) Line exceeds 132 characters; contains 136 characters
(#570) Line exceeds 132 characters; contains 136 characters
course/format/folderview/rest.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#46) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/folderview/version.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(0 errors, 7 warnings)

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

course/format/folderview/format.js
(#90) Expected '===' and instead saw '=='.
course/format/folderview/yui/menu/menu.js
(#108) Expected '!==' and instead saw '!='.
(#164) Expected '!==' and instead saw '!='.
(#174) Expected '===' and instead saw '=='.
(#220) Missing semicolon.
(#52) 'config' is defined but never used.
course/format/folderview/yui/src/sectiontoggle/js/sectiontoggle.js
(#30) Redefinition of 'CSS'.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(20 errors, 1 warnings)

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

course/format/folderview/db/upgrade.php
(#25) Phpdocs for function xmldb_format_folderview_upgrade has incomplete parameters list
course/format/folderview/lib.php
(#32) Function format_folderview::get_course is not documented
(#39) Function format_folderview::uses_sections is not documented
(#43) Function format_folderview::get_view_url is not documented
(#62) Function format_folderview::get_section_name is not documented
(#73) Function format_folderview::supports_ajax is not documented
(#80) Function format_folderview::ajax_section_move is not documented
(#95) Function format_folderview::extend_course_navigation is not documented
(#111) Function format_folderview::course_format_options is not documented
(#161) Function format_folderview::update_course_format_options is not documented
(#28) No one-line description found in phpdocs for class format_folderview
(#193) Phpdocs for function format_folderview_delete_course has incomplete parameters list
(#28) Class format_folderview does not have @copyright tag
(#28) Class format_folderview does not have @license tag
(#29) Not recommended phpdocs tag @method used
course/format/folderview/renderer.php
(#66) Function format_folderview_renderer::section_title is not documented
(#77) Function format_folderview_renderer::section_left_content is not documented
(#100) Function format_folderview_renderer::section_edit_controls is not documented
(#159) Function format_folderview_renderer::print_multiple_section_page is not documented
(#260) Function format_folderview_renderer::section_nav_selection is not documented
(#173) There is no description in phpdocs for function print_single_section_page

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]