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

(496 errors, 81 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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#181) Inline comments must end in full-stops, exclamation marks, or question marks
(#181) This comment is 54% valid code; is this commented out code?
(#181) No space found before comment text; expected "// if($CFG->version >= 2013111800) {" but found "//if($CFG->version >= 2013111800) {"
(#182) Whitespace found at end of line
(#196) This comment is 60% valid code; is this commented out code?
(#196) Inline comments must start with a capital letter, digit or 3-dots sequence
(#196) No space found before comment text; expected "// } else {" but found "//} else {"
(#197) This comment is 67% valid code; is this commented out code?
(#197) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#198) This comment is 100% valid code; is this commented out code?
(#198) No space found before comment text; expected "// }" but found "//}"
(#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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#218) Inline comments must end in full-stops, exclamation marks, or question marks
(#218) This comment is 54% valid code; is this commented out code?
(#218) No space found before comment text; expected "// if($CFG->version >= 2013111800) {" but found "//if($CFG->version >= 2013111800) {"
(#219) Whitespace found at end of line
(#233) This comment is 60% valid code; is this commented out code?
(#233) Inline comments must start with a capital letter, digit or 3-dots sequence
(#233) No space found before comment text; expected "// } else {" but found "//} else {"
(#234) This comment is 67% valid code; is this commented out code?
(#234) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#235) Inline comments must end in full-stops, exclamation marks, or question marks
(#235) This comment is 100% valid code; is this commented out code?
(#235) No space found before comment text; expected "// }" but found "//}"
(#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
(#250) Expected 6 space(s) before asterisk; 5 found
(#251) Expected 6 space(s) before asterisk; 5 found
(#252) Expected 6 space(s) before asterisk; 5 found
(#253) Expected 6 space(s) before asterisk; 5 found
(#254) Expected 6 space(s) before asterisk; 5 found
(#259) 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
(#224) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#225) Whitespace found at end of line
(#231) Expected "if (...) {\n"; found "if(...)\n {\n"
(#233) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#234) Whitespace found at end of line
(#235) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#236) Whitespace found at end of line
(#238) Whitespace found at end of line
(#239) Expected 1 space before "=>"; 0 found
(#239) Expected 1 space after "=>"; 0 found
(#239) Expected 1 space before "=>"; 0 found
(#240) Whitespace found at end of line
(#241) Expected "if (...) {\n"; found "if(...) {\n"
(#242) Whitespace found at end of line
(#243) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#245) Whitespace found at end of line
(#246) Expected "if (...) {\n"; found "if(...) {\n"
(#250) Whitespace found at end of line
(#255) Whitespace found at end of line
(#256) Expected 1 space before "=>"; 0 found
(#256) Expected 1 space after "=>"; 0 found
(#256) Expected 1 space before "=>"; 0 found
(#256) Expected 1 space after "=>"; 0 found
(#257) Whitespace found at end of line
(#258) Expected "if (...) {\n"; found "if(...)\n {\n"
(#263) Whitespace found at end of line
(#266) Whitespace found at end of line
(#267) Expected "if (...) {\n"; found "if(...) {\n"
(#267) Expected 1 space before "=>"; 0 found
(#267) Expected 1 space after "=>"; 0 found
(#267) Expected 1 space before "=>"; 0 found
(#267) Expected 1 space after "=>"; 0 found
(#270) Whitespace found at end of line
(#271) Expected "if (...) {\n"; found "if(...) {\n"
(#275) Whitespace found at end of line
(#282) Whitespace found at end of line within string
(#283) Whitespace found at end of line within string
(#284) Whitespace found at end of line within string
(#285) Whitespace found at end of line within string
(#287) Expected 1 space before "=>"; 0 found
(#287) Expected 1 space after "=>"; 0 found
(#288) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#290) Expected 1 space before "=>"; 0 found
(#290) Expected 1 space after "=>"; 0 found
(#295) Whitespace found at end of line
(#296) Line indented incorrectly; expected at least 12 spaces, found 9
(#296) Inline control structures are not allowed
(#296) Commas (,) must be followed by white space.
(#298) Whitespace found at end of line
(#299) Inline control structures are not allowed
(#299) Commas (,) must be followed by white space.
(#299) Commas (,) must be followed by white space.
(#301) Whitespace found at end of line
(#312) Expected 1 space before "=>"; 0 found
(#312) Expected 1 space after "=>"; 0 found
(#312) Expected 1 space before "=>"; 0 found
(#312) Expected 1 space after "=>"; 0 found
(#312) Expected 1 space before "=>"; 0 found
(#312) Expected 1 space after "=>"; 0 found
(#312) Expected 1 space before "=>"; 0 found
(#312) Expected 1 space after "=>"; 0 found
(#312) Line exceeds 132 characters; contains 152 characters
(#321) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#325) Whitespace found at end of line within string
(#326) Whitespace found at end of line within string
(#327) Whitespace found at end of line within string
(#328) Whitespace found at end of line within string
(#329) Whitespace found at end of line within string
(#330) Line exceeds 132 characters; contains 178 characters
(#330) Whitespace found at end of line within string
(#339) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#340) Whitespace found at end of line
(#341) Inline control structures are not allowed
(#341) Commas (,) must be followed by white space.
(#341) Commas (,) must be followed by white space.
(#343) Whitespace found at end of line
(#353) Whitespace found at end of line within string
(#354) Whitespace found at end of line within string
(#355) Whitespace found at end of line within string
(#356) Whitespace found at end of line within string
(#357) Whitespace found at end of line within string
(#366) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#367) Whitespace found at end of line
(#368) Inline control structures are not allowed
(#368) Commas (,) must be followed by white space.
(#368) Commas (,) must be followed by white space.
(#370) Whitespace found at end of line
(#377) Whitespace found at end of line
(#378) Expected "if (...) {\n"; found "if(...)\n {\n"
(#382) Whitespace found at end of line
(#384) Whitespace found at end of line within string
(#385) Whitespace found at end of line within string
(#386) Whitespace found at end of line within string
(#387) Whitespace found at end of line within string
(#388) Whitespace found at end of line within string
(#392) Whitespace found at end of line
(#394) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#401) Whitespace found at end of line
(#403) Whitespace found at end of line within string
(#404) Whitespace found at end of line within string
(#405) Whitespace found at end of line within string
(#406) Whitespace found at end of line within string
(#407) Whitespace found at end of line within string
(#411) Whitespace found at end of line
(#413) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#420) 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

(125 errors, 27 warnings)

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

enrol/zilink_cohort/module.js
(#1) Identifier 'enrol_zilink_cohort_list' is not in camel case. (camelcase)
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Trailing spaces not allowed. (no-trailing-spaces)
(#2) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#3) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#4) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#5) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#6) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#7) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#8) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#9) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#10) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#11) Trailing spaces not allowed. (no-trailing-spaces)
(#11) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#12) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#13) Trailing spaces not allowed. (no-trailing-spaces)
(#13) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#14) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#15) Trailing spaces not allowed. (no-trailing-spaces)
(#15) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#16) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#17) Trailing spaces not allowed. (no-trailing-spaces)
(#17) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#18) 'uri' is not defined. (no-undef)
(#18) Infix operators must be spaced. (space-infix-ops)
(#18) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#19) Use ‘===’ to compare with ‘null’. (no-eq-null)
(#19) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#20) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#21) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#22) Trailing spaces not allowed. (no-trailing-spaces)
(#22) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#23) 'uri' is not defined. (no-undef)
(#23) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#24) Trailing spaces not allowed. (no-trailing-spaces)
(#24) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#25) Infix operators must be spaced. (space-infix-ops)
(#25) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#26) Infix operators must be spaced. (space-infix-ops)
(#26) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#27) Infix operators must be spaced. (space-infix-ops)
(#27) Infix operators must be spaced. (space-infix-ops)
(#27) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#28) Infix operators must be spaced. (space-infix-ops)
(#28) Infix operators must be spaced. (space-infix-ops)
(#28) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#29) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#30) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#31) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#32) Trailing spaces not allowed. (no-trailing-spaces)
(#32) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#33) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#34) Trailing spaces not allowed. (no-trailing-spaces)
(#34) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#35) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#35) Expected space(s) after "for". (keyword-spacing)
(#35) 'i' is not defined. (no-undef)
(#35) Infix operators must be spaced. (space-infix-ops)
(#35) Infix operators must be spaced. (space-infix-ops)
(#35) Missing whitespace after semicolon. (semi-spacing)
(#35) 'i' is not defined. (no-undef)
(#35) Infix operators must be spaced. (space-infix-ops)
(#35) Missing whitespace after semicolon. (semi-spacing)
(#35) 'i' is not defined. (no-undef)
(#35) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#36) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#37) 'i' is not defined. (no-undef)
(#37) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#38) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#39) Trailing spaces not allowed. (no-trailing-spaces)
(#39) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#40) Trailing spaces not allowed. (no-trailing-spaces)
(#40) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#41) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#42) Unexpected console statement. (no-console)
(#42) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#43) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#43) Expected space(s) after "if". (keyword-spacing)
(#43) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#44) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#45) 'elOptNew' is not defined. (no-undef)
(#45) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#46) 'elOptNew' is not defined. (no-undef)
(#46) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#47) 'elOptNew' is not defined. (no-undef)
(#47) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#48) Trailing spaces not allowed. (no-trailing-spaces)
(#48) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#49) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#50) 'elOptNew' is not defined. (no-undef)
(#50) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#51) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#52) Expected space(s) after "catch". (keyword-spacing)
(#52) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#52) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#53) 'elOptNew' is not defined. (no-undef)
(#53) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#54) Trailing spaces not allowed. (no-trailing-spaces)
(#54) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#55) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#56) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#56) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#57) 's' is not defined. (no-undef)
(#57) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#58) Trailing spaces not allowed. (no-trailing-spaces)
(#58) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#59) 'elOptNew' is not defined. (no-undef)
(#59) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#60) 'elOptNew' is not defined. (no-undef)
(#60) 's' is not defined. (no-undef)
(#60) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#61) 'elOptNew' is not defined. (no-undef)
(#61) 's' is not defined. (no-undef)
(#61) Trailing spaces not allowed. (no-trailing-spaces)
(#61) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#62) Trailing spaces not allowed. (no-trailing-spaces)
(#62) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#63) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#64) 'elOptNew' is not defined. (no-undef)
(#64) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#65) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#66) Expected space(s) after "catch". (keyword-spacing)
(#66) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#66) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#67) 'elOptNew' is not defined. (no-undef)
(#67) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#68) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#69) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#70) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#71) Trailing spaces not allowed. (no-trailing-spaces)
(#71) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#72) Expected space or tab after '//' in comment. (spaced-comment)
(#72) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#73) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#74) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#75) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#76) Expected space or tab after '//' in comment. (spaced-comment)
(#76) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#77) Expected space or tab after '//' in comment. (spaced-comment)
(#77) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#78) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#79) Expected space or tab after '//' in comment. (spaced-comment)
(#79) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#80) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#81) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#82) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#83) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#84) A space is required after ','. (comma-spacing)
(#84) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#85) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#86) Missing semicolon. (semi)
(#86) Trailing spaces not allowed. (no-trailing-spaces)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(19 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
(#260) Function enrol_zilink_cohort_plugin::can_delete_instance 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]


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]