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

(381 errors, 121 warnings)

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

mod/journal/backup/moodle1/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
mod/journal/backup/moodle2/backup_journal_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#7) Closing brace must be on a line by itself
(#16) Commas (,) must be followed by white space.
mod/journal/backup/moodle2/backup_journal_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
(#16) Inline comments must start with a capital letter, digit or 3-dots sequence
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
mod/journal/backup/moodle2/restore_journal_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#9) Closing brace must be on a line by itself
mod/journal/backup/moodle2/restore_journal_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
mod/journal/classes/event/entry_updated.php
(#43) Space found before semicolon; expected "LEVEL_PARTICIPATING;" but found "LEVEL_PARTICIPATING ;"
mod/journal/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#4) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/journal/db/log.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#6) Expected 1 space before "=>"; 0 found
(#6) Expected 1 space after "=>"; 0 found
(#6) Expected 1 space before "=>"; 0 found
(#6) Expected 1 space after "=>"; 0 found
(#6) Expected 1 space before "=>"; 0 found
(#6) Expected 1 space after "=>"; 0 found
(#6) Expected 1 space before "=>"; 0 found
(#6) Expected 1 space after "=>"; 0 found
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#8) Expected 1 space before "=>"; 0 found
(#8) Expected 1 space after "=>"; 0 found
(#8) Expected 1 space before "=>"; 0 found
(#8) Expected 1 space after "=>"; 0 found
(#8) Expected 1 space before "=>"; 0 found
(#8) Expected 1 space after "=>"; 0 found
(#8) Expected 1 space before "=>"; 0 found
(#8) Expected 1 space after "=>"; 0 found
(#9) Expected 1 space before "=>"; 0 found
(#9) Expected 1 space after "=>"; 0 found
(#9) Expected 1 space before "=>"; 0 found
(#9) Expected 1 space after "=>"; 0 found
(#9) Expected 1 space before "=>"; 0 found
(#9) Expected 1 space after "=>"; 0 found
(#9) Expected 1 space before "=>"; 0 found
(#9) Expected 1 space after "=>"; 0 found
(#10) Expected 1 space before "=>"; 0 found
(#10) Expected 1 space after "=>"; 0 found
(#10) Expected 1 space before "=>"; 0 found
(#10) Expected 1 space after "=>"; 0 found
(#10) Expected 1 space before "=>"; 0 found
(#10) Expected 1 space after "=>"; 0 found
(#10) Expected 1 space before "=>"; 0 found
(#10) Expected 1 space after "=>"; 0 found
(#11) Expected 1 space before "=>"; 0 found
(#11) Expected 1 space after "=>"; 0 found
(#11) Expected 1 space before "=>"; 0 found
(#11) Expected 1 space after "=>"; 0 found
(#11) Expected 1 space before "=>"; 0 found
(#11) Expected 1 space after "=>"; 0 found
(#11) Expected 1 space before "=>"; 0 found
(#11) Expected 1 space after "=>"; 0 found
mod/journal/db/upgrade.php
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Inline comments must end in full-stops, exclamation marks, or question marks
(#1) This comment is 47% valid code; is this commented out code?
(#1) No space found before comment text; expected "// $Id: upgrade.php,v 1.4 2011/04/26 06:20:25 davmon Exp $" but found "//$Id: upgrade.php,v 1.4 2011/04/26 06:20:25 davmon Exp $"
(#2) 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) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Inline comments must end in full-stops, exclamation marks, or question marks
(#14) Inline comments must end in full-stops, exclamation marks, or question marks
(#21) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) 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
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#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
(#56) Functions must not contain multiple empty lines in a row; found 2 empty lines
mod/journal/edit.php
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Inline comments must end in full-stops, exclamation marks, or question marks
(#1) This comment is 45% valid code; is this commented out code?
(#1) 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 "//".
(#3) 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".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) 3 slashes comments are not allowed; use "// Comment." instead
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) 3 slashes comments are not allowed; use "// Comment." instead
mod/journal/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) "require_once" must be immediately followed by an open parenthesis
(#7) Visibility must be declared on method "definition"
mod/journal/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 4 spaces, found 1
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Commas (,) must be followed by white space.
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) No space found before comment text; expected "// Show dimmed if the mod is hidden" but found "//Show dimmed if the mod is hidden"
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) No space found before comment text; expected "// Show normal if the mod is visible" but found "//Show normal if the mod is visible"
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) Inline comments must start with a capital letter, digit or 3-dots sequence
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) This comment is 59% valid code; is this commented out code?
(#135) No space found before comment text; expected "// $entrycount = journal_count_entries($journal, get_current_group($course->id));" but found "//$entrycount = journal_count_entries($journal, get_current_group($course->id));"
(#136) Spaces must be used to indent lines; tabs are not allowed
(#136) Tab found within whitespace
(#136) Line indented incorrectly; expected at least 8 spaces, found 2
(#137) Commas (,) must be followed by white space.
(#137) Line exceeds 132 characters; contains 140 characters
mod/journal/lang/ca/journal.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Whitespace found at end of line within string
mod/journal/lang/de/journal.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) No space found before comment text; expected "// Access denied" but found "//Access denied"
(#4) No space found before comment text; expected "// Always open" but found "//Always open"
(#5) No space found before comment text; expected "// Blank entry" but found "//Blank entry"
(#6) No space found before comment text; expected "// Days available" but found "//Days available"
(#7) No space found before comment text; expected "// Editing period has ended" but found "//Editing period has ended"
(#8) No space found before comment text; expected "// Editing period ends" but found "//Editing period ends"
(#9) No space found before comment text; expected "// Entries" but found "//Entries"
(#10) No space found before comment text; expected "// Feedback updated for {$a} entries" but found "//Feedback updated for {$a} entries"
(#11) No space found before comment text; expected "// Current grade in gradebook" but found "//Current grade in gradebook"
(#12) No space found before comment text; expected "// Add journal entries" but found "//Add journal entries"
(#13) No space found before comment text; expected "// Add journal instance" but found "//Add journal instance"
(#14) Inline comments must end in full-stops, exclamation marks, or question marks
(#14) No space found before comment text; expected "// Manage journal entries" but found "//Manage journal entries"
(#21) No space found before comment text; expected "// Journal name" but found "//Journal name"
(#22) No space found before comment text; expected "// Journal question" but found "//Journal question"
(#23) Inline comments must end in full-stops, exclamation marks, or question marks
(#23) No space found before comment text; expected "// Journal feedback" but found "//Journal feedback"
(#25) Whitespace found at end of line
(#26) No space found before comment text; expected "// Journals" but found "//Journals"
(#27) No space found before comment text; expected "// New journal entries" but found "//New journal entries"
(#28) No space found before comment text; expected "// There are no teachers" but found "//There are no teachers"
(#29) No space found before comment text; expected "// No entry" but found "//No entry"
(#30) No space found before comment text; expected "// No rating given" but found "//No rating given"
(#31) No space found before comment text; expected "// This journal won\'t be open until" but found "//This journal won\'t be open until"
(#32) No space found before comment text; expected "// You have not started this journal yet" but found "//You have not started this journal yet"
(#33) No space found before comment text; expected "// Overall rating" but found "//Overall rating"
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) No space found before comment text; expected "// Journal module administration" but found "//Journal module administration"
(#36) No space found before comment text; expected "// Rate" but found "//Rate"
(#37) No space found before comment text; expected "// Remove all entries" but found "//Remove all entries"
(#38) No space found before comment text; expected "// Save all my feedback" but found "//Save all my feedback"
(#39) No space found before comment text; expected "// Show recent activity" but found "//Show recent activity"
(#40) No space found before comment text; expected "// Show journals overview on my moodle" but found "//Show journals overview on my moodle"
(#41) No space found before comment text; expected "// Start or edit my journal entry" but found "//Start or edit my journal entry"
(#42) No space found before comment text; expected "// View {$a} journal entries" but found "//View {$a} journal entries"
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) No space found before comment text; expected "// View entries" but found "//View entries"
mod/journal/lang/en/journal.php
(#1) This comment is 45% valid code; is this commented out code?
(#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".
(#1) Whitespace found at end of line
(#2) Line 2 of the opening comment must start "//".
(#2) Inline comments must end in full-stops, exclamation marks, or question marks
(#2) 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".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) 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".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
mod/journal/lang/pt_br/journal.php
(#1) This comment is 45% valid code; is this commented out code?
(#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".
(#1) Whitespace found at end of line
(#2) Line 2 of the opening comment must start "//".
(#2) 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) Inline comments must end in full-stops, exclamation marks, or question marks
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#6) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#6) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
mod/journal/lang/sv/journal.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/journal/lib.php
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Inline comments must end in full-stops, exclamation marks, or question marks
(#1) This comment is 49% valid code; is this commented out code?
(#1) 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".
(#4) Inline comments must end in full-stops, exclamation marks, or question marks
(#4) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#5) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#6) Expected MOODLE_INTERNAL check or config.php inclusion
(#6) Line 6 of the opening comment must start "// (at your option) any later version.".
(#6) Line 7 of the opening comment must start "//".
(#6) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#6) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Line indented incorrectly; expected at least 4 spaces, found 0
(#8) Line indented incorrectly; expected at least 4 spaces, found 0
(#9) Line indented incorrectly; expected at least 4 spaces, found 0
(#10) Line indented incorrectly; expected at least 4 spaces, found 0
(#24) Line indented incorrectly; expected at least 4 spaces, found 0
(#25) Line indented incorrectly; expected at least 4 spaces, found 0
(#26) Line indented incorrectly; expected at least 4 spaces, found 0
(#44) Line indented incorrectly; expected at least 4 spaces, found 0
(#45) Line indented incorrectly; expected at least 4 spaces, found 0
(#46) Line indented incorrectly; expected at least 4 spaces, found 0
(#70) Closing brace must be on a line by itself
(#71) Closing brace must be on a line by itself
(#72) Closing brace must be on a line by itself
(#73) Closing brace must be on a line by itself
(#74) Closing brace must be on a line by itself
(#75) Closing brace must be on a line by itself
(#76) Closing brace must be on a line by itself
(#77) Closing brace must be on a line by itself
(#78) Closing brace must be on a line by itself
(#80) Closing brace must be on a line by itself
(#86) Commas (,) must be followed by white space.
(#86) Commas (,) must be followed by white space.
(#91) Commas (,) must be followed by white space.
(#91) Commas (,) must be followed by white space.
(#107) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#139) Line indented incorrectly; expected at least 4 spaces, found 0
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Line indented incorrectly; expected at least 4 spaces, found 0
(#150) Line exceeds 132 characters; contains 146 characters
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#211) Commas (,) must be followed by white space.
(#213) Commas (,) must be followed by white space.
(#214) Commas (,) must be followed by white space.
(#216) Commas (,) must be followed by white space.
(#217) Commas (,) must be followed by white space.
(#221) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) Commas (,) must be followed by white space.
(#230) Line indented incorrectly; expected at least 16 spaces, found 14
(#253) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#255) Inline comments must start with a capital letter, digit or 3-dots sequence
(#255) Inline comments must end in full-stops, exclamation marks, or question marks
(#261) Expected "if (...) {\n"; found "if (...){\n"
(#267) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) 3 slashes comments are not allowed; use "// Comment." instead
(#267) No space found before comment text; expected "// Get journal info. I'll need it later" but found "///Get journal info. I'll need it later"
(#268) Variable "j_log_info" must not contain underscores.
(#270) Variable "j_log_info" must not contain underscores.
(#276) Variable "j_log_info" must not contain underscores.
(#295) Line indented incorrectly; expected at least 4 spaces, found 0
(#295) No space found before comment text; expected "// Returns the users with data in one journal" but found "//Returns the users with data in one journal"
(#296) Inline comments must end in full-stops, exclamation marks, or question marks
(#296) Line indented incorrectly; expected at least 4 spaces, found 0
(#296) No space found before comment text; expected "// (users with records in journal_entries, students and teachers)" but found "//(users with records in journal_entries, students and teachers)"
(#300) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) No space found before comment text; expected "// Get students" but found "//Get students"
(#306) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) No space found before comment text; expected "// Get teachers" but found "//Get teachers"
(#313) Inline comments must end in full-stops, exclamation marks, or question marks
(#313) No space found before comment text; expected "// Add teachers to students" but found "//Add teachers to students"
(#319) Inline comments must end in full-stops, exclamation marks, or question marks
(#319) No space found before comment text; expected "// Return students array (it contains an array of unique users)" but found "//Return students array (it contains an array of unique users)"
(#323) Commas (,) must be followed by white space.
(#324) Inline comments must end in full-stops, exclamation marks, or question marks
(#324) Line indented incorrectly; expected at least 4 spaces, found 0
(#324) No space found before comment text; expected "// This function returns if a scale is being used by one journal" but found "//This function returns if a scale is being used by one journal"
(#362) Commas (,) must be followed by white space.
(#372) Expected 1 space before "=>"; 0 found
(#372) Expected 1 space after "=>"; 0 found
(#445) Expected 1 space before "?"; 0 found
(#445) Expected 1 space after "?"; 0 found
(#445) Expected 1 space before ":"; 0 found
(#445) Expected 1 space after ":"; 0 found
(#481) Expected 1 space before "=>"; 0 found
(#481) Expected 1 space after "=>"; 0 found
(#481) Expected 1 space before "=>"; 0 found
(#481) Expected 1 space after "=>"; 0 found
(#505) Inline comments must start with a capital letter, digit or 3-dots sequence
(#505) Inline comments must end in full-stops, exclamation marks, or question marks
(#505) No space found before comment text; expected "// workaround for buggy PHP versions" but found "//workaround for buggy PHP versions"
(#515) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#527) Line indented incorrectly; expected 12 spaces, found 11
(#532) Line indented incorrectly; expected 20 spaces, found 16
(#533) Closing brace indented incorrectly; expected 11 spaces, found 12
(#546) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#548) Inline comments must start with a capital letter, digit or 3-dots sequence
(#548) Inline comments must end in full-stops, exclamation marks, or question marks
(#548) No space found before comment text; expected "// workaround for buggy PHP versions" but found "//workaround for buggy PHP versions"
(#553) Expected 1 space before "=>"; 0 found
(#553) Expected 1 space after "=>"; 0 found
(#553) Expected 1 space before "=>"; 0 found
(#553) Expected 1 space after "=>"; 0 found
(#555) Expected 1 space before "=>"; 0 found
(#555) Expected 1 space after "=>"; 0 found
(#564) Expected "} else if (...) {\n"; found "} else if(...) {\n"
(#564) Expected "if (...) {\n"; found "if(...) {\n"
(#573) Expected 1 space before "==="; 2 found
(#575) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#593) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#593) Expected 1 space before "=>"; 0 found
(#593) Expected 1 space after "=>"; 0 found
(#597) Inline comments must end in full-stops, exclamation marks, or question marks
(#601) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#606) Inline comments must end in full-stops, exclamation marks, or question marks
(#608) Expected 1 space before ".="; 0 found
(#611) Expected 1 space before ".="; 0 found
(#616) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#619) Inline comments must start with a capital letter, digit or 3-dots sequence
(#619) Inline comments must end in full-stops, exclamation marks, or question marks
(#636) Inline comments must end in full-stops, exclamation marks, or question marks
(#636) Line indented incorrectly; expected at least 4 spaces, found 0
(#636) 3 slashes comments are not allowed; use "// Comment." instead
(#643) 3 slashes comments are not allowed; use "// Comment." instead
(#651) Inline comments must end in full-stops, exclamation marks, or question marks
(#651) 3 slashes comments are not allowed; use "// Comment." instead
(#658) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#667) Inline comments must start with a capital letter, digit or 3-dots sequence
(#667) Inline comments must end in full-stops, exclamation marks, or question marks
(#714) Inline comments must end in full-stops, exclamation marks, or question marks
(#755) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#764) Variable "grading_info" must not contain underscores.
(#765) Variable "grading_info" must not contain underscores.
(#766) Variable "grading_info" must not contain underscores.
(#766) Variable "grading_info" must not contain underscores.
(#766) Line exceeds 132 characters; contains 146 characters
(#770) Expected 1 space before ".="; 0 found
(#770) Variable "grading_info" must not contain underscores.
(#774) Variable "grading_info" must not contain underscores.
(#778) Inline comments must end in full-stops, exclamation marks, or question marks
(#780) Line exceeds 132 characters; contains 133 characters
(#791) Inline comments must end in full-stops, exclamation marks, or question marks
(#792) Line exceeds 132 characters; contains 136 characters
(#796) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#835) Inline comments must end in full-stops, exclamation marks, or question marks
(#836) Variable "grading_info" must not contain underscores.
(#837) Variable "grading_info" must not contain underscores.
(#839) Variable "grading_info" must not contain underscores.
(#845) Inline comments must end in full-stops, exclamation marks, or question marks
mod/journal/mod_form.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) "require_once" must be immediately followed by an open parenthesis
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Visibility must be declared on method "definition"
(#13) Expected 1 space before "=>"; 0 found
(#13) Expected 1 space after "=>"; 0 found
(#21) Expected 1 space after first semicolon of FOR loop; 0 found
(#21) Expected 1 space after second semicolon of FOR loop; 0 found
(#21) Expected 1 space before "="; 0 found
(#21) Expected 1 space after "="; 0 found
(#21) Expected 1 space before "<="; 0 found
(#21) Expected 1 space after "<="; 0 found
(#24) Expected 1 space after first semicolon of FOR loop; 0 found
(#24) Expected 1 space after second semicolon of FOR loop; 0 found
(#24) Expected 1 space before "="; 0 found
(#24) Expected 1 space after "="; 0 found
(#24) Expected 1 space before "<="; 0 found
(#24) Expected 1 space after "<="; 0 found
mod/journal/report.php
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Inline comments must end in full-stops, exclamation marks, or question marks
(#1) This comment is 45% valid code; is this commented out code?
(#1) 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 "//".
(#3) 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".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Inline comments must start with a capital letter, digit or 3-dots sequence
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Space found before semicolon; expected ");" but found ") ;"
(#48) Space found before semicolon; expected ");" but found ") ;"
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) 3 slashes comments are not allowed; use "// Comment." instead
(#67) Commas (,) must be followed by white space.
(#67) Commas (,) must be followed by white space.
(#68) Commas (,) must be followed by white space.
(#78) Variable "rating_changed" must not contain underscores.
(#84) Variable "rating_changed" must not contain underscores.
(#87) Variable "rating_changed" must not contain underscores.
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) 3 slashes comments are not allowed; use "// Comment." instead
(#167) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
mod/journal/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/journal/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#9) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#11) Inline comments must end in full-stops, exclamation marks, or question marks
mod/journal/view.php
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Inline comments must end in full-stops, exclamation marks, or question marks
(#1) This comment is 45% valid code; is this commented out code?
(#2) 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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Expected 1 space before "=>"; 0 found
(#39) Expected 1 space after "=>"; 0 found
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) 3 slashes comments are not allowed; use "// Comment." instead
(#55) Commas (,) must be followed by white space.
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Commas (,) must be followed by white space.
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) Commas (,) must be followed by white space.
(#101) Commas (,) must be followed by white space.
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) No space found before comment text; expected "// Added three lines to mark entry as being dirty and needing regrade." but found "//Added three lines to mark entry as being dirty and needing regrade."
(#129) 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 csslint [More info]


PHPDocs style problems

(118 errors, 21 warnings)

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

mod/journal/backup/moodle1/lib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#34) Function moodle1_mod_journal_handler::process_journal is not documented
(#63) Phpdocs for function moodle1_mod_journal_handler::process_entry has incomplete parameters list
(#5) Class moodle1_mod_journal_handler does not have @copyright tag
(#5) Class moodle1_mod_journal_handler does not have @license tag
(#5) Package is not specified for class moodle1_mod_journal_handler. It is also not specified in file-level phpdocs
mod/journal/backup/moodle2/backup_journal_activity_task.class.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class backup_journal_activity_task is not documented
(#7) Function backup_journal_activity_task::define_my_settings is not documented
(#9) Function backup_journal_activity_task::define_my_steps is not documented
(#13) Function backup_journal_activity_task::encode_content_links is not documented
(#5) Package is not specified for class backup_journal_activity_task. It is also not specified in file-level phpdocs
mod/journal/backup/moodle2/backup_journal_stepslib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class backup_journal_activity_structure_step is not documented
(#5) Function backup_journal_activity_structure_step::define_structure is not documented
(#3) Package is not specified for class backup_journal_activity_structure_step. It is also not specified in file-level phpdocs
mod/journal/backup/moodle2/restore_journal_activity_task.class.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#7) Class restore_journal_activity_task is not documented
(#9) Function restore_journal_activity_task::define_my_settings is not documented
(#11) Function restore_journal_activity_task::define_my_steps is not documented
(#15) Function restore_journal_activity_task::define_decode_contents is not documented
(#24) Function restore_journal_activity_task::define_decode_rules is not documented
(#36) Function restore_journal_activity_task::define_restore_log_rules is not documented
(#48) Function restore_journal_activity_task::define_restore_log_rules_for_course is not documented
(#7) Package is not specified for class restore_journal_activity_task. It is also not specified in file-level phpdocs
mod/journal/backup/moodle2/restore_journal_stepslib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class restore_journal_activity_structure_step is not documented
(#5) Function restore_journal_activity_structure_step::define_structure is not documented
(#17) Function restore_journal_activity_structure_step::process_journal is not documented
(#33) Function restore_journal_activity_structure_step::process_journal_entry is not documented
(#52) Function restore_journal_activity_structure_step::after_execute is not documented
(#3) Package is not specified for class restore_journal_activity_structure_step. It is also not specified in file-level phpdocs
mod/journal/db/access.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
mod/journal/db/log.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
mod/journal/db/upgrade.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Function xmldb_journal_upgrade is not documented
(#5) Package is not specified for function xmldb_journal_upgrade. It is also not specified in file-level phpdocs
mod/journal/edit.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#45) Found comment starting with three or more slashes
(#95) Found comment starting with three or more slashes
mod/journal/edit_form.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class mod_journal_entry_form is not documented
(#7) Function mod_journal_entry_form::definition is not documented
(#5) Package is not specified for class mod_journal_entry_form. It is also not specified in file-level phpdocs
mod/journal/index.php
(#2) Empty line found after PHP open tag
mod/journal/lang/ca/journal.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
mod/journal/lang/de/journal.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
mod/journal/lang/en/journal.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
mod/journal/lang/pt_br/journal.php
(#2) Empty line found after PHP open tag
(#6) File-level phpdocs block is not found
mod/journal/lang/sv/journal.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package mod is not valid
mod/journal/lib.php
(#2) Empty line found after PHP open tag
(#6) File-level phpdocs block is not found
(#6) Function journal_add_instance is not documented
(#23) Function journal_update_instance is not documented
(#43) Function journal_delete_instance is not documented
(#68) Function journal_supports is not documented
(#85) Function journal_get_view_actions is not documented
(#90) Function journal_get_post_actions is not documented
(#95) Function journal_user_outline is not documented
(#111) Function journal_user_complete is not documented
(#138) Function journal_cron is not documented
(#245) Function journal_print_recent_activity is not documented
(#294) Function journal_get_participants is not documented
(#323) Function journal_scale_used is not documented
(#402) Function journal_print_overview is not documented
(#458) Function journal_get_user_grades is not documented
(#599) Function journal_get_users_done is not documented
(#635) Function journal_count_entries is not documented
(#678) Function journal_get_unmailed_graded is not documented
(#687) Function journal_log_info is not documented
(#716) Function journal_print_user_entry is not documented
(#807) Function journal_print_feedback is not documented
(#267) Found comment starting with three or more slashes
(#636) Found comment starting with three or more slashes
(#643) Found comment starting with three or more slashes
(#651) Found comment starting with three or more slashes
(#341) Phpdocs for function journal_scale_used_anywhere has incomplete parameters list
(#542) Phpdocs for function journal_grade_item_update has incomplete parameters list
(#701) Phpdocs for function journal_get_coursemodule has incomplete parameters list
(#6) Package is not specified for function journal_add_instance. It is also not specified in file-level phpdocs
(#23) Package is not specified for function journal_update_instance. It is also not specified in file-level phpdocs
(#43) Package is not specified for function journal_delete_instance. It is also not specified in file-level phpdocs
(#68) Package is not specified for function journal_supports. It is also not specified in file-level phpdocs
(#85) Package is not specified for function journal_get_view_actions. It is also not specified in file-level phpdocs
(#90) Package is not specified for function journal_get_post_actions. It is also not specified in file-level phpdocs
(#95) Package is not specified for function journal_user_outline. It is also not specified in file-level phpdocs
(#111) Package is not specified for function journal_user_complete. It is also not specified in file-level phpdocs
(#138) Package is not specified for function journal_cron. It is also not specified in file-level phpdocs
(#245) Package is not specified for function journal_print_recent_activity. It is also not specified in file-level phpdocs
(#294) Package is not specified for function journal_get_participants. It is also not specified in file-level phpdocs
(#323) Package is not specified for function journal_scale_used. It is also not specified in file-level phpdocs
(#337) Package is not specified for function journal_scale_used_anywhere. It is also not specified in file-level phpdocs
(#354) Package is not specified for function journal_reset_course_form_definition. It is also not specified in file-level phpdocs
(#365) Package is not specified for function journal_reset_course_form_defaults. It is also not specified in file-level phpdocs
(#375) Package is not specified for function journal_reset_userdata. It is also not specified in file-level phpdocs
(#402) Package is not specified for function journal_print_overview. It is also not specified in file-level phpdocs
(#458) Package is not specified for function journal_get_user_grades. It is also not specified in file-level phpdocs
(#494) Package is not specified for function journal_update_grades. It is also not specified in file-level phpdocs
(#539) Package is not specified for function journal_grade_item_update. It is also not specified in file-level phpdocs
(#582) Package is not specified for function journal_grade_item_delete. It is also not specified in file-level phpdocs
(#599) Package is not specified for function journal_get_users_done. It is also not specified in file-level phpdocs
(#635) Package is not specified for function journal_count_entries. It is also not specified in file-level phpdocs
(#678) Package is not specified for function journal_get_unmailed_graded. It is also not specified in file-level phpdocs
(#687) Package is not specified for function journal_log_info. It is also not specified in file-level phpdocs
(#698) Package is not specified for function journal_get_coursemodule. It is also not specified in file-level phpdocs
(#716) Package is not specified for function journal_print_user_entry. It is also not specified in file-level phpdocs
(#807) Package is not specified for function journal_print_feedback. It is also not specified in file-level phpdocs
mod/journal/mod_form.php
(#2) File-level phpdocs block is not found
(#4) Class mod_journal_mod_form is not documented
(#6) Function mod_journal_mod_form::definition is not documented
(#4) Package is not specified for class mod_journal_mod_form. It is also not specified in file-level phpdocs
mod/journal/report.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#56) Found comment starting with three or more slashes
(#137) Found comment starting with three or more slashes
mod/journal/settings.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
mod/journal/tests/generator/lib.php
(#54) Function mod_journal_generator::create_instance is not documented
mod/journal/version.php
(#2) Empty line found after PHP open tag
(#9) File-level phpdocs block is not found
mod/journal/view.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#47) Found comment starting with three or more slashes

Update savepoints problems

(0 errors, 1 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

mod/journal/db/upgrade.php
Detected less 'if' blocks (1) than 'savepoint' calls (3). Repeated savepoints?

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]