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

(114 errors, 146 warnings)

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

enrol/poasdatabase/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) File must end with a newline character
enrol/poasdatabase/classes/task/sync_cohorts.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/poasdatabase/classes/task/sync_courses_cohorts.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/poasdatabase/classes/task/sync_enrolments.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/poasdatabase/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#38) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#44) There should be a comma after the last array item in a multi-line array.
enrol/poasdatabase/db/install.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/poasdatabase/db/tasks.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#38) Short array syntax must be used to define arrays
(#46) There should be a comma after the last array item in a multi-line array.
(#48) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
enrol/poasdatabase/db/upgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/poasdatabase/lang/en/enrol_poasdatabase.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
enrol/poasdatabase/lang/ru/enrol_poasdatabase.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
enrol/poasdatabase/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#143) Short array syntax must be used to define arrays
(#151) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#204) There should be a comma after the last array item in a multi-line array.
(#211) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
(#246) Short array syntax must be used to define arrays
(#253) Short array syntax must be used to define arrays
(#269) Whitespace found at end of line within string
(#270) Whitespace found at end of line within string
(#271) Whitespace found at end of line within string
(#272) Whitespace found at end of line within string
(#273) Whitespace found at end of line within string
(#275) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#375) Short array syntax must be used to define arrays
(#377) Short array syntax must be used to define arrays
(#378) Short array syntax must be used to define arrays
(#435) Short array syntax must be used to define arrays
(#467) Whitespace found at end of line within string
(#468) Whitespace found at end of line within string
(#504) Whitespace found at end of line within string
(#505) Whitespace found at end of line within string
(#506) Whitespace found at end of line within string
(#507) Whitespace found at end of line within string
(#508) Whitespace found at end of line within string
(#509) Whitespace found at end of line within string
(#510) Whitespace found at end of line within string
(#511) Whitespace found at end of line within string
(#512) Whitespace found at end of line within string
(#600) Short array syntax must be used to define arrays
(#606) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#609) Whitespace found at end of line within string
(#610) Whitespace found at end of line within string
(#611) Whitespace found at end of line within string
(#613) Short array syntax must be used to define arrays
(#624) Short array syntax must be used to define arrays
(#633) Short array syntax must be used to define arrays
(#634) Short array syntax must be used to define arrays
(#634) Short array syntax must be used to define arrays
(#663) Short array syntax must be used to define arrays
(#664) Whitespace found at end of line within string
(#665) Whitespace found at end of line within string
(#680) Short array syntax must be used to define arrays
(#686) Whitespace found at end of line within string
(#687) Whitespace found at end of line within string
(#688) Whitespace found at end of line within string
(#719) Short array syntax must be used to define arrays
(#741) Short array syntax must be used to define arrays
(#769) Short array syntax must be used to define arrays
(#770) Short array syntax must be used to define arrays
(#771) Short array syntax must be used to define arrays
(#772) Short array syntax must be used to define arrays
(#774) Short array syntax must be used to define arrays
(#775) Short array syntax must be used to define arrays
(#776) Whitespace found at end of line within string
(#777) Whitespace found at end of line within string
(#778) Whitespace found at end of line within string
(#779) Whitespace found at end of line within string
(#780) Whitespace found at end of line within string
(#782) Short array syntax must be used to define arrays
(#811) Short array syntax must be used to define arrays
(#814) Short array syntax must be used to define arrays
(#867) Short array syntax must be used to define arrays
(#926) Short array syntax must be used to define arrays
(#962) Short array syntax must be used to define arrays
(#1023) Short array syntax must be used to define arrays
(#1024) Short array syntax must be used to define arrays
(#1027) Whitespace found at end of line within string
(#1028) Whitespace found at end of line within string
(#1029) Whitespace found at end of line within string
(#1030) Whitespace found at end of line within string
(#1031) Whitespace found at end of line within string
(#1032) Whitespace found at end of line within string
(#1033) Whitespace found at end of line within string
(#1034) Whitespace found at end of line within string
(#1035) Whitespace found at end of line within string
(#1036) Whitespace found at end of line within string
(#1050) Short array syntax must be used to define arrays
(#1161) Short array syntax must be used to define arrays
(#1163) Short array syntax must be used to define arrays
(#1169) Short array syntax must be used to define arrays
(#1176) Short array syntax must be used to define arrays
(#1177) Short array syntax must be used to define arrays
(#1189) Short array syntax must be used to define arrays
(#1193) Short array syntax must be used to define arrays
(#1197) Short array syntax must be used to define arrays
(#1206) Short array syntax must be used to define arrays
(#1225) Short array syntax must be used to define arrays
(#1230) Spaces must be used to indent lines; tabs are not allowed
(#1230) Tab found within whitespace
(#1230) Line indented incorrectly; expected at least 32 spaces, found 29
(#1232) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1232) Inline comments must end in full-stops, exclamation marks, or question marks
(#1233) Spaces must be used to indent lines; tabs are not allowed
(#1233) Tab found within whitespace
(#1233) Line indented incorrectly; expected at least 32 spaces, found 29
(#1240) Short array syntax must be used to define arrays
(#1246) Short array syntax must be used to define arrays
(#1249) Short array syntax must be used to define arrays
(#1259) Short array syntax must be used to define arrays
(#1278) Short array syntax must be used to define arrays
(#1283) Spaces must be used to indent lines; tabs are not allowed
(#1283) Tab found within whitespace
(#1283) Line indented incorrectly; expected at least 32 spaces, found 29
(#1285) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1285) Inline comments must end in full-stops, exclamation marks, or question marks
(#1286) Spaces must be used to indent lines; tabs are not allowed
(#1286) Tab found within whitespace
(#1286) Line indented incorrectly; expected at least 32 spaces, found 29
(#1296) Short array syntax must be used to define arrays
(#1312) Short array syntax must be used to define arrays
(#1343) Short array syntax must be used to define arrays
(#1388) Short array syntax must be used to define arrays
(#1392) Short array syntax must be used to define arrays
(#1413) Line exceeds maximum limit of 180 characters; contains 185 characters
(#1423) Opening brace should be on the same line as the declaration
(#1425) Short array syntax must be used to define arrays
(#1436) Whitespace found at end of line within string
(#1437) Whitespace found at end of line within string
(#1438) Whitespace found at end of line within string
(#1488) Short array syntax must be used to define arrays
(#1488) Short array syntax must be used to define arrays
(#1553) Short array syntax must be used to define arrays
(#1579) Short array syntax must be used to define arrays
(#1655) Whitespace found at end of line within string
(#1675) Whitespace found at end of line within string
(#1695) Whitespace found at end of line within string
(#1764) Short array syntax must be used to define arrays
(#1767) There should be a comma after the last array item in a multi-line array.
(#1774) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1774) Inline comments must end in full-stops, exclamation marks, or question marks
(#1782) Short array syntax must be used to define arrays
(#1784) Short array syntax must be used to define arrays
(#1785) Short array syntax must be used to define arrays
(#1803) Short array syntax must be used to define arrays
(#1807) Short array syntax must be used to define arrays
(#1811) Short array syntax must be used to define arrays
(#1827) Line exceeds 132 characters; contains 135 characters
(#1838) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1838) This comment is 56% valid code; is this commented out code?
(#1840) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#1841) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#1842) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#1843) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#1844) Expected 1 space before comment text but found 9; use block comment if you need indentation
(#1845) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#1875) Short array syntax must be used to define arrays
(#1894) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#1907) Line exceeds maximum limit of 180 characters; contains 214 characters
(#1911) Opening brace should be on the same line as the declaration
(#1932) Short array syntax must be used to define arrays
(#1935) There should be a comma after the last array item in a multi-line array.
(#1940) The use of backticks in strings is not recommended
(#1940) Line exceeds 132 characters; contains 140 characters
(#1951) Line exceeds 132 characters; contains 135 characters
(#1952) Line exceeds maximum limit of 180 characters; contains 194 characters
(#1952) Whitespace found at end of line within string
(#1960) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1966) Space found before square bracket; expected "$cohortids[" but found "$cohortids ["
(#1969) Line exceeds 132 characters; contains 164 characters
(#1971) Space found before square bracket; expected "$cohortidstokeep[" but found "$cohortidstokeep ["
(#2001) Short array syntax must be used to define arrays
(#2012) Short array syntax must be used to define arrays
(#2056) Short array syntax must be used to define arrays
(#2058) Short array syntax must be used to define arrays
(#2089) Whitespace found at end of line within string
(#2090) Whitespace found at end of line within string
(#2091) Whitespace found at end of line within string
(#2092) Whitespace found at end of line within string
(#2197) Short array syntax must be used to define arrays
(#2198) Short array syntax must be used to define arrays
(#2199) Short array syntax must be used to define arrays
(#2260) Short array syntax must be used to define arrays
(#2266) This comment is 42% valid code; is this commented out code?
(#2357) Short array syntax must be used to define arrays
(#2363) Short array syntax must be used to define arrays
(#2364) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#2370) Short array syntax must be used to define arrays
(#2388) Short array syntax must be used to define arrays
(#2395) Short array syntax must be used to define arrays
(#2398) There should be a comma after the last array item in a multi-line array.
(#2422) Short array syntax must be used to define arrays
(#2423) Short array syntax must be used to define arrays
(#2430) Whitespace found at end of line within string
(#2431) Whitespace found at end of line within string
(#2432) Whitespace found at end of line within string
(#2433) Whitespace found at end of line within string
(#2434) Whitespace found at end of line within string
(#2457) Short array syntax must be used to define arrays
(#2458) There should be a comma after the last array item in a multi-line array.
(#2475) Short array syntax must be used to define arrays
(#2491) Short array syntax must be used to define arrays
(#2512) Short array syntax must be used to define arrays
(#2530) Short array syntax must be used to define arrays
(#2585) Short array syntax must be used to define arrays
(#2594) Short array syntax must be used to define arrays
(#2597) There should be a comma after the last array item in a multi-line array.
(#2606) Line exceeds 132 characters; contains 161 characters
(#2617) Short array syntax must be used to define arrays
(#2618) There should be a comma after the last array item in a multi-line array.
(#2626) Line exceeds 132 characters; contains 133 characters
(#2647) Short array syntax must be used to define arrays
(#2669) Short array syntax must be used to define arrays
(#2714) Opening brace should be on the same line as the declaration
(#2732) Inline control structures are not allowed
(#2738) Short array syntax must be used to define arrays
enrol/poasdatabase/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#37) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#204) There should be a comma after the last array item in a multi-line array.
(#232) Short array syntax must be used to define arrays
(#233) There should be a comma after the last array item in a multi-line array.
enrol/poasdatabase/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

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

(4 errors, 0 warnings)

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

enrol/poasdatabase/db/upgrade.php
(#28) Phpdocs for function xmldb_enrol_poasdatabase_upgrade has incomplete parameters list
enrol/poasdatabase/lib.php
(#1908) Phpdocs for function enrol_poasdatabase_plugin::remove_cohort_duplicates has incomplete parameters list
(#1995) Phpdocs for function enrol_poasdatabase_plugin::get_cohort_id_by_idnumber has incomplete parameters list
(#2006) Phpdocs for function enrol_poasdatabase_plugin::get_cohort_by_idnumber has incomplete parameters list

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]