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

(172 errors, 64 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/>.".
(#103) Inline comments must start with a capital letter, digit or 3-dots sequence
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) This comment is 43% valid code; is this commented out code?
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#255) Inline comments must end in full-stops, exclamation marks, or question marks
(#286) Line exceeds 132 characters; contains 138 characters
(#287) Inline comments must start with a capital letter, digit or 3-dots sequence
(#287) Inline comments must end in full-stops, exclamation marks, or question marks
(#290) Inline comments must start with a capital letter, digit or 3-dots sequence
(#290) Inline comments must end in full-stops, exclamation marks, or question marks
(#290) 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"
(#314) Inline comments must start with a capital letter, digit or 3-dots sequence
(#314) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) 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"
(#319) Line exceeds 132 characters; contains 134 characters
(#330) Inline comments must start with a capital letter, digit or 3-dots sequence
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#330) 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 maximum limit of 180 characters; contains 187 characters
(#92) Line exceeds 132 characters; contains 142 characters
(#107) Line exceeds 132 characters; contains 164 characters
(#124) Line exceeds 132 characters; contains 145 characters
(#128) Line exceeds 132 characters; contains 147 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
(#181) Inline comments must end in full-stops, exclamation marks, or question marks
(#199) Inline comments must end in full-stops, exclamation marks, or question marks
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) Line exceeds maximum limit of 180 characters; contains 221 characters
(#340) Line exceeds maximum limit of 180 characters; contains 224 characters
(#346) Line exceeds maximum limit of 180 characters; contains 221 characters
(#349) Line exceeds maximum limit of 180 characters; contains 230 characters
(#353) Inline comments must end in full-stops, exclamation marks, or question marks
(#357) Inline comments must start with a capital letter, digit or 3-dots sequence
(#357) Inline comments must end in full-stops, exclamation marks, or question marks
(#357) 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"
(#359) Line exceeds maximum limit of 180 characters; contains 189 characters
(#366) Inline comments must start with a capital letter, digit or 3-dots sequence
(#366) No space found before comment text; expected "// close dialog content area" but found "//close dialog content area"
(#367) Inline comments must end in full-stops, exclamation marks, or question marks
(#367) No space found before comment text; expected "// close dialog container" but found "//close dialog container"
(#384) Line exceeds 132 characters; contains 141 characters
(#388) Line exceeds 132 characters; contains 168 characters
(#389) Line exceeds 132 characters; contains 164 characters
(#390) Line exceeds 132 characters; contains 160 characters
(#472) Inline comments must end in full-stops, exclamation marks, or question marks
(#472) 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)"
(#492) Inline comments must start with a capital letter, digit or 3-dots sequence
(#492) Inline comments must end in full-stops, exclamation marks, or question marks
(#492) No space found before comment text; expected "// close addResource" but found "//close addResource"
(#557) Line exceeds 132 characters; contains 162 characters
(#560) Line exceeds 132 characters; contains 136 characters
(#569) 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, 4 warnings)

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

course/format/folderview/yui/menu/menu.js
(#220) Missing semicolon.
(#52) 'config' is defined but never used.
course/format/folderview/yui/src/sectiontoggle/js/sectiontoggle.js
(#30) Redefinition of 'CSS'.
(#52) 'NAME' is not defined.

CSS problems

(0 errors, 1 warnings)

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

course/format/folderview/styles.css
(#121) float can't be used with display: inline-block.

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
(#64) Function format_folderview::get_section_name is not documented
(#75) Function format_folderview::supports_ajax is not documented
(#82) Function format_folderview::ajax_section_move is not documented
(#97) Function format_folderview::extend_course_navigation is not documented
(#116) Function format_folderview::course_format_options is not documented
(#166) Function format_folderview::update_course_format_options is not documented
(#28) No one-line description found in phpdocs for class format_folderview
(#214) 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
(#172) Function format_folderview_renderer::print_single_section_page is not documented
(#257) Function format_folderview_renderer::section_nav_selection is not documented

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]