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

(483 errors, 67 warnings)

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

enrol/zilink_cohort/action.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
(#31) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#44) Expected "if (...) {\n"; found "if(...)\n {\n"
(#55) Whitespace found at end of line
(#63) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#65) Expected "if (...) {\n"; found "if(...)\n {\n"
(#65) Commas (,) must be followed by white space.
(#72) Expected "} else {\n"; found "}\n else {\n"
(#80) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#82) Expected "if (...) {\n"; found "if(...)\n {\n"
(#82) Commas (,) must be followed by white space.
(#86) Whitespace found at end of line
(#92) Expected "} else {\n"; found "}\n else\n {\n"
enrol/zilink_cohort/addinstance.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
enrol/zilink_cohort/addinstance_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
enrol/zilink_cohort/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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,".
(#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/>.".
enrol/zilink_cohort/db/events.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#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.".
(#2) 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/>.".
enrol/zilink_cohort/edit.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#35) Expected 1 space before "=>"; 0 found
(#35) Expected 1 space after "=>"; 0 found
(#42) Expected 1 space before "=>"; 0 found
(#42) Expected 1 space after "=>"; 0 found
(#42) Expected 1 space before "=>"; 0 found
(#42) Expected 1 space after "=>"; 0 found
(#45) Commas (,) must be followed by white space.
(#45) Commas (,) must be followed by white space.
(#48) Expected 1 space after "=>"; 2 found
(#49) Expected 1 space after "=>"; 2 found
(#50) Expected 1 space after "=>"; 2 found
(#55) Expected 1 space before "=>"; 0 found
(#55) Expected 1 space after "=>"; 0 found
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#63) Line exceeds 132 characters; contains 135 characters
(#70) Expected 1 space before "=>"; 0 found
(#70) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#95) Line exceeds 132 characters; contains 155 characters
(#101) Whitespace found at end of line
(#102) Expected "} else {\n"; found "} else {\n"
(#103) Whitespace found at end of line
(#104) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#106) Commas (,) must be followed by white space.
(#106) Commas (,) must be followed by white space.
(#107) Commas (,) must be followed by white space.
(#108) Expected "if (...) {\n"; found "if(...) \n {\n"
(#108) Whitespace found at end of line
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space after "=>"; 0 found
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space after "=>"; 0 found
(#116) Line exceeds 132 characters; contains 164 characters
enrol/zilink_cohort/edit_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Visibility must be declared on method "definition"
(#40) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#44) Expected 1 space before "=>"; 0 found
(#44) Expected 1 space after "=>"; 0 found
(#47) Commas (,) must be followed by white space.
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#51) Expected 1 space before "=>"; 0 found
(#51) Expected 1 space after "=>"; 0 found
(#60) Whitespace found at end of line
(#65) Commas (,) must be followed by white space.
(#70) Whitespace found at end of line
(#73) Whitespace found at end of line within string
(#74) Whitespace found at end of line within string
(#75) Whitespace found at end of line within string
(#80) Expected "if (...) {\n"; found "if(...) {\n"
(#80) Commas (,) must be followed by white space.
(#85) Whitespace found at end of line
(#86) Expected "if (...) {\n"; found "if(...) {\n"
(#89) Line exceeds maximum limit of 180 characters; contains 187 characters
(#90) Whitespace found at end of line
(#92) Commas (,) must be followed by white space.
(#96) Whitespace found at end of line
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) This comment is 73% valid code; is this commented out code?
(#97) No space found before comment text; expected "// $mform->addRule('customint1', get_string('required'), 'required', null, 'client');" but found "//$mform->addRule('customint1', get_string('required'), 'required', null, 'client');"
(#106) Expected 1 space before "=>"; 0 found
(#106) Expected 1 space after "=>"; 0 found
(#129) Visibility must be declared on method "validation"
(#134) Line exceeds 132 characters; contains 138 characters
(#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 85% valid code; is this commented out code?
(#134) No space found before comment text; expected "// $params = array('roleid'=>$data['roleid'], 'customint1'=>$data['customint1'], 'courseid'=>$data['courseid'], 'id'=>$data['id']);" but found "//$params = array('roleid'=>$data['roleid'], 'customint1'=>$data['customint1'], 'courseid'=>$data['courseid'], 'id'=>$data['id']);"
(#135) Whitespace found at end of line
(#136) Line exceeds 132 characters; contains 169 characters
(#136) This comment is 73% valid code; is this commented out code?
(#136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#136) No space found before comment text; expected "// if ($DB->record_exists_select('enrol', "roleid = :roleid AND customint1 = :customint1 AND courseid = :courseid AND enrol = 'cohort' AND id <> :id", $params)) {" but found "//if ($DB->record_exists_select('enrol', "roleid = :roleid AND customint1 = :customint1 AND courseid = :courseid AND enrol = 'cohort' AND id <> :id", $params)) {"
(#137) This comment is 63% valid code; is this commented out code?
(#137) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) This comment is 100% valid code; is this commented out code?
(#138) No space found before comment text; expected "// }" but found "//}"
enrol/zilink_cohort/lang/en/enrol_zilink_cohort.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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,".
(#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.".
(#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/>.".
enrol/zilink_cohort/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
(#33) Whitespace found at end of line
(#35) Opening brace should be on the same line as the declaration
(#36) Whitespace found at end of line
(#38) Whitespace found at end of line
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) This comment is 75% valid code; is this commented out code?
(#45) No space found before comment text; expected "// if (empty($instance->name)) {" but found "//if (empty($instance->name)) {"
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
(#56) Whitespace found at end of line
(#57) This comment is 67% valid code; is this commented out code?
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) No space found before comment text; expected "// else {" but found "//else {"
(#58) This comment is 68% valid code; is this commented out code?
(#58) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) This comment is 100% valid code; is this commented out code?
(#59) No space found before comment text; expected "// }" but found "//}"
(#59) Whitespace found at end of line
(#69) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#72) Expected 1 space before "=>"; 0 found
(#72) Expected 1 space after "=>"; 0 found
(#87) Line exceeds 132 characters; contains 138 characters
(#90) Whitespace found at end of line
(#98) Inline comments must start with a capital letter, digit or 3-dots sequence
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) Whitespace found at end of line
(#103) Expected "if (...) {\n"; found "if(...)\n {\n"
(#107) Commas (,) must be followed by white space.
(#114) Whitespace found at end of line
(#130) Whitespace found at end of line
(#138) Line exceeds 132 characters; contains 134 characters
(#144) Whitespace found at end of line
(#145) Whitespace found at end of line
(#146) Whitespace found at end of line
(#156) Expected "try {\n...} catch (...) {\n"; found "try {\n...} catch (...){\n"
(#162) Expected 1 space before "=>"; 0 found
(#162) Expected 1 space after "=>"; 0 found
(#162) Expected 1 space before "=>"; 0 found
(#162) Expected 1 space after "=>"; 0 found
(#163) Inline comments must start with a capital letter, digit or 3-dots sequence
(#163) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Expected 1 space before "=>"; 0 found
(#167) Expected 1 space after "=>"; 0 found
(#167) Expected 1 space before "=>"; 0 found
(#167) Expected 1 space after "=>"; 0 found
(#167) Expected 1 space before "=>"; 0 found
(#167) Expected 1 space after "=>"; 0 found
(#167) Expected 1 space before "=>"; 0 found
(#167) Expected 1 space after "=>"; 0 found
(#167) Line exceeds 132 characters; contains 133 characters
(#168) Expected 1 space before "=>"; 0 found
(#168) Expected 1 space after "=>"; 0 found
(#170) Inline comments must start with a capital letter, digit or 3-dots sequence
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Whitespace found at end of line within string
(#175) Whitespace found at end of line within string
(#176) Whitespace found at end of line within string
(#178) Expected 1 space before "=>"; 0 found
(#178) Expected 1 space after "=>"; 0 found
(#178) Expected 1 space before "=>"; 0 found
(#178) Expected 1 space after "=>"; 0 found
(#180) Whitespace found at end of line
(#181) Expected "if (...) {\n"; found "if(...) {\n"
(#182) Whitespace found at end of line
(#199) Inline comments must start with a capital letter, digit or 3-dots sequence
(#199) Inline comments must end in full-stops, exclamation marks, or question marks
(#201) Inline comments must start with a capital letter, digit or 3-dots sequence
(#206) Inline comments must start with a capital letter, digit or 3-dots sequence
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) Expected 1 space before "=>"; 0 found
(#207) Expected 1 space after "=>"; 0 found
(#207) Expected 1 space before "=>"; 0 found
(#207) Expected 1 space after "=>"; 0 found
(#209) Inline comments must start with a capital letter, digit or 3-dots sequence
(#209) No space found before comment text; expected "// clean up ALL invisible user data from course if this is the last enrolment - groups, grades, etc." but found "//clean up ALL invisible user data from course if this is the last enrolment - groups, grades, etc."
(#212) Inline comments must start with a capital letter, digit or 3-dots sequence
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
(#212) This comment is 75% valid code; is this commented out code?
(#212) No space found before comment text; expected "// grade_user_unenrol($courseid, $userid);" but found "//grade_user_unenrol($courseid, $userid);"
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
(#216) Inline comments must start with a capital letter, digit or 3-dots sequence
(#216) Inline comments must end in full-stops, exclamation marks, or question marks
(#217) Whitespace found at end of line
(#218) Expected "if (...) {\n"; found "if(...) {\n"
(#219) Whitespace found at end of line
(#237) Inline comments must start with a capital letter, digit or 3-dots sequence
(#237) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) Whitespace found at end of line
enrol/zilink_cohort/locallib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
(#34) Whitespace found at end of line
(#43) Whitespace found at end of line within string
(#44) Whitespace found at end of line within string
(#45) Whitespace found at end of line within string
(#46) Whitespace found at end of line within string
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#53) Whitespace found at end of line
(#69) Expected 1 space before "=>"; 0 found
(#69) Expected 1 space after "=>"; 0 found
(#69) Expected 1 space before "=>"; 0 found
(#69) Expected 1 space after "=>"; 0 found
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#86) Whitespace found at end of line
(#89) Whitespace found at end of line
(#89) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#90) Whitespace found at end of line
(#92) Expected 1 space before "=>"; 0 found
(#92) Expected 1 space after "=>"; 0 found
(#92) Expected 1 space before "=>"; 0 found
(#92) Expected 1 space after "=>"; 0 found
(#102) Expected 1 space before "=>"; 0 found
(#102) Expected 1 space after "=>"; 0 found
(#102) Expected 1 space before "=>"; 0 found
(#102) Expected 1 space after "=>"; 0 found
(#102) Expected 1 space before "=>"; 0 found
(#102) Expected 1 space after "=>"; 0 found
(#102) Expected 1 space before "=>"; 0 found
(#102) Expected 1 space after "=>"; 0 found
(#102) Line exceeds 132 characters; contains 156 characters
(#112) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#115) Expected 1 space before "=>"; 0 found
(#115) Expected 1 space after "=>"; 0 found
(#115) Expected 1 space before "=>"; 0 found
(#115) Expected 1 space after "=>"; 0 found
(#118) Whitespace found at end of line
(#125) Expected 1 space before "=>"; 0 found
(#125) Expected 1 space after "=>"; 0 found
(#125) Expected 1 space before "=>"; 0 found
(#125) Expected 1 space after "=>"; 0 found
(#125) Expected 1 space before "=>"; 0 found
(#125) Expected 1 space after "=>"; 0 found
(#141) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#145) Whitespace found at end of line
(#153) Whitespace found at end of line
(#158) Inline comments must start with a capital letter, digit or 3-dots sequence
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) No space found before comment text; expected "// cache" but found "//cache"
(#159) Whitespace found at end of line
(#163) Inline comments must start with a capital letter, digit or 3-dots sequence
(#163) Inline comments must end in full-stops, exclamation marks, or question marks
(#163) This comment is 50% valid code; is this commented out code?
(#163) No space found before comment text; expected "// $onecourse = $courseid ? "AND e.courseid = :courseid" : "";" but found "//$onecourse = $courseid ? "AND e.courseid = :courseid" : "";"
(#165) Expected "if (...) {\n"; found "if(...) {\n"
(#171) Whitespace found at end of line within string
(#172) Whitespace found at end of line within string
(#173) Whitespace found at end of line within string
(#174) Whitespace found at end of line within string
(#180) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#182) Expected 1 space before "=>"; 0 found
(#182) Expected 1 space after "=>"; 0 found
(#184) Whitespace found at end of line
(#185) Inline control structures are not allowed
(#185) Commas (,) must be followed by white space.
(#187) Whitespace found at end of line
(#188) Inline control structures are not allowed
(#188) Commas (,) must be followed by white space.
(#188) Commas (,) must be followed by white space.
(#190) Whitespace found at end of line
(#202) Whitespace found at end of line
(#203) Expected "if (...) {\n"; found "if(...)\n {\n"
(#203) Variable "mdl_cohort" must not contain underscores.
(#203) Commas (,) must be followed by white space.
(#205) Commas (,) must be followed by white space.
(#205) Variable "mdl_cohort" must not contain underscores.
(#206) Whitespace found at end of line
(#207) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#209) Expected "if (...) {\n"; found "if(...)\n {\n"
(#211) Variable "mdl_course" must not contain underscores.
(#211) Commas (,) must be followed by white space.
(#212) Expected "if (...) {\n"; found "if(...) {\n"
(#213) Variable "mdl_cohort" must not contain underscores.
(#213) Variable "mdl_course" must not contain underscores.
(#217) Variable "mdl_cohort" must not contain underscores.
(#220) Whitespace found at end of line
(#222) Whitespace found at end of line
(#223) Variable "mdl_cohort" must not contain underscores.
(#224) Whitespace found at end of line
(#234) Expected "if (...) {\n"; found "if(...)\n {\n"
(#236) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#237) Whitespace found at end of line
(#238) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#239) Whitespace found at end of line
(#241) Whitespace found at end of line
(#242) Expected 1 space before "=>"; 0 found
(#242) Expected 1 space after "=>"; 0 found
(#242) Expected 1 space before "=>"; 0 found
(#243) Whitespace found at end of line
(#244) Expected "if (...) {\n"; found "if(...) {\n"
(#245) Whitespace found at end of line
(#246) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#248) Whitespace found at end of line
(#249) Expected "if (...) {\n"; found "if(...) {\n"
(#253) Whitespace found at end of line
(#258) Whitespace found at end of line
(#259) Expected 1 space before "=>"; 0 found
(#259) Expected 1 space after "=>"; 0 found
(#259) Expected 1 space before "=>"; 0 found
(#259) Expected 1 space after "=>"; 0 found
(#260) Whitespace found at end of line
(#261) Expected "if (...) {\n"; found "if(...)\n {\n"
(#266) Whitespace found at end of line
(#269) Whitespace found at end of line
(#270) Expected "if (...) {\n"; found "if(...) {\n"
(#270) Expected 1 space before "=>"; 0 found
(#270) Expected 1 space after "=>"; 0 found
(#270) Expected 1 space before "=>"; 0 found
(#270) Expected 1 space after "=>"; 0 found
(#273) Whitespace found at end of line
(#274) Expected "if (...) {\n"; found "if(...) {\n"
(#278) Whitespace found at end of line
(#285) Whitespace found at end of line within string
(#286) Whitespace found at end of line within string
(#287) Whitespace found at end of line within string
(#288) Whitespace found at end of line within string
(#290) Expected 1 space before "=>"; 0 found
(#290) Expected 1 space after "=>"; 0 found
(#291) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#293) Expected 1 space before "=>"; 0 found
(#293) Expected 1 space after "=>"; 0 found
(#298) Whitespace found at end of line
(#299) Line indented incorrectly; expected at least 12 spaces, found 9
(#299) Inline control structures are not allowed
(#299) Commas (,) must be followed by white space.
(#301) Whitespace found at end of line
(#302) Inline control structures are not allowed
(#302) Commas (,) must be followed by white space.
(#302) Commas (,) must be followed by white space.
(#304) Whitespace found at end of line
(#315) Expected 1 space before "=>"; 0 found
(#315) Expected 1 space after "=>"; 0 found
(#315) Expected 1 space before "=>"; 0 found
(#315) Expected 1 space after "=>"; 0 found
(#315) Expected 1 space before "=>"; 0 found
(#315) Expected 1 space after "=>"; 0 found
(#315) Expected 1 space before "=>"; 0 found
(#315) Expected 1 space after "=>"; 0 found
(#315) Line exceeds 132 characters; contains 152 characters
(#324) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#328) Whitespace found at end of line within string
(#329) Whitespace found at end of line within string
(#330) Whitespace found at end of line within string
(#331) Whitespace found at end of line within string
(#332) Whitespace found at end of line within string
(#333) Line exceeds 132 characters; contains 178 characters
(#333) Whitespace found at end of line within string
(#342) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#343) Whitespace found at end of line
(#344) Inline control structures are not allowed
(#344) Commas (,) must be followed by white space.
(#344) Commas (,) must be followed by white space.
(#346) Whitespace found at end of line
(#356) Whitespace found at end of line within string
(#357) Whitespace found at end of line within string
(#358) Whitespace found at end of line within string
(#359) Whitespace found at end of line within string
(#360) Whitespace found at end of line within string
(#369) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#370) Whitespace found at end of line
(#371) Inline control structures are not allowed
(#371) Commas (,) must be followed by white space.
(#371) Commas (,) must be followed by white space.
(#373) Whitespace found at end of line
(#380) Whitespace found at end of line
(#381) Expected "if (...) {\n"; found "if(...)\n {\n"
(#385) Whitespace found at end of line
(#387) Whitespace found at end of line within string
(#388) Whitespace found at end of line within string
(#389) Whitespace found at end of line within string
(#390) Whitespace found at end of line within string
(#391) Whitespace found at end of line within string
(#395) Whitespace found at end of line
(#397) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#404) Whitespace found at end of line
(#406) Whitespace found at end of line within string
(#407) Whitespace found at end of line within string
(#408) Whitespace found at end of line within string
(#409) Whitespace found at end of line within string
(#410) Whitespace found at end of line within string
(#414) Whitespace found at end of line
(#416) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#423) Whitespace found at end of line
enrol/zilink_cohort/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// --- general settings -----------------------------------------------------------------------------------" but found "//--- general settings -----------------------------------------------------------------------------------"
(#33) Line exceeds 132 characters; contains 136 characters
(#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
(#36) No space found before comment text; expected "// --- enrol instance defaults ----------------------------------------------------------------------------" but found "//--- enrol instance defaults ----------------------------------------------------------------------------"
(#42) Whitespace found at end of line
enrol/zilink_cohort/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Line exceeds 132 characters; contains 137 characters
(#25) Whitespace found at end of line
(#28) Whitespace found at end of line

Javascript coding style problems

(0 errors, 6 warnings)

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

enrol/zilink_cohort/module.js
(#19) Expected '!==' and instead saw '!='.
(#43) Expected '===' and instead saw '=='.
(#57) Creating global 'for' variable. Should be 'for (var s ...'.
(#75) Expected '!==' and instead saw '!='.
(#75) Empty block.
(#86) Missing semicolon.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(18 errors, 9 warnings)

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

enrol/zilink_cohort/action.php
(#2) Empty line found after PHP open tag
enrol/zilink_cohort/addinstance.php
(#2) Empty line found after PHP open tag
enrol/zilink_cohort/addinstance_form.php
(#2) Empty line found after PHP open tag
enrol/zilink_cohort/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_cohort/db/events.php
(#2) File-level phpdocs block is not found
enrol/zilink_cohort/edit_form.php
(#29) Class enrol_zilink_cohort_edit_form is not documented
(#31) Function enrol_zilink_cohort_edit_form::definition is not documented
(#129) Function enrol_zilink_cohort_edit_form::validation is not documented
(#20) Package enrol_cohort is not valid
enrol/zilink_cohort/lang/en/enrol_zilink_cohort.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_cohort/lib.php
(#2) Empty line found after PHP open tag
(#32) Class enrol_zilink_cohort_plugin is not documented
(#34) Function enrol_zilink_cohort_plugin::get_name is not documented
(#39) Function enrol_zilink_cohort_plugin::get_instance_name is not documented
(#95) Function enrol_zilink_cohort_plugin::cron is not documented
(#111) Function enrol_zilink_cohort_plugin::course_updated is not documented
(#147) Function enrol_zilink_cohort_plugin::unenrol_user is not documented
enrol/zilink_cohort/locallib.php
(#2) Empty line found after PHP open tag
(#33) Class enrol_zilink_cohort_handler is not documented
(#35) Function enrol_zilink_cohort_handler::member_added is not documented
(#79) Function enrol_zilink_cohort_handler::member_removed is not documented
(#110) Function enrol_zilink_cohort_handler::deleted is not documented
(#138) Phpdocs for function enrol_zilink_cohort_sync has incomplete parameters list
enrol/zilink_cohort/settings.php
(#2) Empty line found after PHP open tag
enrol/zilink_cohort/version.php
(#2) Empty line found after PHP open tag

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


Mustache template problems

(0 errors, 0 warnings)

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