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

(409 errors, 133 warnings)

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

enrol/oss/classes/parents/action_form.php
(#35) Visibility must be declared on method "definition"
(#69) Line exceeds 132 characters; contains 168 characters
(#71) Commas (,) must be followed by white space.
enrol/oss/classes/parents/filter_cohort.php
(#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/>.".
enrol/oss/classes/parents/filter_userrole.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Possible useless method overriding detected
(#71) Public method name "filter_userrole::setupForm" must be in lower-case letters only
(#91) Logical operator "and" is prohibited; use "&&" instead
(#92) Expected "if (...) {\n"; found "if(...) {\n"
(#110) Expected "if (...) {\n"; found "if(...){\n"
(#133) Expected "if (...) {\n"; found "if(...){\n"
enrol/oss/classes/parents/parent_filtering.php
(#35) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#46) Expected "if (...) {\n"; found "if(...) {\n"
(#47) Line exceeds 132 characters; contains 143 characters
(#48) Line exceeds 132 characters; contains 138 characters
(#84) Variable "parents_prefix" must not contain underscores.
(#84) Commas (,) must be followed by white space.
(#85) Variable "parents_prefix" must not contain underscores.
(#86) Variable "parents_prefix" must not contain underscores.
(#94) Variable "parents_prefix" must not contain underscores.
enrol/oss/classes/parents/parents_form.php
(#35) Visibility must be declared on method "definition"
enrol/oss/classes/task/sync_classes_task.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/oss/classes/task/sync_enrolments_task.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/oss/classes/task/sync_parents_task.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/oss/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Expected "if (...) {\n"; found "if(...) {\n"
enrol/oss/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#44) Commas (,) must be followed by white space.
(#44) Commas (,) must be followed by white space.
(#56) Commas (,) must be followed by white space.
(#56) Commas (,) must be followed by white space.
enrol/oss/lang/de/enrol_oss.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/oss/lib.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Member variable "idnumber_teachers_cat" must not contain underscores.
(#37) Member variable "idnumber_attic_cat" must not contain underscores.
(#38) Member variable "idnumber_class_cat" must not contain underscores.
(#40) Member variable "teacher_array" must not contain underscores.
(#42) Member variable "teacher_obj" must not contain underscores.
(#43) Member variable "attic_obj" must not contain underscores.
(#44) Member variable "class_obj" must not contain underscores.
(#45) Member variable "userid_regex" must not contain underscores.
(#68) Variable "ldap_usertypes" must not contain underscores.
(#69) Variable "ldap_usertypes" must not contain underscores.
(#70) Variable "ldap_usertypes" must not contain underscores.
(#77) Logical operator "or" is prohibited; use "||" instead
(#108) Commas (,) must be followed by white space.
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#116) Variable "ldap_groups" must not contain underscores.
(#117) Expected "if (...) {\n"; found "if(...){\n"
(#117) Variable "ldap_groups" must not contain underscores.
(#122) Variable "ldap_groups" must not contain underscores.
(#131) Variable "ldap_groups" must not contain underscores.
(#142) Logical operator "or" is prohibited; use "||" instead
(#154) Logical operator "and" is prohibited; use "&&" instead
(#155) Logical operator "or" is prohibited; use "||" instead
(#157) Commas (,) must be followed by white space.
(#157) Commas (,) must be followed by white space.
(#162) Commas (,) must be followed by white space.
(#171) Logical operator "and" is prohibited; use "&&" instead
(#172) Logical operator "and" is prohibited; use "&&" instead
(#174) Commas (,) must be followed by white space.
(#174) Commas (,) must be followed by white space.
(#188) Logical operator "and" is prohibited; use "&&" instead
(#188) Commas (,) must be followed by white space.
(#189) Commas (,) must be followed by white space.
(#213) Variable "ldap_groups" must not contain underscores.
(#214) Variable "ldap_groups" must not contain underscores.
(#218) Variable "ldap_groups" must not contain underscores.
(#220) Variable "ldap_members" must not contain underscores.
(#221) Variable "cohort_members" must not contain underscores.
(#223) Variable "cohort_members" must not contain underscores.
(#224) Variable "ldap_members" must not contain underscores.
(#230) Variable "ldap_members" must not contain underscores.
(#243) Variable "ldap_groups" must not contain underscores.
(#254) Logical operator "or" is prohibited; use "||" instead
(#284) Logical operator "or" is prohibited; use "||" instead
(#286) Line exceeds 132 characters; contains 136 characters
(#298) Logical operator "or" is prohibited; use "||" instead
(#302) Variable "cat_obj" must not contain underscores.
(#303) Commas (,) must be followed by white space.
(#303) Commas (,) must be followed by white space.
(#306) Variable "cat_obj" must not contain underscores.
(#307) Variable "cat_obj" must not contain underscores.
(#308) Variable "cat_obj" must not contain underscores.
(#319) Commas (,) must be followed by white space.
(#319) Variable "cat_obj" must not contain underscores.
(#320) Commas (,) must be followed by white space.
(#320) Variable "cat_obj" must not contain underscores.
(#350) Commas (,) must be followed by white space.
(#378) Commas (,) must be followed by white space.
(#378) Line exceeds 132 characters; contains 146 characters
(#391) Commas (,) must be followed by white space.
(#392) Commas (,) must be followed by white space.
(#392) Line exceeds 132 characters; contains 161 characters
(#393) Commas (,) must be followed by white space.
(#408) Commas (,) must be followed by white space.
(#439) Inline comments must start with a capital letter, digit or 3-dots sequence
(#439) Inline comments must end in full-stops, exclamation marks, or question marks
(#442) Commas (,) must be followed by white space.
(#442) Commas (,) must be followed by white space.
(#445) Logical operator "and" is prohibited; use "&&" instead
(#463) Inline comments must start with a capital letter, digit or 3-dots sequence
(#463) Inline comments must end in full-stops, exclamation marks, or question marks
(#502) Logical operator "or" is prohibited; use "||" instead
(#503) Logical operator "or" is prohibited; use "||" instead
(#503) Logical operator "or" is prohibited; use "||" instead
(#504) Logical operator "or" is prohibited; use "||" instead
(#504) Logical operator "or" is prohibited; use "||" instead
(#510) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#515) Expected "} else {\n"; found "}\n else {\n"
(#521) Expected "for (...) {\n"; found "for(...) {\n"
(#522) Expected "if (...) {\n"; found "if(...) {\n"
(#548) Logical operator "or" is prohibited; use "||" instead
(#566) Variable "ldap_result" must not contain underscores.
(#571) Variable "ldap_result" must not contain underscores.
(#576) Variable "ldap_result" must not contain underscores.
(#579) Expected "if (...) {\n"; found "if(...) {\n"
(#583) Line exceeds 132 characters; contains 169 characters
(#606) Variable "group_pattern" must not contain underscores.
(#606) Variable "all_teachers" must not contain underscores.
(#611) Logical operator "or" is prohibited; use "||" instead
(#628) Variable "group_pattern" must not contain underscores.
(#629) Variable "group_pattern" must not contain underscores.
(#631) Variable "group_pattern" must not contain underscores.
(#641) Variable "ldap_result" must not contain underscores.
(#646) Variable "ldap_result" must not contain underscores.
(#651) Variable "ldap_result" must not contain underscores.
(#664) Logical operator "and" is prohibited; use "&&" instead
(#678) Variable "teachers_ok" must not contain underscores.
(#685) Logical operator "or" is prohibited; use "||" instead
(#715) Logical operator "and" is prohibited; use "&&" instead
(#728) Line exceeds 132 characters; contains 135 characters
(#733) Logical operator "and" is prohibited; use "&&" instead
(#733) Variable "teachers_ok" must not contain underscores.
(#733) Logical operator "or" is prohibited; use "||" instead
(#756) Expected "} else {\n"; found "}\n else {\n"
(#762) Commas (,) must be followed by white space.
(#762) Commas (,) must be followed by white space.
(#762) Commas (,) must be followed by white space.
(#762) Commas (,) must be followed by white space.
(#768) The use of function error_log() is forbidden; use debugging() instead
(#806) Commas (,) must be followed by white space.
(#857) Inline comments must start with a capital letter, digit or 3-dots sequence
(#857) Inline comments must end in full-stops, exclamation marks, or question marks
(#863) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#866) Inline comments must start with a capital letter, digit or 3-dots sequence
(#866) Inline comments must end in full-stops, exclamation marks, or question marks
(#871) Inline comments must start with a capital letter, digit or 3-dots sequence
(#871) Inline comments must end in full-stops, exclamation marks, or question marks
(#891) Logical operator "or" is prohibited; use "||" instead
(#892) Logical operator "or" is prohibited; use "||" instead
(#892) Logical operator "or" is prohibited; use "||" instead
(#928) Commas (,) must be followed by white space.
(#1016) Variable "cat_obj" must not contain underscores.
(#1016) Commas (,) must be followed by white space.
(#1016) Commas (,) must be followed by white space.
(#1016) Line exceeds 132 characters; contains 143 characters
(#1017) Variable "cat_obj" must not contain underscores.
(#1018) Variable "cat_obj" must not contain underscores.
(#1018) Commas (,) must be followed by white space.
(#1020) Variable "cat_obj" must not contain underscores.
(#1021) Variable "cat_obj" must not contain underscores.
(#1025) Variable "cat_obj" must not contain underscores.
(#1035) Commas (,) must be followed by white space.
(#1035) Commas (,) must be followed by white space.
(#1035) Line exceeds 132 characters; contains 148 characters
(#1038) Commas (,) must be followed by white space.
(#1038) Commas (,) must be followed by white space.
(#1038) Commas (,) must be followed by white space.
(#1039) Variable "cat_obj" must not contain underscores.
(#1059) Variable "cat_obj" must not contain underscores.
(#1060) Variable "idnumber_class_cat" must not contain underscores.
(#1063) Variable "cat_obj" must not contain underscores.
(#1065) Variable "cat_obj" must not contain underscores.
(#1065) Variable "idnumber_class_cat" must not contain underscores.
(#1065) Line exceeds 132 characters; contains 161 characters
(#1066) Variable "cat_obj" must not contain underscores.
(#1067) Variable "cat_obj" must not contain underscores.
(#1073) Variable "cat_obj" must not contain underscores.
(#1073) Variable "cat_obj" must not contain underscores.
(#1075) Variable "cat_obj" must not contain underscores.
(#1076) Variable "idnumber_class_cat" must not contain underscores.
(#1078) Variable "cat_obj" must not contain underscores.
(#1112) Space found before square bracket; expected "$ret[" but found "$ret ["
(#1127) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1127) Inline comments must end in full-stops, exclamation marks, or question marks
(#1131) Space found before square bracket; expected "$pattern[" but found "$pattern ["
(#1154) Commas (,) must be followed by white space.
(#1185) Commas (,) must be followed by white space.
(#1199) Usage of ELSEIF not allowed; use ELSE IF instead
(#1202) Commas (,) must be followed by white space.
(#1204) Commas (,) must be followed by white space.
(#1218) "require_once" must be immediately followed by an open parenthesis
(#1219) "require_once" must be immediately followed by an open parenthesis
(#1222) Line exceeds 132 characters; contains 146 characters
(#1241) Line exceeds 132 characters; contains 136 characters
(#1254) "require_once" must be immediately followed by an open parenthesis
(#1264) Visibility must be declared on method "sync_classes"
(#1271) Variable "ldap_classes" must not contain underscores.
(#1272) Variable "mdl_classes" must not contain underscores.
(#1274) Variable "to_add" must not contain underscores.
(#1274) Variable "ldap_classes" must not contain underscores.
(#1274) Commas (,) must be followed by white space.
(#1274) Variable "mdl_classes" must not contain underscores.
(#1275) Variable "to_add" must not contain underscores.
(#1276) Variable "to_add" must not contain underscores.
(#1280) Variable "to_remove" must not contain underscores.
(#1280) Variable "mdl_classes" must not contain underscores.
(#1280) Commas (,) must be followed by white space.
(#1280) Variable "ldap_classes" must not contain underscores.
(#1281) Variable "to_remove" must not contain underscores.
(#1282) Variable "to_remove" must not contain underscores.
(#1286) Commas (,) must be followed by white space.
(#1294) Visibility must be declared on method "sync_classes_enrolments_user"
(#1301) Expected "} else {\n"; found "} else {\n"
(#1304) Variable "ldap_classes" must not contain underscores.
(#1305) Variable "mdl_classes" must not contain underscores.
(#1306) Variable "to_enrol" must not contain underscores.
(#1306) Variable "ldap_classes" must not contain underscores.
(#1306) Commas (,) must be followed by white space.
(#1306) Variable "mdl_classes" must not contain underscores.
(#1307) Variable "to_unenrol" must not contain underscores.
(#1307) Variable "mdl_classes" must not contain underscores.
(#1307) Variable "ldap_classes" must not contain underscores.
(#1308) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1308) Variable "to_enrol" must not contain underscores.
(#1309) Variable "mdl_classes" must not contain underscores.
(#1311) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1311) Variable "to_unenrol" must not contain underscores.
(#1312) Variable "mdl_classes" must not contain underscores.
(#1321) Variable "enrol_instance" must not contain underscores.
(#1322) Variable "enrol_instance" must not contain underscores.
(#1327) Variable "enrol_instance" must not contain underscores.
(#1329) Variable "enrol_instance" must not contain underscores.
(#1332) Variable "enrol_instance" must not contain underscores.
(#1333) Variable "to_enrol" must not contain underscores.
(#1334) Variable "to_unenrol" must not contain underscores.
(#1335) Variable "to_enrol_teachers" must not contain underscores.
(#1336) Variable "to_enrol_students" must not contain underscores.
(#1337) Variable "to_enrol_parents" must not contain underscores.
(#1338) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1338) Variable "to_enrol" must not contain underscores.
(#1342) Variable "to_enrol_teachers" must not contain underscores.
(#1345) Variable "to_enrol_students" must not contain underscores.
(#1348) Variable "to_enrol_parents" must not contain underscores.
(#1353) Variable "to_enrol" must not contain underscores.
(#1353) Variable "to_unenrol" must not contain underscores.
(#1355) Variable "to_enrol" must not contain underscores.
(#1356) Variable "to_unenrol" must not contain underscores.
(#1358) Variable "to_enrol_teachers" must not contain underscores.
(#1359) Variable "enrol_instance" must not contain underscores.
(#1359) Variable "to_enrol_teachers" must not contain underscores.
(#1361) Variable "to_enrol_students" must not contain underscores.
(#1362) Variable "enrol_instance" must not contain underscores.
(#1362) Variable "to_enrol_students" must not contain underscores.
(#1364) Variable "to_enrol_parents" must not contain underscores.
(#1365) Variable "enrol_instance" must not contain underscores.
(#1365) Variable "to_enrol_parents" must not contain underscores.
(#1367) Variable "to_unenrol" must not contain underscores.
(#1368) Variable "enrol_instance" must not contain underscores.
(#1368) Variable "to_unenrol" must not contain underscores.
(#1375) Visibility must be declared on method "sync_classes_enrolments"
(#1376) Variable "class_obj" must not contain underscores.
(#1377) Variable "class_obj" must not contain underscores.
(#1380) Variable "mdl_classes" must not contain underscores.
(#1381) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1381) Variable "mdl_classes" must not contain underscores.
(#1382) Variable "ldap_members" must not contain underscores.
(#1383) Variable "ldap_members" must not contain underscores.
(#1383) Variable "ldap_members" must not contain underscores.
(#1385) Variable "enrol_instance" must not contain underscores.
(#1386) Variable "enrol_instance" must not contain underscores.
(#1390) Variable "mdl_members" must not contain underscores.
(#1391) Variable "enrol_instance" must not contain underscores.
(#1391) Variable "mdl_members" must not contain underscores.
(#1391) Variable "ldap_members" must not contain underscores.
(#1395) Visibility must be declared on method "get_class_parents"
(#1398) Expected "if (...) {\n"; found "if(...){\n"
(#1411) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1417) Visibility must be declared on method "is_ldap_or_manual"
(#1419) Expected "if (...) {\n"; found "if(...){\n"
(#1426) Visibility must be declared on method "class_enrol"
(#1426) Variable "enrol_instance" must not contain underscores.
(#1437) Line exceeds 132 characters; contains 138 characters
(#1440) Variable "enrol_instance" must not contain underscores.
(#1446) Visibility must be declared on method "class_unenrol"
(#1446) Variable "enrol_instance" must not contain underscores.
(#1457) Line exceeds 132 characters; contains 142 characters
(#1460) Variable "enrol_instance" must not contain underscores.
(#1461) Line exceeds 132 characters; contains 158 characters
(#1474) "require_once" must be immediately followed by an open parenthesis
(#1476) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1490) "require_once" must be immediately followed by an open parenthesis
(#1507) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1508) Expected "if (...) {\n"; found "if(...) {\n"
(#1530) Expected "if (...) {\n"; found "if(...) {\n"
(#1550) Commas (,) must be followed by white space.
(#1560) Commas (,) must be followed by white space.
(#1561) "require_once" must be immediately followed by an open parenthesis
(#1580) "require_once" must be immediately followed by an open parenthesis
(#1592) "require_once" must be immediately followed by an open parenthesis
(#1602) "require_once" must be immediately followed by an open parenthesis
(#1614) "require_once" must be immediately followed by an open parenthesis
(#1632) Variable "mdl_user_objects" must not contain underscores.
(#1634) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1634) Variable "mdl_user_objects" must not contain underscores.
(#1666) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1666) Inline comments must end in full-stops, exclamation marks, or question marks
(#1680) Line exceeds 132 characters; contains 148 characters
(#1690) Visibility must be declared on method "sync_collections_enrolments"
(#1690) Expected 1 space before opening brace; found 0
(#1693) Variable "course_allstds" must not contain underscores.
(#1693) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#1702) Commas (,) must be followed by white space.
(#1708) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1708) Inline comments must end in full-stops, exclamation marks, or question marks
(#1710) Variable "course_allstds" must not contain underscores.
(#1710) Commas (,) must be followed by white space.
(#1710) Line exceeds 132 characters; contains 134 characters
(#1711) Variable "course_allstds" must not contain underscores.
(#1712) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1712) Inline comments must end in full-stops, exclamation marks, or question marks
(#1713) Variable "course_allstds" must not contain underscores.
(#1714) Variable "members_ist" must not contain underscores.
(#1715) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1715) Inline comments must end in full-stops, exclamation marks, or question marks
(#1718) Variable "members_soll" must not contain underscores.
(#1719) Variable "enrol_instance" must not contain underscores.
(#1719) Variable "course_allstds" must not contain underscores.
(#1720) Variable "enrol_instance" must not contain underscores.
(#1721) Commas (,) must be followed by white space.
(#1721) Line exceeds maximum limit of 180 characters; contains 182 characters
(#1723) Variable "course_allstds" must not contain underscores.
(#1723) Variable "enrol_instance" must not contain underscores.
(#1723) Variable "members_ist" must not contain underscores.
(#1723) Variable "members_soll" must not contain underscores.
(#1728) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1728) Inline comments must end in full-stops, exclamation marks, or question marks
(#1732) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1732) Inline comments must end in full-stops, exclamation marks, or question marks
(#1733) Commas (,) must be followed by white space.
(#1736) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1736) Inline comments must end in full-stops, exclamation marks, or question marks
(#1738) Variable "members_ist" must not contain underscores.
(#1739) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1739) Inline comments must end in full-stops, exclamation marks, or question marks
(#1741) Variable "members_soll" must not contain underscores.
(#1742) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1742) Inline comments must end in full-stops, exclamation marks, or question marks
(#1743) Variable "enrol_instance" must not contain underscores.
(#1744) Variable "enrol_instance" must not contain underscores.
(#1745) Line exceeds 132 characters; contains 137 characters
(#1747) Variable "enrol_instance" must not contain underscores.
(#1747) Variable "members_ist" must not contain underscores.
(#1747) Variable "members_soll" must not contain underscores.
(#1769) Variable "ldap_students" must not contain underscores.
(#1772) Variable "mdl_students" must not contain underscores.
(#1773) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1774) Variable "mdl_students" must not contain underscores.
(#1777) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1777) Variable "ldap_students" must not contain underscores.
(#1778) Variable "mdl_students" must not contain underscores.
(#1791) Expected "if (...) {\n"; found "if(...) {\n"
(#1791) Logical operator "or" is prohibited; use "||" instead
(#1791) Logical operator "or" is prohibited; use "||" instead
(#1791) Logical operator "or" is prohibited; use "||" instead
(#1808) Expected "if (...) {\n"; found "if(...) {\n"
(#1808) Logical operator "or" is prohibited; use "||" instead
(#1808) Logical operator "or" is prohibited; use "||" instead
(#1808) Logical operator "or" is prohibited; use "||" instead
(#1830) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1837) Expected "if (...) {\n"; found "if(...) {\n"
(#1837) Empty IF statement detected
(#1838) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1838) Inline comments must end in full-stops, exclamation marks, or question marks
(#1840) Expected "if (...) {\n"; found "if(...) {\n"
(#1840) Empty IF statement detected
(#1841) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1841) Inline comments must end in full-stops, exclamation marks, or question marks
(#1843) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1843) Inline comments must end in full-stops, exclamation marks, or question marks
(#1844) Variable "relation_to_be" must not contain underscores.
(#1851) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1854) Variable "to_create" must not contain underscores.
(#1855) Variable "to_delete" must not contain underscores.
(#1856) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1856) Variable "to_create" must not contain underscores.
(#1857) Expected "if (...) {\n"; found "if(...) {\n"
(#1863) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1863) Variable "to_delete" must not contain underscores.
(#1864) Expected "if (...) {\n"; found "if(...) {\n"
(#1884) Variable "attic_obj" must not contain underscores.
(#1885) Variable "attic_obj" must not contain underscores.
(#1894) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1894) Inline comments must end in full-stops, exclamation marks, or question marks
(#1918) Expected "} else {\n"; found "}\n else {\n"
(#1931) Commas (,) must be followed by white space.
(#1933) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1933) Inline comments must end in full-stops, exclamation marks, or question marks
(#1971) Variable "ignored_teachers" must not contain underscores.
(#1972) Variable "ignored_teachers" must not contain underscores.
(#1975) Variable "ignored_teachers" must not contain underscores.
(#1998) Variable "cat_obj" must not contain underscores.
(#1999) Commas (,) must be followed by white space.
(#2000) Variable "cat_obj" must not contain underscores.
(#2001) Variable "cat_obj" must not contain underscores.
(#2001) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2001) Inline comments must end in full-stops, exclamation marks, or question marks
(#2003) Variable "cat_obj" must not contain underscores.
(#2007) Variable "cat_obj" must not contain underscores.
(#2009) Variable "cat_obj" must not contain underscores.
(#2013) Variable "cat_obj" must not contain underscores.
(#2013) Line exceeds 132 characters; contains 163 characters
(#2015) Variable "cat_obj" must not contain underscores.
(#2028) Commas (,) must be followed by white space.
(#2030) Expected "if (...) {\n"; found "if (...){\n"
(#2039) Variable "teacher_coursecreator" must not contain underscores.
(#2041) Variable "teacher_editingteacher" must not contain underscores.
(#2041) Line exceeds 132 characters; contains 135 characters
(#2043) Variable "teacher_coursecreator" must not contain underscores.
(#2043) Variable "teacher_editingteacher" must not contain underscores.
(#2057) Expected "if (...) {\n"; found "if (...){\n"
(#2072) Line exceeds 132 characters; contains 133 characters
(#2092) Expected "if (...) {\n"; found "if (...){\n"
(#2118) Commas (,) must be followed by white space.
(#2147) Logical operator "or" is prohibited; use "||" instead
(#2148) Logical operator "or" is prohibited; use "||" instead
(#2152) Commas (,) must be followed by white space.
(#2152) Commas (,) must be followed by white space.
(#2183) Commas (,) must be followed by white space.
(#2187) Expected "if (...) {\n"; found "if(...) {\n"
(#2194) Expected "} else {\n"; found "}\n else {\n"
(#2200) Expected "} else {\n"; found "}\n else {\n"
(#2206) Expected "} else {\n"; found "}\n else {\n"
(#2212) Expected "} else {\n"; found "}\n else {\n"
(#2215) Expected "if (...) {\n"; found "if(...) {\n"
enrol/oss/parents/parents.php
(#33) Variable "parents_enabled" must not contain underscores.
(#35) Expected "if (...) {\n"; found "if(...) {\n"
(#35) Variable "parents_enabled" must not contain underscores.
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "action_form" must not contain underscores.
(#45) Variable "action_form" must not contain underscores.
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Line exceeds 132 characters; contains 143 characters
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Variable "user_bulk_form" must not contain underscores.
(#67) Variable "user_bulk_form" must not contain underscores.
(#76) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#95) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#105) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Variable "user_bulk_form" must not contain underscores.
(#109) Inline comments must start with a capital letter, digit or 3-dots sequence
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Variable "user_bulk_form" must not contain underscores.
(#117) Variable "action_form" must not contain underscores.
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Commas (,) must be followed by white space.
enrol/oss/parents/parents_set_passwords.php
(#55) Logical operator "and" is prohibited; use "&&" instead
enrol/oss/parents/parentslib.php
(#100) Line exceeds 132 characters; contains 136 characters
enrol/oss/settings.php
(#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/>.".
(#28) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Commas (,) must be followed by white space.
(#71) Commas (,) must be followed by white space.
(#90) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#159) Commas (,) must be followed by white space.
(#160) Commas (,) must be followed by white space.
(#164) Variable "settings_class_category" must not contain underscores.
(#167) Variable "settings_class_category" must not contain underscores.
(#168) Variable "settings_class_category" must not contain underscores.
(#170) Commas (,) must be followed by white space.
(#171) Commas (,) must be followed by white space.
(#171) Commas (,) must be followed by white space.
(#173) Commas (,) must be followed by white space.
(#174) Commas (,) must be followed by white space.
(#174) Commas (,) must be followed by white space.
(#176) Commas (,) must be followed by white space.
(#177) Commas (,) must be followed by white space.
(#177) Commas (,) must be followed by white space.
(#179) Commas (,) must be followed by white space.
(#180) Commas (,) must be followed by white space.
(#182) Commas (,) must be followed by white space.
(#183) Commas (,) must be followed by white space.
(#183) Commas (,) must be followed by white space.
(#184) Variable "enrol_oss_courses" must not contain underscores.
(#185) Variable "enrol_oss_coursenames" must not contain underscores.
(#186) Variable "enrol_oss_coursenames" must not contain underscores.
(#187) Variable "enrol_oss_courses" must not contain underscores.
(#189) Variable "enrol_oss_courses" must not contain underscores.
(#189) Commas (,) must be followed by white space.
(#192) Variable "enrol_oss_courses" must not contain underscores.
(#194) Commas (,) must be followed by white space.
(#195) Commas (,) must be followed by white space.
(#197) Commas (,) must be followed by white space.
(#198) Commas (,) must be followed by white space.
(#198) Commas (,) must be followed by white space.
(#203) Commas (,) must be followed by white space.
(#204) Commas (,) must be followed by white space.
(#229) Inline comments must start with a capital letter, digit or 3-dots sequence
(#229) Inline comments must end in full-stops, exclamation marks, or question marks
(#233) Variable "settings_class_teachers_group_description" must not contain underscores.
(#237) Variable "settings_class_teachers_group_description" must not contain underscores.
(#238) Variable "settings_class_teachers_group_description" must not contain underscores.
(#239) Variable "settings_class_students_group_description" must not contain underscores.
(#243) Variable "settings_class_students_group_description" must not contain underscores.
(#244) Variable "settings_class_students_group_description" must not contain underscores.
(#245) Variable "settings_class_parents_group_description" must not contain underscores.
(#249) Variable "settings_class_parents_group_description" must not contain underscores.
(#250) Variable "settings_class_parents_group_description" must not contain underscores.
(#252) Inline comments must start with a capital letter, digit or 3-dots sequence
(#252) Inline comments must end in full-stops, exclamation marks, or question marks
(#254) Commas (,) must be followed by white space.
(#255) Commas (,) must be followed by white space.
enrol/oss/settings_callbacks.php
(#32) Variable "full_name" must not contain underscores.
(#35) "require_once" must be immediately followed by an open parenthesis
(#48) Line exceeds 132 characters; contains 166 characters
(#49) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#56) Variable "full_name" must not contain underscores.
(#61) Variable "full_name" must not contain underscores.
(#66) Variable "full_name" must not contain underscores.
enrol/oss/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(65 errors, 30 warnings)

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

enrol/oss/classes/parents/action_form.php
(#34) Class action_form is not documented
(#35) Function action_form::definition is not documented
(#20) Package enrol is not valid
enrol/oss/classes/parents/filter_cohort.php
(#33) Category user is not valid
enrol/oss/classes/parents/filter_userrole.php
(#21) Category user is not valid
enrol/oss/classes/parents/parent_filtering.php
(#37) Class parent_filtering is not documented
(#21) Category user is not valid
enrol/oss/classes/parents/parents_form.php
(#34) Class parents_form is not documented
(#35) Function parents_form::definition is not documented
(#20) Package enrol is not valid
enrol/oss/cli/repair_teachers_contexts.php
(#17) File-level phpdocs block is not found
enrol/oss/cli/sync.php
(#36) Package enrol is not valid
enrol/oss/cli/test.php
(#36) Package enrol is not valid
enrol/oss/db/install.php
(#28) Function xmldb_enrol_oss_install is not documented
(#20) Package enrol is not valid
enrol/oss/db/upgrade.php
(#2) Empty line found after PHP open tag
(#30) Function xmldb_enrol_oss_upgrade is not documented
(#23) Package enrol is not valid
enrol/oss/lang/de/enrol_oss.php
(#2) Empty line found after PHP open tag
enrol/oss/lang/en/enrol_oss.php
(#20) Package enrol is not valid
enrol/oss/lib.php
(#33) Class enrol_oss_plugin is not documented
(#488) Function enrol_oss_plugin::enrol_oss_sync is not documented
(#499) Function enrol_oss_plugin::get_idnumber_cohorts is not documented
(#902) Function enrol_oss_plugin::get_cohort_members is not documented
(#915) Function enrol_oss_plugin::cohort_is_member is not documented
(#924) Function enrol_oss_plugin::has_teachers_as_members is not documented
(#1195) Function enrol_oss_plugin::get_localname is not documented
(#1294) Function enrol_oss_plugin::sync_classes_enrolments_user is not documented
(#1319) Function enrol_oss_plugin::get_enrol_instance is not documented
(#1332) Function enrol_oss_plugin::class_enrolunenrol is not documented
(#1375) Function enrol_oss_plugin::sync_classes_enrolments is not documented
(#1395) Function enrol_oss_plugin::get_class_parents is not documented
(#1417) Function enrol_oss_plugin::is_ldap_or_manual is not documented
(#1426) Function enrol_oss_plugin::class_enrol is not documented
(#1446) Function enrol_oss_plugin::class_unenrol is not documented
(#1472) Function enrol_oss_plugin::sync_user_groups is not documented
(#1488) Function enrol_oss_plugin::sync_class_groups is not documented
(#1522) Function enrol_oss_plugin::get_groupid is not documented
(#1544) Function enrol_oss_plugin::get_group is not documented
(#1559) Function enrol_oss_plugin::class_create_group is not documented
(#1579) Function enrol_oss_plugin::class_delete_group is not documented
(#1590) Function enrol_oss_plugin::class_group_is_member is not documented
(#1600) Function enrol_oss_plugin::class_group_add_member is not documented
(#1612) Function enrol_oss_plugin::class_group_remove_member is not documented
(#2143) Function enrol_oss_plugin::userid_from_dn is not documented
(#2162) Function enrol_oss_plugin::test_sync_user_enrolments is not documented
(#34) Variable enrol_oss_plugin::$enroltype is not documented
(#35) Variable enrol_oss_plugin::$errorlogtag is not documented
(#36) Variable enrol_oss_plugin::$idnumber_teachers_cat is not documented
(#37) Variable enrol_oss_plugin::$idnumber_attic_cat is not documented
(#38) Variable enrol_oss_plugin::$idnumber_class_cat is not documented
(#39) Variable enrol_oss_plugin::$groupids is not documented
(#40) Variable enrol_oss_plugin::$teacher_array is not documented
(#41) Variable enrol_oss_plugin::$authldap is not documented
(#42) Variable enrol_oss_plugin::$teacher_obj is not documented
(#43) Variable enrol_oss_plugin::$attic_obj is not documented
(#44) Variable enrol_oss_plugin::$class_obj is not documented
(#45) Variable enrol_oss_plugin::$userid_regex is not documented
(#401) Phpdocs for function enrol_oss_plugin::update_city has incomplete parameters list
(#592) Phpdocs for function enrol_oss_plugin::ldap_get_grouplist has incomplete parameters list
(#674) Phpdocs for function enrol_oss_plugin::ldap_get_group_members has incomplete parameters list
(#881) Phpdocs for function enrol_oss_plugin::get_coursecohortlist has incomplete parameters list
(#972) Phpdocs for function enrol_oss_plugin::is_teacher has incomplete parameters list
(#1051) Phpdocs for function enrol_oss_plugin::get_class_category has incomplete parameters list
(#1119) Phpdocs for function enrol_oss_plugin::get_classes_ldap has incomplete parameters list
(#1641) Phpdocs for function enrol_oss_plugin::classes_get_enrolled has incomplete parameters list
(#1661) Phpdocs for function enrol_oss_plugin::classes_get_course has incomplete parameters list
(#1786) Phpdocs for function enrol_oss_plugin::parents_add_relationship has incomplete parameters list
(#1803) Phpdocs for function enrol_oss_plugin::parents_remove_relationship has incomplete parameters list
(#1876) Phpdocs for function enrol_oss_plugin::delete_move_teacher_to_attic has incomplete parameters list
(#1926) Phpdocs for function enrol_oss_plugin::resort_categories has incomplete parameters list
(#1959) Phpdocs for function enrol_oss_plugin::is_ignored_teacher has incomplete parameters list
(#1978) Phpdocs for function enrol_oss_plugin::teacher_add_category has incomplete parameters list
(#2107) Phpdocs for function enrol_oss_plugin::create_category has incomplete parameters list
(#2170) Phpdocs for function enrol_oss_plugin::ldap_connect_ul has incomplete parameters list
(#405) Invalid phpdocs tag @returns used
(#430) Invalid phpdocs tag @returns used
(#494) Invalid phpdocs tag @parameters used
(#339) Not recommended phpdocs tag @global used
(#22) Package enrol is not valid
enrol/oss/parents/parents.php
(#20) Package enrol is not valid
enrol/oss/parents/parents_set_passwords.php
(#20) Package enrol is not valid
enrol/oss/parents/parentslib.php
(#35) Function enrol_oss_add_selection_all is not documented
(#49) Function enrol_oss_format_parents_select_menu is not documented
(#79) Function enrol_oss_get_selection_data is not documented
(#107) Function enrol_oss_parents_update_parents is not documented
(#20) Package enrol is not valid
enrol/oss/settings.php
(#19) Package enrol is not valid
enrol/oss/settings_callbacks.php
(#32) Function enrol_oss_settings_class_category_updated is not documented
(#44) Function enrol_oss_description_updated is not documented
(#56) Function enrol_oss_settings_class_teachers_group_description_updated is not documented
(#61) Function enrol_oss_settings_class_students_group_description_updated is not documented
(#66) Function enrol_oss_settings_class_parents_group_description_updated is not documented
(#22) Package enrol is not valid
enrol/oss/version.php
(#20) Package enrol is not valid

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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]