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

(382 errors, 120 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
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) 3 slashes comments are not allowed; use "// Comment." instead
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) 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
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) No space found before comment text; expected "// Show dimmed if the mod is hidden" but found "//Show dimmed if the mod is hidden"
(#107) Commas (,) must be followed by white space.
(#107) Line exceeds 132 characters; contains 138 characters
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) No space found before comment text; expected "// Show normal if the mod is visible" but found "//Show normal if the mod is visible"
(#110) Commas (,) must be followed by white space.
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#125) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Inline comments must start with a capital letter, digit or 3-dots sequence
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) This comment is 59% valid code; is this commented out code?
(#134) 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));"
(#135) Spaces must be used to indent lines; tabs are not allowed
(#135) Tab found within whitespace
(#135) Line indented incorrectly; expected at least 8 spaces, found 2
(#136) Commas (,) must be followed by white space.
(#136) 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/>.".
(#38) Whitespace found at end of line within string
(#39) Whitespace found at end of line
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
(#169) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#181) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Commas (,) must be followed by white space.
(#188) Commas (,) must be followed by white space.
(#189) Commas (,) must be followed by white space.
(#191) Commas (,) must be followed by white space.
(#192) Commas (,) must be followed by white space.
(#196) Inline comments must end in full-stops, exclamation marks, or question marks
(#200) Commas (,) must be followed by white space.
(#205) Line indented incorrectly; expected at least 16 spaces, found 14
(#228) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#230) Inline comments must start with a capital letter, digit or 3-dots sequence
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Expected "if (...) {\n"; found "if (...){\n"
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#242) 3 slashes comments are not allowed; use "// Comment." instead
(#242) 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"
(#243) Variable "j_log_info" must not contain underscores.
(#245) Variable "j_log_info" must not contain underscores.
(#251) Variable "j_log_info" must not contain underscores.
(#270) Line indented incorrectly; expected at least 4 spaces, found 0
(#270) 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"
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#271) Line indented incorrectly; expected at least 4 spaces, found 0
(#271) 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)"
(#275) Inline comments must end in full-stops, exclamation marks, or question marks
(#275) No space found before comment text; expected "// Get students" but found "//Get students"
(#281) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) No space found before comment text; expected "// Get teachers" but found "//Get teachers"
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#288) No space found before comment text; expected "// Add teachers to students" but found "//Add teachers to students"
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) 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)"
(#298) Commas (,) must be followed by white space.
(#299) Inline comments must end in full-stops, exclamation marks, or question marks
(#299) Line indented incorrectly; expected at least 4 spaces, found 0
(#299) 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"
(#337) Commas (,) must be followed by white space.
(#347) Expected 1 space before "=>"; 0 found
(#347) Expected 1 space after "=>"; 0 found
(#418) Expected 1 space before "?"; 0 found
(#418) Expected 1 space after "?"; 0 found
(#418) Expected 1 space before ":"; 0 found
(#418) Expected 1 space after ":"; 0 found
(#454) Expected 1 space before "=>"; 0 found
(#454) Expected 1 space after "=>"; 0 found
(#454) Expected 1 space before "=>"; 0 found
(#454) Expected 1 space after "=>"; 0 found
(#478) Inline comments must start with a capital letter, digit or 3-dots sequence
(#478) Inline comments must end in full-stops, exclamation marks, or question marks
(#478) No space found before comment text; expected "// workaround for buggy PHP versions" but found "//workaround for buggy PHP versions"
(#488) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#500) Line indented incorrectly; expected 12 spaces, found 11
(#505) Line indented incorrectly; expected 20 spaces, found 16
(#506) Closing brace indented incorrectly; expected 11 spaces, found 12
(#519) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#521) Inline comments must start with a capital letter, digit or 3-dots sequence
(#521) Inline comments must end in full-stops, exclamation marks, or question marks
(#521) No space found before comment text; expected "// workaround for buggy PHP versions" but found "//workaround for buggy PHP versions"
(#526) Expected 1 space before "=>"; 0 found
(#526) Expected 1 space after "=>"; 0 found
(#526) Expected 1 space before "=>"; 0 found
(#526) Expected 1 space after "=>"; 0 found
(#528) Expected 1 space before "=>"; 0 found
(#528) Expected 1 space after "=>"; 0 found
(#537) Expected "} else if (...) {\n"; found "} else if(...) {\n"
(#537) Expected "if (...) {\n"; found "if(...) {\n"
(#546) Expected 1 space before "==="; 2 found
(#548) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#566) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#566) Expected 1 space before "=>"; 0 found
(#566) Expected 1 space after "=>"; 0 found
(#570) Inline comments must end in full-stops, exclamation marks, or question marks
(#574) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#579) Inline comments must end in full-stops, exclamation marks, or question marks
(#581) Expected 1 space before ".="; 0 found
(#584) Expected 1 space before ".="; 0 found
(#589) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#592) Inline comments must start with a capital letter, digit or 3-dots sequence
(#592) Inline comments must end in full-stops, exclamation marks, or question marks
(#609) Inline comments must end in full-stops, exclamation marks, or question marks
(#609) Line indented incorrectly; expected at least 4 spaces, found 0
(#609) 3 slashes comments are not allowed; use "// Comment." instead
(#616) 3 slashes comments are not allowed; use "// Comment." instead
(#624) Inline comments must end in full-stops, exclamation marks, or question marks
(#624) 3 slashes comments are not allowed; use "// Comment." instead
(#631) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#640) Inline comments must start with a capital letter, digit or 3-dots sequence
(#640) Inline comments must end in full-stops, exclamation marks, or question marks
(#687) Inline comments must end in full-stops, exclamation marks, or question marks
(#728) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#736) Inline comments must end in full-stops, exclamation marks, or question marks
(#737) Variable "grading_info" must not contain underscores.
(#738) Variable "grading_info" must not contain underscores.
(#738) Variable "grading_info" must not contain underscores.
(#738) Line exceeds 132 characters; contains 142 characters
(#742) Expected 1 space before ".="; 0 found
(#742) Variable "grading_info" must not contain underscores.
(#746) Variable "grading_info" must not contain underscores.
(#749) Inline comments must end in full-stops, exclamation marks, or question marks
(#757) Inline comments must end in full-stops, exclamation marks, or question marks
(#799) Inline comments must end in full-stops, exclamation marks, or question marks
(#800) Variable "grading_info" must not contain underscores.
(#802) Variable "grading_info" must not contain underscores.
(#808) 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
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Space found before semicolon; expected ");" but found ") ;"
(#49) Space found before semicolon; expected ");" but found ") ;"
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) 3 slashes comments are not allowed; use "// Comment." instead
(#68) Commas (,) must be followed by white space.
(#68) Commas (,) must be followed by white space.
(#69) Commas (,) must be followed by white space.
(#79) Variable "rating_changed" must not contain underscores.
(#81) Line indented incorrectly; expected at least 12 spaces, found 10
(#81) Variable "rating_changed" must not contain underscores.
(#83) Variable "rating_changed" must not contain underscores.
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) 3 slashes comments are not allowed; use "// Comment." instead
(#163) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) 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.
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#15) 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
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) 3 slashes comments are not allowed; use "// Comment." instead
(#56) Commas (,) must be followed by white space.
(#78) 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
(#92) Commas (,) must be followed by white space.
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) Commas (,) must be followed by white space.
(#105) Commas (,) must be followed by white space.
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#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 jshint [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
(#43) Found comment starting with three or more slashes
(#94) 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
(#220) Function journal_print_recent_activity is not documented
(#269) Function journal_get_participants is not documented
(#298) Function journal_scale_used is not documented
(#377) Function journal_print_overview is not documented
(#431) Function journal_get_user_grades is not documented
(#572) Function journal_get_users_done is not documented
(#608) Function journal_count_entries is not documented
(#651) Function journal_get_unmailed_graded is not documented
(#660) Function journal_log_info is not documented
(#689) Function journal_print_user_entry is not documented
(#771) Function journal_print_feedback is not documented
(#242) Found comment starting with three or more slashes
(#609) Found comment starting with three or more slashes
(#616) Found comment starting with three or more slashes
(#624) Found comment starting with three or more slashes
(#316) Phpdocs for function journal_scale_used_anywhere has incomplete parameters list
(#515) Phpdocs for function journal_grade_item_update has incomplete parameters list
(#674) 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
(#220) Package is not specified for function journal_print_recent_activity. It is also not specified in file-level phpdocs
(#269) Package is not specified for function journal_get_participants. It is also not specified in file-level phpdocs
(#298) Package is not specified for function journal_scale_used. It is also not specified in file-level phpdocs
(#312) Package is not specified for function journal_scale_used_anywhere. It is also not specified in file-level phpdocs
(#329) Package is not specified for function journal_reset_course_form_definition. It is also not specified in file-level phpdocs
(#340) Package is not specified for function journal_reset_course_form_defaults. It is also not specified in file-level phpdocs
(#350) Package is not specified for function journal_reset_userdata. It is also not specified in file-level phpdocs
(#377) Package is not specified for function journal_print_overview. It is also not specified in file-level phpdocs
(#431) Package is not specified for function journal_get_user_grades. It is also not specified in file-level phpdocs
(#467) Package is not specified for function journal_update_grades. It is also not specified in file-level phpdocs
(#512) Package is not specified for function journal_grade_item_update. It is also not specified in file-level phpdocs
(#555) Package is not specified for function journal_grade_item_delete. It is also not specified in file-level phpdocs
(#572) Package is not specified for function journal_get_users_done. It is also not specified in file-level phpdocs
(#608) Package is not specified for function journal_count_entries. It is also not specified in file-level phpdocs
(#651) Package is not specified for function journal_get_unmailed_graded. It is also not specified in file-level phpdocs
(#660) Package is not specified for function journal_log_info. It is also not specified in file-level phpdocs
(#671) Package is not specified for function journal_get_coursemodule. It is also not specified in file-level phpdocs
(#689) Package is not specified for function journal_print_user_entry. It is also not specified in file-level phpdocs
(#771) 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
(#57) Found comment starting with three or more slashes
(#133) 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
(#13) 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
(#46) 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]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]