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

(147 errors, 290 warnings)

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

blocks/coursefeedback/admin.php
(#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
(#298) Inline comments must end in full-stops, exclamation marks, or question marks
(#298) No space found before comment text; expected "// PROCESS link was clicked check for editerrors" but found "//PROCESS link was clicked check for editerrors"
(#306) Short array syntax must be used to define arrays
(#309) There should be a comma after the last array item in a multi-line array.
(#312) Logical operator "and" is prohibited; use "&&" instead
(#319) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#340) Inline comments must end in full-stops, exclamation marks, or question marks
(#343) Inline comments must start with a capital letter, digit or 3-dots sequence
(#351) Short array syntax must be used to define arrays
(#357) Short array syntax must be used to define arrays
(#366) Short array syntax must be used to define arrays
(#367) Short array syntax must be used to define arrays
(#368) Short array syntax must be used to define arrays
(#370) Short array syntax must be used to define arrays
(#387) Short array syntax must be used to define arrays
(#403) Short array syntax must be used to define arrays
(#408) Short array syntax must be used to define arrays
(#421) Short array syntax must be used to define arrays
(#422) Short array syntax must be used to define arrays
(#423) Short array syntax must be used to define arrays
(#424) Short array syntax must be used to define arrays
(#433) Commas (,) must be followed by white space.
(#436) There should be a comma after the last array item in a multi-line array.
(#446) Short array syntax must be used to define arrays
(#447) Commas (,) must be followed by white space.
(#448) Short array syntax must be used to define arrays
(#449) Commas (,) must be followed by white space.
(#450) Short array syntax must be used to define arrays
(#452) Short array syntax must be used to define arrays
(#453) Short array syntax must be used to define arrays
(#455) Short array syntax must be used to define arrays
(#458) Commas (,) must be followed by white space.
(#459) Short array syntax must be used to define arrays
(#461) Short array syntax must be used to define arrays
(#470) Short array syntax must be used to define arrays
(#475) Short array syntax must be used to define arrays
(#485) Short array syntax must be used to define arrays
(#494) Short array syntax must be used to define arrays
(#497) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#510) Short array syntax must be used to define arrays
(#518) Short array syntax must be used to define arrays
(#522) Short array syntax must be used to define arrays
(#527) Logical operator "or" is prohibited; use "||" instead
blocks/coursefeedback/block_coursefeedback.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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
(#72) Short array syntax must be used to define arrays
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) 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.
(#46) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
blocks/coursefeedback/classes/external_api.php
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Short array syntax must be used to define arrays
(#80) There should be a comma after the last array item in a multi-line array.
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) There should be a comma after the last array item in a multi-line array.
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Whitespace found at end of line within string
(#145) There should be a comma after the last array item in a multi-line array.
(#226) Expected 1 space after "=>"; 0 found
(#229) There should be a comma after the last array item in a multi-line array.
(#245) Short array syntax must be used to define arrays
(#259) 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"
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
(#260) 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"
(#263) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Short array syntax must be used to define arrays
(#268) Inline comments must end in full-stops, exclamation marks, or question marks
(#276) Short array syntax must be used to define arrays
(#289) Inline comments must end in full-stops, exclamation marks, or question marks
(#301) There should be a comma after the last array item in a multi-line array.
(#311) Inline comments must end in full-stops, exclamation marks, or question marks
(#311) 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"
(#338) Short array syntax must be used to define arrays
(#343) There should be a comma after the last array item in a multi-line array.
(#356) Inline comments must end in full-stops, exclamation marks, or question marks
(#356) 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"
(#360) Inline comments must end in full-stops, exclamation marks, or question marks
(#362) Short array syntax must be used to define arrays
(#367) There should be a comma after the last array item in a multi-line array.
(#371) Inline comments must end in full-stops, exclamation marks, or question marks
(#376) Inline comments must end in full-stops, exclamation marks, or question marks
(#388) Inline comments must end in full-stops, exclamation marks, or question marks
(#388) 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"
(#393) Inline comments must start with a capital letter, digit or 3-dots sequence
(#393) This comment is 58% valid code; is this commented out code?
(#393) No space found before comment text; expected "// 'shortname' => new external_value(PARAM_TEXT, 'shortname')," but found "//'shortname' => new external_value(PARAM_TEXT, 'shortname'),"
(#399) There should be a comma after the last array item in a multi-line array.
blocks/coursefeedback/classes/form/f_ranking_form.php
(#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
(#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
(#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/upgrade.php
(#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
blocks/coursefeedback/exportlib.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) Short array syntax must be used to define arrays
(#104) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#117) There should be a comma after the last array item in a multi-line array.
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) Short array syntax must be used to define arrays
(#141) There should be a comma after the last array item in a multi-line array.
(#170) Whitespace found at end of line within string
(#171) Whitespace found at end of line within string
(#172) Whitespace found at end of line within string
(#173) Whitespace found at end of line within string
(#174) Whitespace found at end of line within string
(#176) Whitespace found at end of line within string
(#181) Whitespace found at end of line within string
(#182) Whitespace found at end of line within string
(#184) Whitespace found at end of line within string
(#186) Whitespace found at end of line within string
(#187) Whitespace found at end of line within string
(#189) Whitespace found at end of line within string
(#193) Whitespace found at end of line within string
(#202) Whitespace found at end of line within string
(#233) Short array syntax must be used to define arrays
(#261) Whitespace found at end of line within string
(#263) Whitespace found at end of line within string
(#274) Short array syntax must be used to define arrays
(#276) Short array syntax must be used to define arrays
(#278) Whitespace found at end of line within string
(#296) Inline comments must end in full-stops, exclamation marks, or question marks
(#308) There should be a comma after the last array item in a multi-line array.
(#312) Whitespace found at end of line within string
(#313) Whitespace found at end of line within string
(#317) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) This comment is 43% valid code; is this commented out code?
(#318) Short array syntax must be used to define arrays
(#328) Inline comments must end in full-stops, exclamation marks, or question marks
(#336) Line exceeds 132 characters; contains 133 characters
(#340) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/coursefeedback/feedbackinfo.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#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
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#52) Short array syntax must be used to define arrays
(#66) Visibility must be declared on method "set_data"
(#75) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#119) Visibility must be declared on method "set_data"
(#124) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#248) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
(#279) Short array syntax must be used to define arrays
(#304) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#335) Short array syntax must be used to define arrays
(#337) There should be a comma after the last array item in a multi-line array.
(#346) Short array syntax must be used to define arrays
(#354) Short array syntax must be used to define arrays
(#379) Short array syntax must be used to define arrays
(#426) Short array syntax must be used to define arrays
(#433) Short array syntax must be used to define arrays
blocks/coursefeedback/forms/coursefeedbackform.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Possible useless method overriding detected
(#54) Visibility must be declared on method "set_data"
blocks/coursefeedback/lang/de/block_coursefeedback.php
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) Perl-style comments are not allowed; use "// Comment." instead
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#83) Inline comments must start with a capital letter, digit or 3-dots sequence
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) File must end with a newline character
blocks/coursefeedback/lang/en/block_coursefeedback.php
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) Perl-style comments are not allowed; use "// Comment." instead
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/coursefeedback/lib.php
(#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
(#63) 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.
(#123) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
(#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
(#201) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#233) Short array syntax must be used to define arrays
(#233) Line exceeds 132 characters; contains 135 characters
(#234) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#239) Whitespace found at end of line within string
(#241) Short array syntax must be used to define arrays
(#245) There should be a comma after the last array item in a multi-line array.
(#248) Short array syntax must be used to define arrays
(#251) Whitespace found at end of line within string
(#253) Short array syntax must be used to define arrays
(#258) There should be a comma after the last array item in a multi-line array.
(#261) Short array syntax must be used to define arrays
(#264) Whitespace found at end of line within string
(#266) Short array syntax must be used to define arrays
(#271) There should be a comma after the last array item in a multi-line array.
(#295) Short array syntax must be used to define arrays
(#297) There should be a comma after the last array item in a multi-line array.
(#320) Short array syntax must be used to define arrays
(#321) There should be a comma after the last array item in a multi-line array.
(#323) Short array syntax must be used to define arrays
(#325) There should be a comma after the last array item in a multi-line array.
(#349) Short array syntax must be used to define arrays
(#352) 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
(#404) Short array syntax must be used to define arrays
(#410) Short array syntax must be used to define arrays
(#418) Short array syntax must be used to define arrays
(#433) Whitespace found at end of line within string
(#434) Whitespace found at end of line within string
(#441) Short array syntax must be used to define arrays
(#443) Short array syntax must be used to define arrays
(#451) This comment is 56% valid code; is this commented out code?
(#457) This comment is 60% valid code; is this commented out code?
(#458) Short array syntax must be used to define arrays
(#476) Short array syntax must be used to define arrays
(#488) Short array syntax must be used to define arrays
(#511) Short array syntax must be used to define arrays
(#517) Inline comments must end in full-stops, exclamation marks, or question marks
(#519) Short array syntax must be used to define arrays
(#520) Inline comments must end in full-stops, exclamation marks, or question marks
(#528) Whitespace found at end of line within string
(#529) Whitespace found at end of line within string
(#533) Inline comments must end in full-stops, exclamation marks, or question marks
(#537) Inline comments must end in full-stops, exclamation marks, or question marks
(#540) Inline comments must end in full-stops, exclamation marks, or question marks
(#549) Inline comments must end in full-stops, exclamation marks, or question marks
(#575) Short array syntax must be used to define arrays
(#587) Short array syntax must be used to define arrays
(#592) Short array syntax must be used to define arrays
(#613) Short array syntax must be used to define arrays
(#625) Short array syntax must be used to define arrays
(#632) Inline comments must end in full-stops, exclamation marks, or question marks
(#648) Short array syntax must be used to define arrays
(#652) Inline comments must end in full-stops, exclamation marks, or question marks
(#653) Short array syntax must be used to define arrays
(#673) Short array syntax must be used to define arrays
(#681) Short array syntax must be used to define arrays
(#707) Short array syntax must be used to define arrays
(#708) Short array syntax must be used to define arrays
(#713) Short array syntax must be used to define arrays
(#717) Short array syntax must be used to define arrays
(#728) Short array syntax must be used to define arrays
(#747) This comment is 63% valid code; is this commented out code?
(#826) The use of function print_r() is forbidden
(#838) Short array syntax must be used to define arrays
(#840) Short array syntax must be used to define arrays
(#897) Short array syntax must be used to define arrays
(#904) Usage of ELSEIF not allowed; use ELSE IF instead
(#926) Short array syntax must be used to define arrays
(#928) Short array syntax must be used to define arrays
(#947) Inline comments must end in full-stops, exclamation marks, or question marks
(#954) There should be a comma after the last array item in a multi-line array.
(#957) Inline comments must end in full-stops, exclamation marks, or question marks
(#958) Short array syntax must be used to define arrays
(#960) There should be a comma after the last array item in a multi-line array.
(#964) Inline comments must end in full-stops, exclamation marks, or question marks
(#979) Short array syntax must be used to define arrays
(#982) There should be a comma after the last array item in a multi-line array.
(#984) Inline comments must end in full-stops, exclamation marks, or question marks
(#985) Whitespace found at end of line within string
(#987) Whitespace found at end of line within string
(#992) Short array syntax must be used to define arrays
(#993) Inline comments must end in full-stops, exclamation marks, or question marks
(#993) No space found before comment text; expected "// TODO calculate rankings" but found "//TODO calculate rankings"
(#995) Short array syntax must be used to define arrays
(#1001) Inline comments must end in full-stops, exclamation marks, or question marks
(#1001) No space found before comment text; expected "// $courseobj = get_course($course->course);" but found "//$courseobj = get_course($course->course);"
(#1004) Inline comments must end in full-stops, exclamation marks, or question marks
(#1008) Inline comments must end in full-stops, exclamation marks, or question marks
(#1010) Short array syntax must be used to define arrays
(#1013) There should be a comma after the last array item in a multi-line array.
(#1016) Empty IF statement detected
(#1017) Inline comments must end in full-stops, exclamation marks, or question marks
(#1017) No space found before comment text; expected "// TODO pagination" but found "//TODO pagination"
(#1019) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1019) Inline comments must end in full-stops, exclamation marks, or question marks
(#1035) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1035) Inline comments must end in full-stops, exclamation marks, or question marks
(#1059) Short array syntax must be used to define arrays
(#1075) Perl-style comments are not allowed; use "// Comment." instead
(#1077) Expected 1 space after "="; 2 found
(#1078) Inline comments must end in full-stops, exclamation marks, or question marks
(#1082) Short array syntax must be used to define arrays
(#1089) File must end with a newline character
blocks/coursefeedback/locallib.php
(#37) Short array syntax must be used to define arrays
(#61) File must end with a newline character
blocks/coursefeedback/ranking.php
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) This comment is 84% valid code; is this commented out code?
(#92) No space found before comment text; expected "// $OUTPUT->paging_bar();" but found "//$OUTPUT->paging_bar();"
blocks/coursefeedback/renderer.php
(#44) Short array syntax must be used to define arrays
(#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.
(#94) There should be a comma after the last array item in a multi-line array.
(#109) Short array syntax must be used to define arrays
blocks/coursefeedback/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
(#68) There should be a comma after the last array item in a multi-line array.
(#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
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#65) Short array syntax must be used to define arrays
blocks/coursefeedback/version.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/coursefeedback/view.php
(#36) Short array syntax must be used to define arrays
(#37) Commas (,) must be followed by white space.
(#43) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#181) File must end with a newline character

Javascript coding style problems

(0 errors, 22 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)
(#137) Unexpected space before function parentheses. (space-before-function-paren)
blocks/coursefeedback/amd/src/notif.js
(#36) Comments should not begin with a lowercase character. (capitalized-comments)
(#48) Unexpected space before function parentheses. (space-before-function-paren)
(#60) Comments should not begin with a lowercase character. (capitalized-comments)
(#71) Unexpected space before function parentheses. (space-before-function-paren)
(#81) Comments should not begin with a lowercase character. (capitalized-comments)
(#114) Unexpected space before function parentheses. (space-before-function-paren)
(#116) Expected catch,fail() or return (promise/catch-or-return)
(#117) Each then() should return a value or throw (promise/always-return)
(#120) Unexpected space before function parentheses. (space-before-function-paren)
(#128) Unexpected space before function parentheses. (space-before-function-paren)
(#136) Unexpected space before function parentheses. (space-before-function-paren)
(#165) Array.prototype.map() expects a return value from arrow function. (array-callback-return)
(#180) Expected catch,fail() or return (promise/catch-or-return)
(#180) 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

(90 errors, 25 warnings)

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

blocks/coursefeedback/admin.php
(#20) Package block is not valid
blocks/coursefeedback/block_coursefeedback.php
(#31) Class block_coursefeedback is not documented
(#20) Package block is not valid
blocks/coursefeedback/classes/event/coursefeedback_viewed.php
(#33) There is no description in phpdocs for function get_name
(#75) There is no description in phpdocs for function get_legacy_eventdata
(#24) Package block is not valid
blocks/coursefeedback/classes/external_api.php
(#48) Class external_api is not documented
(#261) Function external_api::get_feedback_questions is not documented
(#290) Function external_api::get_feedback_questions_returns is not documented
(#312) Function external_api::get_ranking_for_question_parameters is not documented
(#357) Function external_api::get_ranking_for_question is not documented
(#389) Function external_api::get_ranking_for_question_returns is not documented
(#93) Invalid phpdocs tag @returns used
(#257) Invalid phpdocs tag @returns used
(#354) Invalid phpdocs tag @returns used
blocks/coursefeedback/classes/form/f_ranking_form.php
(#45) Function f_ranking_form::definition is not documented
(#57) Function f_ranking_form::get_possible_feedbacks is not documented
(#20) Package block is not valid
blocks/coursefeedback/db/access.php
(#20) Package block is not valid
blocks/coursefeedback/db/services.php
(#20) Package block is not valid
blocks/coursefeedback/db/uninstall.php
(#28) Function xmldb_block_coursefeedback_uninstall is not documented
(#20) Package block is not valid
blocks/coursefeedback/db/upgrade.php
(#20) Package block is not valid
blocks/coursefeedback/exportlib.php
(#45) Function feedback_exporter::__construct is not documented
(#49) Function feedback_exporter::create_file is not documented
(#97) Function rankingexport::__construct is not documented
(#109) Function rankingexport::export is not documented
(#217) Function rankingexport::create_file is not documented
(#347) Function rankingexport::get_content is not documented
(#351) Function rankingexport::reset is not documented
(#43) Variable feedback_exporter::$csvexportwriter is not documented
(#91) Variable rankingexport::$feedback is not documented
(#92) Variable rankingexport::$questionid is not documented
(#93) Variable rankingexport::$seperator is not documented
(#95) Variable rankingexport::$content is not documented
(#86) No one-line description found in phpdocs for class rankingexport
(#20) Package block is not valid
(#37) Package block is not valid
blocks/coursefeedback/feedbackinfo.php
(#2) Empty line found after PHP open tag
(#21) Package block is not valid
blocks/coursefeedback/forms/coursefeedback_admin_forms.php
(#158) Class coursefeedback_delete_answers_form is not documented
(#37) Function coursefeedback_feedback_new_form::definition is not documented
(#66) Function coursefeedback_feedback_new_form::set_data is not documented
(#87) Function coursefeedback_feedback_edit_form::definition is not documented
(#119) Function coursefeedback_feedback_edit_form::set_data is not documented
(#136) Function coursefeedback_feedback_delete_form::definition is not documented
(#159) Function coursefeedback_delete_answers_form::definition is not documented
(#196) Function coursefeedback_questions_new_form::definition is not documented
(#236) Function coursefeedback_questions_edit_form::definition is not documented
(#268) Function coursefeedback_questions_delete_form::definition is not documented
(#300) Function coursefeedback_question_delete_form::definition is not documented
(#331) Function coursefeedback_question_edit_form::definition is not documented
(#377) Function coursefeedback_question_new_form::definition is not documented
(#420) Function coursefeedback_delete_language_form::definition is not documented
(#20) Package block is not valid
blocks/coursefeedback/forms/coursefeedbackform.php
(#45) Function coursefeedbackform::__construct is not documented
(#54) Function coursefeedbackform::set_data is not documented
(#40) Variable coursefeedbackform::$fid is not documented
(#41) Variable coursefeedbackform::$qid is not documented
(#42) Variable coursefeedbackform::$lang is not documented
(#43) Variable coursefeedbackform::$_form is not documented
(#36) Invalid phpdocs tag @date used
(#20) Package block is not valid
blocks/coursefeedback/lang/de/block_coursefeedback.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
blocks/coursefeedback/lang/en/block_coursefeedback.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
blocks/coursefeedback/lib.php
(#916) Function format is not documented
(#167) There is no description in phpdocs for function block_coursefeedback_delete_feedback
(#185) There is no description in phpdocs for function block_coursefeedback_insert_question
(#218) There is no description in phpdocs for function block_coursefeedback_swap_questions
(#280) There is no description in phpdocs for function block_coursefeedback_update_question
(#306) There is no description in phpdocs for function block_coursefeedback_delete_question
(#338) There is no description in phpdocs for function block_coursefeedback_delete_questions
(#369) There is no description in phpdocs for function block_coursefeedback_delete_answers
(#421) There is no description in phpdocs for function block_coursefeedback_get_implemented_languages
(#480) There is no description in phpdocs for function block_coursefeedback_get_feedbackname
(#599) There is no description in phpdocs for function block_coursefeedback_get_question_ids
(#616) There is no description in phpdocs for function block_coursefeedback_get_editerrors
(#722) There is no description in phpdocs for function block_coursefeedback_create_activate_button
(#818) There is no description in phpdocs for function block_coursefeedback_debug
(#834) There is no description in phpdocs for function block_coursefeedback_check_bools
(#848) There is no description in phpdocs for function block_coursefeedback_get_language
(#920) There is no description in phpdocs for function block_coursefeedback_adminurl
(#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
(#281) Phpdocs for function block_coursefeedback_update_question has incomplete parameters list
(#339) Phpdocs for function block_coursefeedback_delete_questions has incomplete parameters list
(#422) Phpdocs for function block_coursefeedback_get_implemented_languages has incomplete parameters list
(#501) Phpdocs for function block_coursefeedback_get_qanswercounts has incomplete parameters list
(#562) Phpdocs for function block_coursefeedback_get_questions_by_language has incomplete parameters list
(#617) Phpdocs for function block_coursefeedback_get_editerrors has incomplete parameters list
(#819) Phpdocs for function block_coursefeedback_debug has incomplete parameters list
(#921) Phpdocs for function block_coursefeedback_adminurl has incomplete parameters list
(#973) Phpdocs for function block_coursefeedback_get_courserankings has incomplete parameters list
(#1067) Phpdocs for function block_coursefeedback_extend_navigation_course has incomplete parameters list
(#20) Package block is not valid
blocks/coursefeedback/locallib.php
(#20) Package block is not valid
blocks/coursefeedback/ranking.php
(#20) Package block is not valid
blocks/coursefeedback/renderer.php
(#29) There is no description in phpdocs for function render_manage_link
(#37) There is no description in phpdocs for function render_results_link
(#48) There is no description in phpdocs for function render_result_links
(#61) There is no description in phpdocs for function render_ranking_link
(#69) There is no description in phpdocs for function render_moreinfo_link
(#77) There is no description in phpdocs for function render_notif_message
(#99) There is no description in phpdocs for function render_notif_message_teacher
(#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
(#20) Package block is not valid
blocks/coursefeedback/results.php
(#20) Package block is not valid
blocks/coursefeedback/settings.php
(#20) Package block is not valid
blocks/coursefeedback/version.php
(#20) Package block is not valid
blocks/coursefeedback/view.php
(#20) Package block is not valid

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(4 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]

blocks/coursefeedback/amd/build/dynform.min.js
Uncommitted change detected.
blocks/coursefeedback/amd/build/dynform.min.js.map
Uncommitted change detected.
blocks/coursefeedback/amd/build/notif.min.js
Uncommitted change detected.
blocks/coursefeedback/amd/build/notif.min.js.map
Uncommitted change detected.

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]