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

(32 errors, 36 warnings)

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

admin/tool/mergefiles/index.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) This comment is 67% valid code; is this commented out code?
(#50) This comment is 60% valid code; is this commented out code?
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#52) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#53) 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
(#66) This comment is 75% valid code; is this commented out code?
(#79) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#99) Expected "foreach (...) {\n"; found "foreach(...) { // Fetch all modules in the course, like forum, quiz, resource etc.\n"
(#116) Expected "foreach (...) {\n"; found "foreach(...) { // Get data from mdl_resource table, namely, id, name of the pdf file etc.\n"
(#165) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#177) Empty IF statement detected
(#178) Inline comments must start with a capital letter, digit or 3-dots sequence
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) This comment is 55% valid code; is this commented out code?
(#188) Inline comments must start with a capital letter, digit or 3-dots sequence
(#194) Inline comments must start with a capital letter, digit or 3-dots sequence
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) This comment is 67% valid code; is this commented out code?
(#204) Line exceeds maximum limit of 180 characters; contains 181 characters
(#208) Variable "course_files" must not contain underscores.
(#226) Inline comments must end in full-stops, exclamation marks, or question marks
(#234) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (Code frmginalthcusp.)
(#242) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#242) Variable "course_files" must not contain underscores.
(#248) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (Creat blnkumdpfoc.)
(#299) Line exceeds 132 characters; contains 137 characters
(#301) This comment is 50% valid code; is this commented out code?
(#301) Inline comments must start with a capital letter, digit or 3-dots sequence
(#304) The use of function print_r() is forbidden
(#305) Empty ELSE statement detected
(#306) Inline comments must start with a capital letter, digit or 3-dots sequence
(#306) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) This comment is 60% valid code; is this commented out code?
(#310) Line exceeds 132 characters; contains 162 characters
(#346) Line exceeds maximum limit of 180 characters; contains 188 characters
(#352) Inline comments must end in full-stops, exclamation marks, or question marks
(#355) Variable "merged_files" must not contain underscores.
(#357) Variable "merged_files" must not contain underscores.
(#373) Variable "merged_files" must not contain underscores.
(#381) Line exceeds maximum limit of 180 characters; contains 193 characters
admin/tool/mergefiles/lang/en/tool_mergefiles.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
admin/tool/mergefiles/lib.php
(#74) Line exceeds 132 characters; contains 137 characters
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) This comment is 67% valid code; is this commented out code?
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) Line indented incorrectly; expected at least 4 spaces, found 0
(#107) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Line indented incorrectly; expected at least 4 spaces, found 0
(#108) Expected 1 space before comment text but found 5; use block comment if you need indentation
admin/tool/mergefiles/performmerge_form.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#18) "require_once" must be immediately followed by an open parenthesis
(#33) Visibility must be declared on method "definition"
admin/tool/mergefiles/version.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) 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

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

(1 errors, 2 warnings)

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

admin/tool/mergefiles/lib.php
(#31) Not recommended phpdocs tag @global used
(#31) Not recommended phpdocs tag @global used
admin/tool/mergefiles/performmerge_form.php
(#16) File-level phpdocs block is not found

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]