Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(223 errors, 425 warnings)

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

blocks/coursefeedback/admin.php
(#20) Incorrect @package tag for file admin.php. Expected block_coursefeedback, found block.
(#54) This comment is 53% valid code; is this commented out code?
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Expected 1 space before comment text but found 24; use block comment if you need indentation
(#59) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#300) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) No space found before comment text; expected "// PROCESS link was clicked check for editerrors" but found "//PROCESS link was clicked check for editerrors"
(#308) Short array syntax must be used to define arrays
(#311) There should be a comma after the last array item in a multi-line array.
(#314) Logical operator "and" is prohibited; use "&&" instead
(#321) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#328) Short array syntax must be used to define arrays
(#342) Inline comments must end in full-stops, exclamation marks, or question marks
(#345) Inline comments must start with a capital letter, digit or 3-dots sequence
(#353) Short array syntax must be used to define arrays
(#359) Short array syntax must be used to define arrays
(#368) Short array syntax must be used to define arrays
(#369) Short array syntax must be used to define arrays
(#370) Short array syntax must be used to define arrays
(#372) Short array syntax must be used to define arrays
(#389) Short array syntax must be used to define arrays
(#405) Short array syntax must be used to define arrays
(#410) Short array syntax must be used to define arrays
(#428) There should be a comma after the last array item in a multi-line array.
(#430) Short array syntax must be used to define arrays
(#431) Short array syntax must be used to define arrays
(#432) Short array syntax must be used to define arrays
(#445) There should be a comma after the last array item in a multi-line array.
(#447) Inline comments must end in full-stops, exclamation marks, or question marks
(#450) Inline comments must end in full-stops, exclamation marks, or question marks
(#463) Short array syntax must be used to define arrays
(#464) Commas (,) must be followed by white space.
(#465) Short array syntax must be used to define arrays
(#466) Commas (,) must be followed by white space.
(#467) Short array syntax must be used to define arrays
(#469) Short array syntax must be used to define arrays
(#470) Short array syntax must be used to define arrays
(#472) Short array syntax must be used to define arrays
(#475) Commas (,) must be followed by white space.
(#476) Short array syntax must be used to define arrays
(#478) Short array syntax must be used to define arrays
(#487) Short array syntax must be used to define arrays
(#492) Short array syntax must be used to define arrays
(#502) Short array syntax must be used to define arrays
(#511) Short array syntax must be used to define arrays
(#514) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#527) Short array syntax must be used to define arrays
(#535) Short array syntax must be used to define arrays
(#539) Short array syntax must be used to define arrays
(#544) Logical operator "or" is prohibited; use "||" instead
blocks/coursefeedback/block_coursefeedback.php
(#20) Incorrect @package tag for file block_coursefeedback.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#31) Missing docblock for class block_coursefeedback
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) There should be a comma after the last array item in a multi-line array.
(#71) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#130) Short array syntax must be used to define arrays
blocks/coursefeedback/classes/event/coursefeedback_viewed.php
(#19) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#24) Incorrect @package tag for class coursefeedback_viewed. Expected block_coursefeedback, found block.
(#46) Short array syntax must be used to define arrays
(#78) No one-line description found in phpdocs for docblock of function get_legacy_eventdata
(#79) Short array syntax must be used to define arrays
blocks/coursefeedback/classes/external_api.php
(#81) Short array syntax must be used to define arrays
(#86) There should be a comma after the last array item in a multi-line array.
(#100) Incorrect docblock tag "@returns". Should be "@return".
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Short array syntax must be used to define arrays
(#113) There should be a comma after the last array item in a multi-line array.
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Usage of ELSEIF not allowed; use ELSE IF instead
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) There should be a comma after the last array item in a multi-line array.
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Whitespace found at end of line within string
(#165) There should be a comma after the last array item in a multi-line array.
(#199) Usage of ELSEIF not allowed; use ELSE IF instead
(#264) Expected 1 space after "=>"; 0 found
(#268) There should be a comma after the last array item in a multi-line array.
(#284) Short array syntax must be used to define arrays
(#296) Incorrect docblock tag "@returns". Should be "@return".
(#298) No space found before comment text; expected "// TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen" but found "//TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen"
(#299) Inline comments must end in full-stops, exclamation marks, or question marks
(#299) No space found before comment text; expected "// TODO noch die frage übergeben und nur die fragen der jeweiligen sprache holen" but found "//TODO noch die frage übergeben und nur die fragen der jeweiligen sprache holen"
(#300) Missing docblock for function get_feedback_questions
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#304) Short array syntax must be used to define arrays
(#307) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) Short array syntax must be used to define arrays
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#331) Missing docblock for function get_feedback_questions_returns
(#342) There should be a comma after the last array item in a multi-line array.
(#352) Inline comments must end in full-stops, exclamation marks, or question marks
(#352) No space found before comment text; expected "// TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen" but found "//TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen"
(#353) Missing docblock for function get_ranking_for_question_parameters
(#379) Short array syntax must be used to define arrays
(#384) There should be a comma after the last array item in a multi-line array.
(#395) Incorrect docblock tag "@returns". Should be "@return".
(#397) Inline comments must end in full-stops, exclamation marks, or question marks
(#397) No space found before comment text; expected "// TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen" but found "//TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen"
(#398) Missing docblock for function get_ranking_for_question
(#401) Inline comments must end in full-stops, exclamation marks, or question marks
(#403) Short array syntax must be used to define arrays
(#408) There should be a comma after the last array item in a multi-line array.
(#412) Inline comments must end in full-stops, exclamation marks, or question marks
(#417) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) No space found before comment text; expected "// TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen" but found "//TODO das Anzeigen der Rankings in der Weboberfläche ist nicht fertig implementiert -> CSV Download nutzen"
(#430) Missing docblock for function get_ranking_for_question_returns
(#450) There should be a comma after the last array item in a multi-line array.
blocks/coursefeedback/classes/form/f_ranking_form.php
(#20) Incorrect @package tag for file f_ranking_form.php. Expected block_coursefeedback, found block.
(#45) Missing docblock for function definition
(#57) Missing docblock for function get_possible_feedbacks
(#60) Short array syntax must be used to define arrays
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/coursefeedback/db/access.php
(#20) Incorrect @package tag for file access.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
(#42) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#62) There should be a comma after the last array item in a multi-line array.
(#63) There should be a comma after the last array item in a multi-line array.
(#66) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#75) There should be a comma after the last array item in a multi-line array.
(#78) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#84) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#95) There should be a comma after the last array item in a multi-line array.
(#96) There should be a comma after the last array item in a multi-line array.
blocks/coursefeedback/db/services.php
(#20) Incorrect @package tag for file services.php. Expected block_coursefeedback, found block.
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#34) Line exceeds 132 characters; contains 135 characters
(#39) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
blocks/coursefeedback/db/uninstall.php
(#20) Incorrect @package tag for file uninstall.php. Expected block_coursefeedback, found block.
(#28) Missing docblock for function xmldb_block_coursefeedback_uninstall
blocks/coursefeedback/db/upgrade.php
(#20) Incorrect @package tag for file upgrade.php. Expected block_coursefeedback, found block.
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) No space found before comment text; expected "// TODO remove "unsigned" usage from all fields https://tracker.moodle.org/browse/MDL-27982 ???" but found "//TODO remove "unsigned" usage from all fields https://tracker.moodle.org/browse/MDL-27982 ???"
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Inline comments must start with a capital letter, digit or 3-dots sequence
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#130) Inline comments must start with a capital letter, digit or 3-dots sequence
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#240) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#245) Line exceeds 132 characters; contains 141 characters
blocks/coursefeedback/essayanswers.php
(#20) Incorrect @package tag for file essayanswers.php. Expected block_coursefeedback, found block.
(#35) Commas (,) must be followed by white space.
(#38) 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
(#41) Short array syntax must be used to define arrays
(#42) Commas (,) must be followed by white space.
(#48) Short array syntax must be used to define arrays
(#59) Commas (,) must be followed by white space.
(#67) Short array syntax must be used to define arrays
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#85) There should be a comma after the last array item in a multi-line array.
(#106) File must end with a newline character
blocks/coursefeedback/exportlib.php
(#20) Incorrect @package tag for file exportlib.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Missing member variable doc comment
(#45) Missing docblock for function __construct
(#49) Missing docblock for function create_file
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Missing member variable doc comment
(#97) Missing docblock for function __construct
(#101) Missing docblock for function create_file
(#107) Short array syntax must be used to define arrays
(#108) Commas (,) must be followed by white space.
(#117) There should be a comma after the last array item in a multi-line array.
(#137) There should be a comma after the last array item in a multi-line array.
(#145) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#146) Expected 1 space after "="; 2 found
(#147) There should be a comma after the last array item in a multi-line array.
(#154) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Missing member variable doc comment
(#171) Missing docblock for function __construct
(#175) Missing docblock for function create_file
(#184) There should be a comma after the last array item in a multi-line array.
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#203) There should be a comma after the last array item in a multi-line array.
(#220) There should be a comma after the last array item in a multi-line array.
blocks/coursefeedback/feedbackinfo.php
(#2) Moodle boilerplate not found at first line
(#21) Incorrect @package tag for file feedbackinfo.php. Expected block_coursefeedback, found block.
(#38) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#47) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
blocks/coursefeedback/forms/coursefeedback_admin_forms.php
(#20) Incorrect @package tag for file coursefeedback_admin_forms.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#39) Missing docblock for function definition
(#54) Short array syntax must be used to define arrays
(#68) Missing docblock for function set_data
(#68) Visibility must be declared on method "set_data"
(#77) Short array syntax must be used to define arrays
(#89) Missing docblock for function definition
(#102) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#121) Missing docblock for function set_data
(#121) Visibility must be declared on method "set_data"
(#126) Short array syntax must be used to define arrays
(#138) Missing docblock for function definition
(#142) Short array syntax must be used to define arrays
(#147) Short array syntax must be used to define arrays
(#160) Missing docblock for class coursefeedback_delete_answers_form
(#161) Missing docblock for function definition
(#169) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#198) Missing docblock for function definition
(#220) Short array syntax must be used to define arrays
(#243) Missing docblock for function definition
(#251) Short array syntax must be used to define arrays
(#255) Short array syntax must be used to define arrays
(#275) Missing docblock for function definition
(#279) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#307) Missing docblock for function definition
(#311) Short array syntax must be used to define arrays
(#318) Short array syntax must be used to define arrays
(#338) Missing docblock for function definition
(#355) Short array syntax must be used to define arrays
(#365) Inline comments must end in full-stops, exclamation marks, or question marks
(#371) Short array syntax must be used to define arrays
(#395) Missing docblock for function definition
(#399) Short array syntax must be used to define arrays
(#448) Missing docblock for function definition
(#454) Short array syntax must be used to define arrays
(#461) Short array syntax must be used to define arrays
blocks/coursefeedback/forms/coursefeedbackform.php
(#20) Incorrect @package tag for file coursefeedbackform.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Invalid docblock tag "@date".
(#40) Missing member variable doc comment
(#41) Missing member variable doc comment
(#42) Missing member variable doc comment
(#43) Missing member variable doc comment
(#45) Missing docblock for function __construct
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Possible useless method overriding detected
(#54) Missing docblock for function set_data
(#54) Visibility must be declared on method "set_data"
blocks/coursefeedback/lang/de/block_coursefeedback.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file block_coursefeedback.php
(#1) Moodle boilerplate not found
(#1) Perl-style comments are not allowed; use "// Comment." instead
(#5) The string key "caution" is not in the correct order, it should be before "pluginname"
(#7) The string key "categorypath" is not in the correct order, it should be before "untitled"
(#9) Unexpected comment found. Auto-fixing will not work after this comment
(#10) The string key "adminpage_html_headinggeneral" is not in the correct order, it should be before "categorypath"
(#12) The string key "adminpage_html_fbactiveforcoursesa" is not in the correct order, it should be before "adminpage_link_feedbackedit"
(#14) The string key "adminpage_html_defaultlanguagea" is not in the correct order, it should be before "adminpage_html_fbactiveforcoursesb"
(#16) The string key "adminpage_html_allowhidinga" is not in the correct order, it should be before "adminpage_html_defaultlanguageb"
(#19) The string key "adminpage_html_globalenablea" is not in the correct order, it should be before "adminpage_html_notinstalled"
(#25) The string key "adminpage_html_enable_infobannera" is not in the correct order, it should be before "adminpage_html_infobannerb"
(#28) Unexpected comment found. Auto-fixing will not work after this comment
(#30) The string key "infopage_headline_feedbackinfo" is not in the correct order, it should be before "infopage_html_coursestartcountd"
(#33) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "resultspage_howto" is not in the correct order, it should be before "resultspage_title"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#40) The string key "notif_question" is not in the correct order, it should be before "resultspage_nav_extension"
(#41) The string key "notif_pleaseclick" is not in the correct order, it should be before "notif_question"
(#44) The string key "notif_emoji_super" is not in the correct order, it should be before "notif_submit"
(#45) The string key "notif_emoji_good" is not in the correct order, it should be before "notif_emoji_super"
(#47) The string key "notif_emoji_neutral" is not in the correct order, it should be before "notif_emoji_ok"
(#48) The string key "notif_emoji_bad" is not in the correct order, it should be before "notif_emoji_neutral"
(#51) The string key "notif_deactivate_howto" is not in the correct order, it should be before "notif_thankyou"
(#54) Unexpected comment found. Auto-fixing will not work after this comment
(#59) The string key "page_link_settings" is not in the correct order, it should be before "page_link_viewresults"
(#60) The string key "page_link_rankings" is not in the correct order, it should be before "page_link_settings"
(#61) The string key "page_link_newtemplate" is not in the correct order, it should be before "page_link_rankings"
(#62) The string key "page_link_backtoconfig" is not in the correct order, it should be before "page_link_newtemplate"
(#64) The string key "page_link_noquestion" is not in the correct order, it should be before "page_link_showlistofquestions"
(#65) The string key "page_link_newquestion" is not in the correct order, it should be before "page_link_noquestion"
(#66) The string key "page_link_deletelanguage" is not in the correct order, it should be before "page_link_newquestion"
(#67) The string key "page_link_backtofeedbackview" is not in the correct order, it should be before "page_link_deletelanguage"
(#69) The string key "page_link_download" is not in the correct order, it should be before "page_link_newlanguage"
(#71) The string key "page_html_editallquestions" is not in the correct order, it should be before "page_link_use"
(#73) The string key "page_html_viewintro" is not in the correct order, it should be before "page_html_viewnavbar"
(#74) The string key "page_html_saveerr" is not in the correct order, it should be before "page_html_viewintro"
(#75) The string key "page_html_activated" is not in the correct order, it should be before "page_html_saveerr"
(#79) The string key "page_html_noquestions" is not in the correct order, it should be before "page_html_wasactive"
(#80) The string key "page_html_intronotifications" is not in the correct order, it should be before "page_html_noquestions"
(#82) The string key "page_html_norelations" is not in the correct order, it should be before "page_html_servedefaultlang"
(#83) The string key "page_html_courserating" is not in the correct order, it should be before "page_html_norelations"
(#86) Unexpected comment found. Auto-fixing will not work after this comment
(#90) The string key "table_html_average" is not in the correct order, it should be before "table_html_votes"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) The string key "table_html_showanswers" is not in the correct order, it should be before "table_html_undefinedlang"
(#96) Unexpected comment found. Auto-fixing will not work after this comment
(#97) The string key "form_notif_heading" is not in the correct order, it should be before "table_html_showanswers"
(#98) The string key "form_copyof" is not in the correct order, it should be before "form_notif_heading"
(#102) The string key "form_header_editfeedback" is not in the correct order, it should be before "form_header_newfeedback"
(#103) The string key "form_header_confirm" is not in the correct order, it should be before "form_header_editfeedback"
(#105) The string key "form_header_addlang" is not in the correct order, it should be before "form_header_newquestion"
(#108) The string key "form_header_deleteanswers" is not in the correct order, it should be before "form_header_editquestion"
(#113) The string key "form_select_changepos" is not in the correct order, it should be before "form_select_unwantedlang"
(#115) The string key "form_area_questiontext" is not in the correct order, it should be before "form_select_deleteanswers"
(#117) The string key "form_html_deleteanswerstext" is not in the correct order, it should be before "form_html_deleteanswerswarning"
(#118) The string key "form_html_currentlang" is not in the correct order, it should be before "form_html_deleteanswerstext"
(#122) Unexpected comment found. Auto-fixing will not work after this comment
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) The string key "form_header_ranking" is not in the correct order, it should be before "form_html_notextendable"
(#125) The string key "form_button_downloadfb" is not in the correct order, it should be before "form_select_feedback"
(#128) The string key "form_button_downloadqu" is not in the correct order, it should be before "form_select_question"
(#130) Unexpected comment found. Auto-fixing will not work after this comment
(#131) The string key "download_html_filename" is not in the correct order, it should be before "form_button_downloadqu"
(#134) Unexpected comment found. Auto-fixing will not work after this comment
(#135) The string key "coursefeedback:managefeedbacks" is not in the correct order, it should be before "download_thead_questions"
(#137) The string key "coursefeedback:download" is not in the correct order, it should be before "coursefeedback:viewanswers"
(#140) The string key "coursefeedback:addinstance" is not in the correct order, it should be before "coursefeedback:myaddinstance"
(#143) The string key "perm_html_duplicatelink" is not in the correct order, it should be before "perm_html_erroractive"
(#144) The string key "perm_html_answersexists" is not in the correct order, it should be before "perm_html_duplicatelink"
(#148) Unexpected comment found. Auto-fixing will not work after this comment
(#149) The string key "eventviewed" is not in the correct order, it should be before "perm_html_wasactive"
(#151) Unexpected comment found. Auto-fixing will not work after this comment
(#154) The string key "except_answer_exist" is not in the correct order, it should be before "except_no_question"
(#156) The string key "except_block_duplicate" is not in the correct order, it should be before "except_not_active"
(#161) Unexpected comment found. Auto-fixing will not work after this comment
(#164) The string key "questiontype_essay" is not in the correct order, it should be before "questiontype_schoolgrades"
(#165) The string key "qtype_empty_essayans" is not in the correct order, it should be before "questiontype_essay"
blocks/coursefeedback/lang/en/block_coursefeedback.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file block_coursefeedback.php
(#1) Moodle boilerplate not found
(#1) Perl-style comments are not allowed; use "// Comment." instead
(#5) The string key "caution" is not in the correct order, it should be before "pluginname"
(#7) The string key "categorypath" is not in the correct order, it should be before "untitled"
(#9) Unexpected comment found. Auto-fixing will not work after this comment
(#10) The string key "adminpage_html_headinggeneral" is not in the correct order, it should be before "categorypath"
(#12) The string key "adminpage_html_fbactiveforcoursesa" is not in the correct order, it should be before "adminpage_link_feedbackedit"
(#14) The string key "adminpage_html_defaultlanguagea" is not in the correct order, it should be before "adminpage_html_fbactiveforcoursesb"
(#16) The string key "adminpage_html_allowhidinga" is not in the correct order, it should be before "adminpage_html_defaultlanguageb"
(#19) The string key "adminpage_html_globalenablea" is not in the correct order, it should be before "adminpage_html_notinstalled"
(#25) The string key "adminpage_html_enable_infobannera" is not in the correct order, it should be before "adminpage_html_infobannerb"
(#28) Unexpected comment found. Auto-fixing will not work after this comment
(#30) The string key "infopage_headline_feedbackinfo" is not in the correct order, it should be before "infopage_html_coursestartcountd"
(#33) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "resultspage_howto" is not in the correct order, it should be before "resultspage_title"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#40) The string key "notif_question" is not in the correct order, it should be before "resultspage_nav_extension"
(#41) The string key "notif_pleaseclick" is not in the correct order, it should be before "notif_question"
(#44) The string key "notif_emoji_super" is not in the correct order, it should be before "notif_submit"
(#45) The string key "notif_emoji_good" is not in the correct order, it should be before "notif_emoji_super"
(#47) The string key "notif_emoji_neutral" is not in the correct order, it should be before "notif_emoji_ok"
(#48) The string key "notif_emoji_bad" is not in the correct order, it should be before "notif_emoji_neutral"
(#51) The string key "notif_deactivate_howto" is not in the correct order, it should be before "notif_thankyou"
(#54) Unexpected comment found. Auto-fixing will not work after this comment
(#59) The string key "page_link_settings" is not in the correct order, it should be before "page_link_viewresults"
(#60) The string key "page_link_rankings" is not in the correct order, it should be before "page_link_settings"
(#61) The string key "page_link_newtemplate" is not in the correct order, it should be before "page_link_rankings"
(#62) The string key "page_link_backtoconfig" is not in the correct order, it should be before "page_link_newtemplate"
(#64) The string key "page_link_noquestion" is not in the correct order, it should be before "page_link_showlistofquestions"
(#65) The string key "page_link_newquestion" is not in the correct order, it should be before "page_link_noquestion"
(#66) The string key "page_link_deletelanguage" is not in the correct order, it should be before "page_link_newquestion"
(#67) The string key "page_link_backtofeedbackview" is not in the correct order, it should be before "page_link_deletelanguage"
(#69) The string key "page_link_download" is not in the correct order, it should be before "page_link_newlanguage"
(#71) The string key "page_html_editallquestions" is not in the correct order, it should be before "page_link_use"
(#73) The string key "page_html_viewintro" is not in the correct order, it should be before "page_html_viewnavbar"
(#74) The string key "page_html_saveerr" is not in the correct order, it should be before "page_html_viewintro"
(#75) The string key "page_html_activated" is not in the correct order, it should be before "page_html_saveerr"
(#79) The string key "page_html_noquestions" is not in the correct order, it should be before "page_html_wasactive"
(#80) The string key "page_html_intronotifications" is not in the correct order, it should be before "page_html_noquestions"
(#82) The string key "page_html_norelations" is not in the correct order, it should be before "page_html_servedefaultlang"
(#83) The string key "page_html_courserating" is not in the correct order, it should be before "page_html_norelations"
(#86) Unexpected comment found. Auto-fixing will not work after this comment
(#90) The string key "table_html_average" is not in the correct order, it should be before "table_html_votes"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "table_html_showanswers" is not in the correct order, it should be before "table_html_undefinedlang"
(#96) Unexpected comment found. Auto-fixing will not work after this comment
(#97) The string key "form_notif_heading" is not in the correct order, it should be before "table_html_showanswers"
(#98) The string key "form_copyof" is not in the correct order, it should be before "form_notif_heading"
(#102) The string key "form_header_editfeedback" is not in the correct order, it should be before "form_header_newfeedback"
(#103) The string key "form_header_confirm" is not in the correct order, it should be before "form_header_editfeedback"
(#104) The string key "form_header_addlang" is not in the correct order, it should be before "form_header_confirm"
(#106) The string key "form_header_deletelang" is not in the correct order, it should be before "form_header_newquestion"
(#108) The string key "form_header_deleteanswers" is not in the correct order, it should be before "form_header_editquestion"
(#113) The string key "form_select_changepos" is not in the correct order, it should be before "form_select_unwantedlang"
(#115) The string key "form_area_questiontext" is not in the correct order, it should be before "form_select_deleteanswers"
(#117) The string key "form_html_deleteanswerstext" is not in the correct order, it should be before "form_html_deleteanswerswarning"
(#118) The string key "form_html_currentlang" is not in the correct order, it should be before "form_html_deleteanswerstext"
(#122) Unexpected comment found. Auto-fixing will not work after this comment
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) The string key "form_header_ranking" is not in the correct order, it should be before "form_html_notextendable"
(#125) The string key "form_button_downloadfb" is not in the correct order, it should be before "form_select_feedback"
(#128) The string key "form_button_downloadqu" is not in the correct order, it should be before "form_select_question"
(#130) Unexpected comment found. Auto-fixing will not work after this comment
(#131) The string key "download_html_filename" is not in the correct order, it should be before "form_button_downloadqu"
(#134) Unexpected comment found. Auto-fixing will not work after this comment
(#135) The string key "coursefeedback:managefeedbacks" is not in the correct order, it should be before "download_thead_questions"
(#137) The string key "coursefeedback:download" is not in the correct order, it should be before "coursefeedback:viewanswers"
(#140) The string key "coursefeedback:addinstance" is not in the correct order, it should be before "coursefeedback:myaddinstance"
(#143) The string key "perm_html_duplicatelink" is not in the correct order, it should be before "perm_html_erroractive"
(#144) The string key "perm_html_answersexists" is not in the correct order, it should be before "perm_html_duplicatelink"
(#148) Unexpected comment found. Auto-fixing will not work after this comment
(#149) The string key "eventviewed" is not in the correct order, it should be before "perm_html_wasactive"
(#151) Unexpected comment found. Auto-fixing will not work after this comment
(#154) The string key "except_answer_exist" is not in the correct order, it should be before "except_no_question"
(#156) The string key "except_block_duplicate" is not in the correct order, it should be before "except_not_active"
(#161) Unexpected comment found. Auto-fixing will not work after this comment
(#164) The string key "questiontype_essay" is not in the correct order, it should be before "questiontype_schoolgrades"
(#165) The string key "qtype_empty_essayans" is not in the correct order, it should be before "questiontype_essay"
blocks/coursefeedback/lib.php
(#20) Incorrect @package tag for file lib.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#46) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#58) Whitespace found at end of line within string
(#60) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#172) No one-line description found in phpdocs for docblock of function block_coursefeedback_delete_feedback
(#174) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
(#176) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#195) No one-line description found in phpdocs for docblock of function block_coursefeedback_insert_question
(#204) Short array syntax must be used to define arrays
(#228) No one-line description found in phpdocs for docblock of function block_coursefeedback_swap_questions
(#236) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#237) Line exceeds 132 characters; contains 135 characters
(#238) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#243) Whitespace found at end of line within string
(#245) Short array syntax must be used to define arrays
(#249) There should be a comma after the last array item in a multi-line array.
(#252) Short array syntax must be used to define arrays
(#255) Whitespace found at end of line within string
(#257) Short array syntax must be used to define arrays
(#262) There should be a comma after the last array item in a multi-line array.
(#265) Short array syntax must be used to define arrays
(#268) Whitespace found at end of line within string
(#270) Short array syntax must be used to define arrays
(#275) There should be a comma after the last array item in a multi-line array.
(#304) Short array syntax must be used to define arrays
(#330) Short array syntax must be used to define arrays
(#333) Short array syntax must be used to define arrays
(#353) No one-line description found in phpdocs for docblock of function block_coursefeedback_delete_questions
(#359) Short array syntax must be used to define arrays
(#362) Short array syntax must be used to define arrays
(#383) No one-line description found in phpdocs for docblock of function block_coursefeedback_delete_answers
(#385) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#394) Inline comments must end in full-stops, exclamation marks, or question marks
(#420) Short array syntax must be used to define arrays
(#426) Short array syntax must be used to define arrays
(#434) Short array syntax must be used to define arrays
(#444) No one-line description found in phpdocs for docblock of function block_coursefeedback_get_implemented_languages
(#449) Whitespace found at end of line within string
(#450) Whitespace found at end of line within string
(#457) Short array syntax must be used to define arrays
(#459) Short array syntax must be used to define arrays
(#467) This comment is 56% valid code; is this commented out code?
(#473) This comment is 60% valid code; is this commented out code?
(#474) Short array syntax must be used to define arrays
(#492) Short array syntax must be used to define arrays
(#500) No one-line description found in phpdocs for docblock of function block_coursefeedback_get_feedbackname
(#504) Short array syntax must be used to define arrays
(#527) Short array syntax must be used to define arrays
(#533) Inline comments must end in full-stops, exclamation marks, or question marks
(#536) Short array syntax must be used to define arrays
(#537) Inline comments must end in full-stops, exclamation marks, or question marks
(#545) Whitespace found at end of line within string
(#546) Whitespace found at end of line within string
(#550) Inline comments must end in full-stops, exclamation marks, or question marks
(#554) Inline comments must end in full-stops, exclamation marks, or question marks
(#557) Inline comments must end in full-stops, exclamation marks, or question marks
(#566) Inline comments must end in full-stops, exclamation marks, or question marks
(#632) Commas (,) must be followed by white space.
(#643) No one-line description found in phpdocs for docblock of function block_coursefeedback_get_question_ids
(#653) Short array syntax must be used to define arrays
(#661) No one-line description found in phpdocs for docblock of function block_coursefeedback_get_editerrors
(#665) Short array syntax must be used to define arrays
(#672) Inline comments must end in full-stops, exclamation marks, or question marks
(#688) Short array syntax must be used to define arrays
(#692) Inline comments must end in full-stops, exclamation marks, or question marks
(#693) Short array syntax must be used to define arrays
(#713) Short array syntax must be used to define arrays
(#721) Short array syntax must be used to define arrays
(#747) Short array syntax must be used to define arrays
(#748) Short array syntax must be used to define arrays
(#753) Short array syntax must be used to define arrays
(#757) Short array syntax must be used to define arrays
(#766) No one-line description found in phpdocs for docblock of function block_coursefeedback_create_activate_button
(#768) Short array syntax must be used to define arrays
(#787) This comment is 63% valid code; is this commented out code?
(#862) No one-line description found in phpdocs for docblock of function block_coursefeedback_debug
(#866) The use of function print_r() is forbidden
(#878) No one-line description found in phpdocs for docblock of function block_coursefeedback_check_bools
(#878) Short array syntax must be used to define arrays
(#880) Short array syntax must be used to define arrays
(#892) No one-line description found in phpdocs for docblock of function block_coursefeedback_get_language
(#937) Short array syntax must be used to define arrays
(#944) Usage of ELSEIF not allowed; use ELSE IF instead
(#956) Missing docblock for function format
(#966) No one-line description found in phpdocs for docblock of function block_coursefeedback_adminurl
(#966) Short array syntax must be used to define arrays
(#968) Short array syntax must be used to define arrays
(#987) Inline comments must end in full-stops, exclamation marks, or question marks
(#994) There should be a comma after the last array item in a multi-line array.
(#997) Inline comments must end in full-stops, exclamation marks, or question marks
(#998) Short array syntax must be used to define arrays
(#1000) There should be a comma after the last array item in a multi-line array.
(#1004) Inline comments must end in full-stops, exclamation marks, or question marks
(#1018) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1018) Inline comments must end in full-stops, exclamation marks, or question marks
(#1042) Short array syntax must be used to define arrays
(#1058) Perl-style comments are not allowed; use "// Comment." instead
(#1060) Expected 1 space after "="; 2 found
(#1061) Inline comments must end in full-stops, exclamation marks, or question marks
(#1065) Short array syntax must be used to define arrays
(#1072) File must end with a newline character
blocks/coursefeedback/locallib.php
(#20) Incorrect @package tag for file locallib.php. Expected block_coursefeedback, found block.
(#42) There should be a comma after the last array item in a multi-line array.
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Usage of ELSEIF not allowed; use ELSE IF instead
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Short array syntax must be used to define arrays
(#123) There should be a comma after the last array item in a multi-line array.
(#126) Whitespace found at end of line within string
(#127) Whitespace found at end of line within string
(#131) Whitespace found at end of line within string
(#133) Whitespace found at end of line within string
(#137) Whitespace found at end of line within string
(#138) Whitespace found at end of line within string
(#139) Whitespace found at end of line within string
(#141) Whitespace found at end of line within string
(#143) Whitespace found at end of line within string
(#146) Whitespace found at end of line within string
(#151) Whitespace found at end of line within string
(#161) Whitespace found at end of line within string
(#167) Expected 1 space after "-"; 0 found
(#176) File must end with a newline character
blocks/coursefeedback/ranking.php
(#20) Incorrect @package tag for file ranking.php. Expected block_coursefeedback, found block.
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) This comment is 84% valid code; is this commented out code?
(#91) No space found before comment text; expected "// $OUTPUT->paging_bar();" but found "//$OUTPUT->paging_bar();"
blocks/coursefeedback/renderer.php
(#20) Incorrect @package tag for class block_coursefeedback_renderer. Expected block_coursefeedback, found block.
(#32) No one-line description found in phpdocs for docblock of function render_manage_link
(#42) No one-line description found in phpdocs for docblock of function render_results_link
(#44) Short array syntax must be used to define arrays
(#52) No one-line description found in phpdocs for docblock of function render_result_links
(#64) No one-line description found in phpdocs for docblock of function render_ranking_link
(#72) No one-line description found in phpdocs for docblock of function render_moreinfo_link
(#82) No one-line description found in phpdocs for docblock of function render_notif_message
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) There should be a comma after the last array item in a multi-line array.
(#95) There should be a comma after the last array item in a multi-line array.
(#108) No one-line description found in phpdocs for docblock of function render_notif_message_teacher
(#113) Short array syntax must be used to define arrays
(#132) There should be a comma after the last array item in a multi-line array.
(#142) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) There should be a comma after the last array item in a multi-line array.
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Commas (,) must be followed by white space.
(#191) There should be a comma after the last array item in a multi-line array.
(#202) There should be a comma after the last array item in a multi-line array.
(#210) Whitespace found at end of line within string
(#211) Whitespace found at end of line within string
(#212) Whitespace found at end of line within string
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/coursefeedback/results.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file results.php
(#41) Expected 1 space after "="; 2 found
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#53) Short array syntax must be used to define arrays
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
blocks/coursefeedback/settings.php
(#20) Incorrect @package tag for file settings.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#83) Short array syntax must be used to define arrays
blocks/coursefeedback/version.php
(#20) Incorrect @package tag for file version.php. Expected block_coursefeedback, found block.
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/coursefeedback/view.php
(#20) Incorrect @package tag for file view.php. Expected block_coursefeedback, found block.
(#37) Short array syntax must be used to define arrays
(#38) Commas (,) must be followed by white space.
(#44) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#154) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#172) Inline comments must end in full-stops, exclamation marks, or question marks
(#191) Commas (,) must be followed by white space.
(#196) Short array syntax must be used to define arrays
(#202) Commas (,) must be followed by white space.
(#207) File must end with a newline character

Javascript coding style problems

(0 errors, 15 warnings)

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

blocks/coursefeedback/amd/src/dynform.js
(#30) Comments should not begin with a lowercase character. (capitalized-comments)
(#52) Unexpected space before function parentheses. (space-before-function-paren)
(#67) Unexpected space before function parentheses. (space-before-function-paren)
(#72) Unexpected space before function parentheses. (space-before-function-paren)
(#74) Unexpected space before function parentheses. (space-before-function-paren)
(#86) Unexpected space before function parentheses. (space-before-function-paren)
(#120) Unexpected space before function parentheses. (space-before-function-paren)
(#139) Unexpected space before function parentheses. (space-before-function-paren)
blocks/coursefeedback/amd/src/notif.js
(#124) Unexpected space before function parentheses. (space-before-function-paren)
(#126) Expected catch,fail,always() or return (promise/catch-or-return)
(#127) Each then() should return a value or throw (promise/always-return)
(#130) Unexpected space before function parentheses. (space-before-function-paren)
(#209) Array.prototype.map() expects a return value from arrow function. (array-callback-return)
(#247) Expected catch,fail,always() or return (promise/catch-or-return)
(#247) Each then() should return a value or throw (promise/always-return)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(16 errors, 0 warnings)

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

blocks/coursefeedback/lib.php
(#36) Phpdocs for function block_coursefeedback_order_questions has incomplete parameters list
(#83) Phpdocs for function block_coursefeedback_insert_feedback has incomplete parameters list
(#110) Phpdocs for function block_coursefeedback_edit_feedback has incomplete parameters list
(#139) Phpdocs for function block_coursefeedback_copy_feedback has incomplete parameters list
(#349) Phpdocs for function block_coursefeedback_delete_questions has incomplete parameters list
(#438) Phpdocs for function block_coursefeedback_get_implemented_languages has incomplete parameters list
(#517) Phpdocs for function block_coursefeedback_get_qanswercounts has incomplete parameters list
(#579) Phpdocs for function block_coursefeedback_get_questions_by_language has incomplete parameters list
(#657) Phpdocs for function block_coursefeedback_get_editerrors has incomplete parameters list
(#859) Phpdocs for function block_coursefeedback_debug has incomplete parameters list
(#961) Phpdocs for function block_coursefeedback_adminurl has incomplete parameters list
(#1050) Phpdocs for function block_coursefeedback_extend_navigation_course has incomplete parameters list
blocks/coursefeedback/locallib.php
(#93) Phpdocs for function block_coursefeedback_get_courserankings has incomplete parameters list
blocks/coursefeedback/renderer.php
(#49) Phpdocs for function block_coursefeedback_renderer::render_result_links has incomplete parameters list
(#69) Phpdocs for function block_coursefeedback_renderer::render_moreinfo_link has incomplete parameters list
(#171) Phpdocs for function block_coursefeedback_renderer::render_essay_answers has incomplete parameters list

Update savepoints problems

(1 errors, 1 warnings)

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

blocks/coursefeedback/db/upgrade.php
Detected fewer 'if' blocks (9) than 'savepoint' calls (10). Repeated savepoints?
version 2023122200 has wrong savepoint call with version 2023122000

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, 1 warnings)

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

blocks/coursefeedback/templates/questionnotif.mustache
(#1) HTML Validation error, line 70: Stray end tag “span”. ( </span> )

Gherkin .feature problems

(0 errors, 0 warnings)

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