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

(156 errors, 56 warnings)

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

blocks/semester_sortierung/ajax_favorites.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/semester_sortierung/ajax_modinfo.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#35) Variable "mods_array" must not contain underscores.
(#37) Variable "mods_array" must not contain underscores.
(#38) Variable "mods_array" must not contain underscores.
(#41) Variable "mods_array" must not contain underscores.
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) No space found before comment text; expected "// code copied from course_overview block, that's why $USER is used, although discouraged" but found "//code copied from course_overview block, that's why $USER is used, although discouraged"
(#52) Variable "mods_array" must not contain underscores.
blocks/semester_sortierung/ajax_setstate.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/semester_sortierung/block_semester_sortierung.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) No space found before comment text; expected "// set the title of the block" but found "//set the title of the block"
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) No space found before comment text; expected "// code copied from course_overview block, that's why $USER is used, although discouraged" but found "//code copied from course_overview block, that's why $USER is used, although discouraged"
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) No space found before comment text; expected "// if content already present, spare time" but found "//if content already present, spare time"
(#72) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#73) Whitespace found at end of line
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) No space found before comment text; expected "// get the information about the enrolled courses" but found "//get the information about the enrolled courses"
(#84) Whitespace found at end of line
(#87) Whitespace found at end of line
(#91) Whitespace found at end of line
(#91) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#92) Whitespace found at end of line
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) No space found before comment text; expected "// some moodle hacks.." but found "//some moodle hacks.."
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) No space found before comment text; expected "// just in case we need the old global $course hack" but found "//just in case we need the old global $course hack"
(#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) No space found before comment text; expected "// get remote courses.. not really needed but part of the Course overview block, so keep it" but found "//get remote courses.. not really needed but part of the Course overview block, so keep it"
(#99) Variable "remote_courses" must not contain underscores.
(#101) Variable "remote_courses" must not contain underscores.
(#102) Variable "remote_courses" must not contain underscores.
(#104) Whitespace found at end of line
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) No space found before comment text; expected "// moodle hack - removes the site(main course with id usually 0 or 1) from the list of courses - there is no information in" but found "//moodle hack - removes the site(main course with id usually 0 or 1) from the list of courses - there is no information in"
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) No space found before comment text; expected "// that "course"" but found "//that "course""
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) No space found before comment text; expected "// add the semester to each course" but found "//add the semester to each course"
(#123) Inline comments must start with a capital letter, digit or 3-dots sequence
(#123) No space found before comment text; expected "// more remote courses stuff, directly copied from Course overview block" but found "//more remote courses stuff, directly copied from Course overview block"
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) No space found before comment text; expected "// output buffering is used here" but found "//output buffering is used here"
(#125) Variable "remote_courses" must not contain underscores.
(#129) Variable "remote_courses" must not contain underscores.
(#132) Inline comments must start with a capital letter, digit or 3-dots sequence
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#132) No space found before comment text; expected "// "compile" the text from the array" but found "//"compile" the text from the array"
(#153) Expected 1 space before "=>"; 0 found
(#153) Expected 1 space after "=>"; 0 found
(#162) Inline comments must start with a capital letter, digit or 3-dots sequence
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#162) No space found before comment text; expected "// return false; not needed in 2.5 since block protection is working" but found "//return false; not needed in 2.5 since block protection is working"
(#182) Inline comments must end in full-stops, exclamation marks, or question marks
(#197) Whitespace found at end of line
(#197) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#198) Whitespace found at end of line
(#204) Whitespace found at end of line
(#210) Expected 1 space before "=>"; 0 found
(#210) Expected 1 space after "=>"; 0 found
(#217) Inline comments must start with a capital letter, digit or 3-dots sequence
(#217) Inline comments must end in full-stops, exclamation marks, or question marks
(#217) This comment is 86% valid code; is this commented out code?
(#217) No space found before comment text; expected "// array_push($sortedcourses[$semester[1]], $course);" but found "//array_push($sortedcourses[$semester[1]], $course);"
blocks/semester_sortierung/db/access.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/semester_sortierung/db/upgrade.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
blocks/semester_sortierung/lang/de/block_semester_sortierung.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/semester_sortierung/lang/en/block_semester_sortierung.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/semester_sortierung/locallib.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#35) Whitespace found at end of line
blocks/semester_sortierung/renderer.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#39) Whitespace found at end of line
(#44) Variable "remote_courses" must not contain underscores.
(#46) Whitespace found at end of line
(#48) Whitespace found at end of line
(#52) Whitespace found at end of line
(#53) Variable "sortedcourses_expanded" must not contain underscores.
(#54) Variable "semesters_expanded" must not contain underscores.
(#55) Variable "semesters_expanded" must not contain underscores.
(#55) Variable "semesters_expanded" must not contain underscores.
(#57) Variable "semesters_expanded" must not contain underscores.
(#59) Variable "courses_expanded" must not contain underscores.
(#60) Variable "courses_expanded" must not contain underscores.
(#60) Variable "courses_expanded" must not contain underscores.
(#62) Variable "courses_expanded" must not contain underscores.
(#64) Whitespace found at end of line
(#72) Variable "courses_expanded" must not contain underscores.
(#73) Variable "sortedcourses_expanded" must not contain underscores.
(#76) Whitespace found at end of line
(#76) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#77) Whitespace found at end of line
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Variable "sortedcourses_expanded" must not contain underscores.
(#94) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) No space found before comment text; expected "// whether the courses should be sorted" but found "//whether the courses should be sorted"
(#96) 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
(#98) No space found before comment text; expected "// initial box" but found "//initial box"
(#99) Whitespace found at end of line
(#101) Variable "content_fav" must not contain underscores.
(#104) Inline comments must start with a capital letter, digit or 3-dots sequence
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) No space found before comment text; expected "// needs work" but found "//needs work"
(#106) Inline comments must start with a capital letter, digit or 3-dots sequence
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) No space found before comment text; expected "// all courses are divided by semester into openable divs" but found "//all courses are divided by semester into openable divs"
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) Whitespace found at end of line
(#113) Inline comments must start with a capital letter, digit or 3-dots sequence
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) No space found before comment text; expected "// start a new semester box" but found "//start a new semester box"
(#115) Whitespace found at end of line
(#116) Variable "semesters_expanded" must not contain underscores.
(#117) Whitespace found at end of line
(#123) Whitespace found at end of line
(#130) Variable "content_fav" must not contain underscores.
(#132) Variable "content_fav" must not contain underscores.
(#134) Whitespace found at end of line
(#136) Variable "courses_expanded" must not contain underscores.
(#136) Line exceeds 132 characters; contains 135 characters
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) No space found before comment text; expected "// closes the last semester box" but found "//closes the last semester box"
(#144) Whitespace found at end of line
(#146) Variable "content_fav" must not contain underscores.
(#146) Variable "semesters_expanded" must not contain underscores.
(#146) Variable "courses_expanded" must not contain underscores.
(#148) Whitespace found at end of line
(#150) Whitespace found at end of line
(#150) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#151) Whitespace found at end of line
(#153) Inline comments must start with a capital letter, digit or 3-dots sequence
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) No space found before comment text; expected "// prints remote courses.. standard behavior like in course overview block" but found "//prints remote courses.. standard behavior like in course overview block"
(#154) Variable "remote_courses" must not contain underscores.
(#157) Variable "remote_courses" must not contain underscores.
(#165) Line indented incorrectly; expected at least 16 spaces, found 12
(#170) Whitespace found at end of line
(#171) Variable "content_fav" must not contain underscores.
(#171) Variable "expanded_semesters" must not contain underscores.
(#171) Variable "courses_expanded" must not contain underscores.
(#172) Variable "content_fav" must not contain underscores.
(#172) Variable "content_fav" must not contain underscores.
(#173) Variable "expanded_semesters" must not contain underscores.
(#173) Line exceeds 132 characters; contains 142 characters
(#174) Variable "content_fav" must not contain underscores.
(#175) Variable "content_fav" must not contain underscores.
(#176) Variable "content_fav" must not contain underscores.
(#177) Variable "courses_expanded" must not contain underscores.
(#179) Variable "content_fav" must not contain underscores.
(#180) Variable "courses_expanded" must not contain underscores.
(#185) Whitespace found at end of line
(#186) Variable "expanded_semesters" must not contain underscores.
(#193) Variable "expanded_semesters" must not contain underscores.
(#193) Variable "expanded_semesters" must not contain underscores.
(#200) Whitespace found at end of line
(#206) Whitespace found at end of line
(#213) Whitespace found at end of line
(#215) Inline comments must start with a capital letter, digit or 3-dots sequence
(#215) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) No space found before comment text; expected "// prints course as in standard course overview block" but found "//prints course as in standard course overview block"
(#218) Whitespace found at end of line
(#231) Line exceeds 132 characters; contains 157 characters
(#258) Whitespace found at end of line
(#262) Line exceeds 132 characters; contains 145 characters
(#264) This comment is 58% valid code; is this commented out code?
(#287) Whitespace found at end of line
blocks/semester_sortierung/settings.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#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
(#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
(#42) Expected 1 space before "*"; 0 found
(#42) Expected 1 space after "*"; 0 found
(#44) Expected 1 space before "+"; 0 found
(#44) Expected 1 space after "+"; 0 found
(#44) Expected 1 space before "?"; 0 found
(#44) Expected 1 space after "?"; 0 found
(#44) Expected 1 space before ":"; 0 found
(#44) Expected 1 space after ":"; 0 found
(#44) Expected 1 space before "+"; 0 found
(#44) Expected 1 space after "+"; 0 found
(#51) Whitespace found at end of line
(#53) Line exceeds 132 characters; contains 137 characters
blocks/semester_sortierung/version.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 14 warnings)

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

blocks/semester_sortierung/yui/semester_sortierung/semester_sortierung.js
(#29) Missing semicolon.
(#44) Script URL.
(#54) Expected '===' and instead saw '=='.
(#66) Expected '===' and instead saw '=='.
(#71) Expected '===' and instead saw '=='.
(#104) 'i' is already defined.
(#110) 'a' is already defined.
(#111) 'b' is already defined.
(#125) Expected '===' and instead saw '=='.
(#125) Expected '===' and instead saw '=='.
(#125) Expected '===' and instead saw '=='.
(#142) Expected '===' and instead saw '=='.
(#150) Missing semicolon.
(#27) 'config' is defined but never used.

CSS problems

(4 errors, 9 warnings)

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

blocks/semester_sortierung/styles.css
(#50) Use of !important
(#51) Use of !important
(#60) width can't be used with display: inline.
(#61) Duplicate property '*display' found.
(#61) Duplicate property '*height' found.
(#61) height can't be used with display: inline.
(#74) width can't be used with display: inline.
(#75) margin can't be used with display: inline.
(#76) height can't be used with display: inline.
(#76) Duplicate property '*display' found.
(#76) Duplicate property '*height' found.
(#105) Use of !important
(#109) Use of !important

PHPDocs style problems

(17 errors, 0 warnings)

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

blocks/semester_sortierung/block_semester_sortierung.php
(#31) Class block_semester_sortierung is not documented
(#17) No one-line description found in phpdocs for file
(#188) Phpdocs for function block_semester_sortierung::fill_course_semester has incomplete parameters list
(#247) Phpdocs for function block_semester_sortierung::get_semester_from_date has incomplete parameters list
blocks/semester_sortierung/db/upgrade.php
(#31) Function xmldb_block_semester_sortierung_upgrade is not documented
blocks/semester_sortierung/locallib.php
(#30) Function block_sememster_sortierung_usort is not documented
(#34) Function block_semester_sortierung_toggle_fav is not documented
blocks/semester_sortierung/renderer.php
(#171) Function block_semester_sortierung_renderer::format_favorites is not documented
(#186) Function block_semester_sortierung_renderer::start_semester is not documented
(#207) Function block_semester_sortierung_renderer::end_semester is not documented
(#214) Function block_semester_sortierung_renderer::course_html is not documented
(#259) Function block_semester_sortierung_renderer::get_favorites_icon is not documented
(#40) Phpdocs for function block_semester_sortierung_renderer::semester_sortierung has incomplete parameters list
(#279) Phpdocs for function block_semester_sortierung_renderer::get_expand_image_button_html has incomplete parameters list
(#288) Phpdocs for function block_semester_sortierung_renderer::get_semester_code has incomplete parameters list
(#31) Class block_semester_sortierung_renderer does not have @copyright tag
(#31) Class block_semester_sortierung_renderer does not have @license tag

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


Mustache template problems

(0 errors, 0 warnings)

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