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

(48 errors, 13 warnings)

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

blocks/search_course/block_search_course.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#57) Line exceeds 132 characters; contains 138 characters
blocks/search_course/course_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#18) Line exceeds 132 characters; contains 148 characters
(#24) Whitespace found at end of line
(#25) Whitespace found at end of line
(#26) Whitespace found at end of line
(#41) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) This comment is 50% valid code; is this commented out code?
(#41) No space found before comment text; expected "// $instance = $this->_customdata;" but found "//$instance = $this->_customdata;"
blocks/search_course/lang/en/block_search_course.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/search_course/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/>.".
(#19) Line exceeds 132 characters; contains 148 characters
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#32) function name "getCourses" must be lower-case letters only
(#35) The use of function sizeof() is forbidden; use count() instead
(#37) The use of function sizeof() is forbidden; use count() instead
(#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
(#50) Variable "summaryCut" must be all lower-case
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Variable "summaryCut" must be all lower-case
(#53) Variable "summaryCut" must be all lower-case
(#56) Inline control structures are not allowed
(#56) Inline control structures are not allowed
(#58) Expected 1 space after ".="; 0 found
(#62) Line exceeds 132 characters; contains 144 characters
blocks/search_course/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/search_course/view.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/>.".
(#19) Line exceeds 132 characters; contains 148 characters
(#50) Inline control structures are not allowed
(#55) Inline control structures are not allowed
(#57) Inline control structures are not allowed
(#59) Inline control structures are not allowed
(#61) Inline control structures are not allowed
(#63) Inline control structures are not allowed
(#65) Inline control structures are not allowed

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(5 errors, 2 warnings)

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

blocks/search_course/block_search_course.php
(#25) Class block_search_course does not have @copyright tag
(#25) Class block_search_course does not have @license tag
blocks/search_course/course_form.php
(#38) Function course_search_form::definition is not documented
blocks/search_course/lib.php
(#2) Empty line found after PHP open tag
(#29) Phpdocs for function getCourses has incomplete parameters list
(#21) Package block_course_status_tracker is not valid
blocks/search_course/view.php
(#2) Empty line found after PHP open tag

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]