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

(465 errors, 11 warnings)

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

mod/magtest/filesystemlib.php
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) No space found before comment text; expected "// avoids reloading the lib when keeped in third party plugin" but found "//avoids reloading the lib when keeped in third party plugin"
(#42) Line indented incorrectly; expected at least 4 spaces, found 0
(#43) Line indented incorrectly; expected at least 4 spaces, found 0
(#45) Line indented incorrectly; expected at least 4 spaces, found 0
(#46) Line indented incorrectly; expected at least 4 spaces, found 0
(#48) Line indented incorrectly; expected at least 4 spaces, found 0
(#49) Line indented incorrectly; expected at least 4 spaces, found 0
(#50) Line indented incorrectly; expected at least 4 spaces, found 0
(#52) Line indented incorrectly; expected at least 4 spaces, found 0
(#53) Line indented incorrectly; expected at least 4 spaces, found 0
(#56) Line indented incorrectly; expected at least 4 spaces, found 0
(#57) Expected 1 space(s) before asterisk; 0 found
(#58) Expected 1 space(s) before asterisk; 0 found
(#59) Expected 1 space(s) before asterisk; 0 found
(#60) Expected 1 space(s) before asterisk; 0 found
(#61) Expected 1 space(s) before asterisk; 0 found
(#62) Line indented incorrectly; expected 4 spaces, found 0
(#63) Line indented incorrectly; expected at least 8 spaces, found 4
(#64) Whitespace found at end of line
(#65) Line indented incorrectly; expected 8 spaces, found 4
(#65) Expected "if (...) {\n"; found "if (...){\n"
(#66) Line indented incorrectly; expected at least 12 spaces, found 8
(#67) Line indented incorrectly; expected 8 spaces, found 4
(#67) Usage of ELSEIF not allowed; use ELSE IF instead
(#68) Line indented incorrectly; expected at least 12 spaces, found 8
(#69) Line indented incorrectly; expected 8 spaces, found 4
(#70) Line indented incorrectly; expected at least 12 spaces, found 8
(#70) Whitespace found at end of line
(#71) Line indented incorrectly; expected 8 spaces, found 4
(#73) Line indented incorrectly; expected at least 8 spaces, found 4
(#74) Line indented incorrectly; expected 8 spaces, found 4
(#74) Expected "if (...) {\n"; found "if (...){\n"
(#75) Line indented incorrectly; expected at least 12 spaces, found 7
(#75) Inline control structures are not allowed
(#76) Line indented incorrectly; expected at least 12 spaces, found 7
(#76) Variable "oldMask" must be all lower-case
(#77) Line indented incorrectly; expected at least 12 spaces, found 7
(#77) Inline control structures are not allowed
(#78) Line indented incorrectly; expected at least 12 spaces, found 7
(#78) Variable "oldMask" must be all lower-case
(#79) Line indented incorrectly; expected at least 12 spaces, found 7
(#80) Line indented incorrectly; expected 8 spaces, found 4
(#81) Line indented incorrectly; expected 8 spaces, found 4
(#81) Expected "} else {\n"; found "}\n else {\n"
(#82) Line indented incorrectly; expected at least 12 spaces, found 7
(#83) Line indented incorrectly; expected at least 12 spaces, found 7
(#83) Variable "pathTo" must be all lower-case
(#84) Line indented incorrectly; expected 12 spaces, found 7
(#84) Expected "for (...) {\n"; found "for(...){\n"
(#85) Line indented incorrectly; expected at least 16 spaces, found 10
(#85) Variable "pathTo" must be all lower-case
(#86) Line indented incorrectly; expected at least 16 spaces, found 10
(#86) Variable "pathTo" must be all lower-case
(#87) Line indented incorrectly; expected 12 spaces, found 7
(#88) Line indented incorrectly; expected at least 12 spaces, found 7
(#89) Line indented incorrectly; expected 8 spaces, found 4
(#90) Line indented incorrectly; expected 4 spaces, found 0
(#92) Line indented incorrectly; expected at least 4 spaces, found 0
(#93) Expected 1 space(s) before asterisk; 0 found
(#93) Whitespace found at end of line
(#94) Expected 1 space(s) before asterisk; 0 found
(#95) Expected 1 space(s) before asterisk; 0 found
(#96) Expected 1 space(s) before asterisk; 0 found
(#97) Line indented incorrectly; expected 4 spaces, found 0
(#97) Expected 1 space after closing parenthesis; found 0
(#98) Line indented incorrectly; expected at least 8 spaces, found 4
(#100) Line indented incorrectly; expected 8 spaces, found 4
(#100) Expected "if (...) {\n"; found "if (...){\n"
(#101) Line indented incorrectly; expected at least 12 spaces, found 8
(#102) Line indented incorrectly; expected 8 spaces, found 4
(#102) Usage of ELSEIF not allowed; use ELSE IF instead
(#103) Line indented incorrectly; expected at least 12 spaces, found 8
(#104) Line indented incorrectly; expected 8 spaces, found 4
(#105) Line indented incorrectly; expected at least 12 spaces, found 8
(#105) Whitespace found at end of line
(#106) Line indented incorrectly; expected 8 spaces, found 4
(#108) Line indented incorrectly; expected at least 8 spaces, found 4
(#108) Inline control structures are not allowed
(#109) Line indented incorrectly; expected at least 8 spaces, found 4
(#110) Line indented incorrectly; expected 4 spaces, found 0
(#110) Whitespace found at end of line
(#112) Line indented incorrectly; expected at least 4 spaces, found 0
(#113) Expected 1 space(s) before asterisk; 0 found
(#114) Expected 1 space(s) before asterisk; 0 found
(#115) Expected 1 space(s) before asterisk; 0 found
(#116) Expected 1 space(s) before asterisk; 0 found
(#117) Line indented incorrectly; expected 4 spaces, found 0
(#117) Expected 1 space after closing parenthesis; found 0
(#118) Line indented incorrectly; expected at least 8 spaces, found 4
(#120) Line indented incorrectly; expected 8 spaces, found 4
(#120) Expected "if (...) {\n"; found "if (...){\n"
(#121) Line indented incorrectly; expected at least 12 spaces, found 8
(#122) Line indented incorrectly; expected 8 spaces, found 4
(#122) Usage of ELSEIF not allowed; use ELSE IF instead
(#123) Line indented incorrectly; expected at least 12 spaces, found 8
(#124) Line indented incorrectly; expected 8 spaces, found 4
(#125) Line indented incorrectly; expected at least 12 spaces, found 8
(#125) Whitespace found at end of line
(#126) Line indented incorrectly; expected 8 spaces, found 4
(#128) Line indented incorrectly; expected at least 8 spaces, found 4
(#128) Inline control structures are not allowed
(#129) Line indented incorrectly; expected at least 8 spaces, found 4
(#130) Line indented incorrectly; expected 4 spaces, found 0
(#130) Whitespace found at end of line
(#132) Line indented incorrectly; expected at least 4 spaces, found 0
(#133) Expected 1 space(s) before asterisk; 0 found
(#134) Expected 1 space(s) before asterisk; 0 found
(#135) Expected 1 space(s) before asterisk; 0 found
(#136) Expected 1 space(s) before asterisk; 0 found
(#137) Expected 1 space(s) before asterisk; 0 found
(#138) Expected 1 space(s) before asterisk; 0 found
(#139) Expected 1 space(s) before asterisk; 0 found
(#140) Line indented incorrectly; expected 4 spaces, found 0
(#140) Expected 1 space after closing parenthesis; found 0
(#141) Line indented incorrectly; expected at least 8 spaces, found 4
(#143) Line indented incorrectly; expected 8 spaces, found 4
(#143) Expected "if (...) {\n"; found "if (...){\n"
(#144) Line indented incorrectly; expected at least 12 spaces, found 8
(#145) Line indented incorrectly; expected 8 spaces, found 4
(#145) Usage of ELSEIF not allowed; use ELSE IF instead
(#146) Line indented incorrectly; expected at least 12 spaces, found 8
(#147) Line indented incorrectly; expected 8 spaces, found 4
(#148) Line indented incorrectly; expected at least 12 spaces, found 8
(#148) Whitespace found at end of line
(#149) Line indented incorrectly; expected 8 spaces, found 4
(#151) Line indented incorrectly; expected at least 8 spaces, found 4
(#151) Inline control structures are not allowed
(#152) Line indented incorrectly; expected at least 8 spaces, found 4
(#153) Line indented incorrectly; expected at least 8 spaces, found 4
(#154) Line indented incorrectly; expected 8 spaces, found 4
(#154) Expected "while (...) {\n"; found "while (...){\n"
(#154) Variable "anEntry" must be all lower-case
(#155) Line indented incorrectly; expected 12 spaces, found 8
(#155) Expected "if (...) {\n"; found "if (...){\n"
(#156) Line indented incorrectly; expected at least 16 spaces, found 12
(#156) Variable "anEntry" must be all lower-case
(#157) Line indented incorrectly; expected at least 16 spaces, found 12
(#158) Line indented incorrectly; expected at least 16 spaces, found 12
(#158) Inline control structures are not allowed
(#158) Space found before semicolon; expected "continue;" but found "continue ;"
(#159) Line indented incorrectly; expected 12 spaces, found 8
(#160) Line indented incorrectly; expected 12 spaces, found 8
(#160) Expected "if (...) {\n"; found "if (...){\n"
(#161) Line indented incorrectly; expected at least 16 spaces, found 12
(#161) Variable "anEntry" must be all lower-case
(#162) Line indented incorrectly; expected at least 16 spaces, found 12
(#163) Line indented incorrectly; expected at least 16 spaces, found 12
(#163) Inline control structures are not allowed
(#163) Space found before semicolon; expected "continue;" but found "continue ;"
(#164) Line indented incorrectly; expected 12 spaces, found 8
(#165) Line indented incorrectly; expected 12 spaces, found 8
(#166) Line indented incorrectly; expected at least 16 spaces, found 12
(#166) Inline control structures are not allowed
(#166) Variable "anEntry" must be all lower-case
(#166) Variable "anEntry" must be all lower-case
(#166) Variable "anEntry" must be all lower-case
(#167) Line indented incorrectly; expected 12 spaces, found 8
(#168) Line indented incorrectly; expected at least 16 spaces, found 12
(#168) Inline control structures are not allowed
(#168) Variable "anEntry" must be all lower-case
(#168) Variable "anEntry" must be all lower-case
(#169) Line indented incorrectly; expected 12 spaces, found 8
(#170) Line indented incorrectly; expected 8 spaces, found 4
(#171) Line indented incorrectly; expected at least 8 spaces, found 4
(#172) Line indented incorrectly; expected at least 8 spaces, found 4
(#173) Line indented incorrectly; expected 4 spaces, found 0
(#173) Whitespace found at end of line
(#175) Line indented incorrectly; expected at least 4 spaces, found 0
(#176) Expected 1 space(s) before asterisk; 0 found
(#177) Expected 1 space(s) before asterisk; 0 found
(#178) Expected 1 space(s) before asterisk; 0 found
(#179) Expected 1 space(s) before asterisk; 0 found
(#180) Expected 1 space(s) before asterisk; 0 found
(#181) Expected 1 space(s) before asterisk; 0 found
(#182) Line indented incorrectly; expected 4 spaces, found 0
(#182) Variable "fullDelete" must be all lower-case
(#183) Line indented incorrectly; expected at least 8 spaces, found 4
(#185) Line indented incorrectly; expected 8 spaces, found 4
(#185) Expected "if (...) {\n"; found "if (...){\n"
(#186) Line indented incorrectly; expected at least 12 spaces, found 8
(#187) Line indented incorrectly; expected 8 spaces, found 4
(#187) Usage of ELSEIF not allowed; use ELSE IF instead
(#188) Line indented incorrectly; expected at least 12 spaces, found 8
(#189) Line indented incorrectly; expected 8 spaces, found 4
(#190) Line indented incorrectly; expected at least 12 spaces, found 8
(#190) Whitespace found at end of line
(#191) Line indented incorrectly; expected 8 spaces, found 4
(#193) Line indented incorrectly; expected at least 8 spaces, found 4
(#193) Inline control structures are not allowed
(#194) Line indented incorrectly; expected at least 8 spaces, found 4
(#195) Line indented incorrectly; expected 8 spaces, found 4
(#195) Variable "fullDelete" must be all lower-case
(#196) Line indented incorrectly; expected at least 12 spaces, found 8
(#196) Whitespace found at end of line
(#197) Line indented incorrectly; expected 8 spaces, found 4
(#198) Line indented incorrectly; expected 8 spaces, found 4
(#198) Variable "fullDelete" must be all lower-case
(#199) Line indented incorrectly; expected at least 12 spaces, found 8
(#200) Line indented incorrectly; expected 8 spaces, found 4
(#201) Line indented incorrectly; expected at least 8 spaces, found 4
(#202) Line indented incorrectly; expected 8 spaces, found 4
(#202) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#202) Variable "aFile" must be all lower-case
(#203) Line indented incorrectly; expected at least 12 spaces, found 8
(#203) Inline control structures are not allowed
(#203) Variable "aFile" must be all lower-case
(#203) Variable "aFile" must be all lower-case
(#203) Space found before semicolon; expected "continue;" but found "continue ;"
(#204) Line indented incorrectly; expected 12 spaces, found 8
(#204) Expected "if (...) {\n"; found "if (...){\n"
(#205) Line indented incorrectly; expected at least 16 spaces, found 12
(#206) Inline comments must start with a capital letter, digit or 3-dots sequence
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) This comment is 67% valid code; is this commented out code?
(#206) Line indented incorrectly; expected at least 16 spaces, found 12
(#207) Line indented incorrectly; expected 12 spaces, found 8
(#208) Line indented incorrectly; expected at least 16 spaces, found 12
(#209) Line indented incorrectly; expected 12 spaces, found 8
(#210) Line indented incorrectly; expected 8 spaces, found 4
(#211) Line indented incorrectly; expected at least 8 spaces, found 4
(#211) Inline control structures are not allowed
(#211) Variable "fullDelete" must be all lower-case
(#212) Line indented incorrectly; expected at least 8 spaces, found 4
(#213) Line indented incorrectly; expected 4 spaces, found 0
(#215) Line indented incorrectly; expected at least 4 spaces, found 0
(#216) Expected 1 space(s) before asterisk; 0 found
(#217) Expected 1 space(s) before asterisk; 0 found
(#218) Expected 1 space(s) before asterisk; 0 found
(#219) Expected 1 space(s) before asterisk; 0 found
(#220) Expected 1 space(s) before asterisk; 0 found
(#221) Expected 1 space(s) before asterisk; 0 found
(#222) Line indented incorrectly; expected 4 spaces, found 0
(#223) Line indented incorrectly; expected at least 8 spaces, found 4
(#224) Whitespace found at end of line
(#225) Line indented incorrectly; expected 8 spaces, found 4
(#225) Expected "if (...) {\n"; found "if (...){\n"
(#226) Line indented incorrectly; expected at least 12 spaces, found 8
(#227) Line indented incorrectly; expected 8 spaces, found 4
(#227) Usage of ELSEIF not allowed; use ELSE IF instead
(#228) Line indented incorrectly; expected at least 12 spaces, found 8
(#229) Line indented incorrectly; expected 8 spaces, found 4
(#230) Line indented incorrectly; expected at least 12 spaces, found 8
(#230) Whitespace found at end of line
(#231) Line indented incorrectly; expected 8 spaces, found 4
(#233) Line indented incorrectly; expected at least 8 spaces, found 3
(#233) Inline control structures are not allowed
(#234) Line indented incorrectly; expected 8 spaces, found 3
(#235) Line indented incorrectly; expected at least 12 spaces, found 6
(#236) Line indented incorrectly; expected 8 spaces, found 3
(#237) Line indented incorrectly; expected 8 spaces, found 3
(#238) Line indented incorrectly; expected at least 12 spaces, found 6
(#239) Line indented incorrectly; expected 8 spaces, found 3
(#240) Line indented incorrectly; expected at least 8 spaces, found 3
(#241) Line indented incorrectly; expected at least 8 spaces, found 3
(#242) Line indented incorrectly; expected 8 spaces, found 3
(#242) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#242) Variable "aFile" must be all lower-case
(#243) Line indented incorrectly; expected at least 12 spaces, found 6
(#243) Inline control structures are not allowed
(#243) Variable "aFile" must be all lower-case
(#243) Variable "aFile" must be all lower-case
(#244) Line indented incorrectly; expected 12 spaces, found 6
(#245) Line indented incorrectly; expected at least 16 spaces, found 9
(#246) Line indented incorrectly; expected 16 spaces, found 9
(#247) Line indented incorrectly; expected at least 20 spaces, found 13
(#248) Line indented incorrectly; expected 16 spaces, found 9
(#249) Line indented incorrectly; expected 12 spaces, found 6
(#250) Line indented incorrectly; expected at least 16 spaces, found 11
(#251) Line indented incorrectly; expected 12 spaces, found 6
(#252) Line indented incorrectly; expected 8 spaces, found 3
(#253) Line indented incorrectly; expected 4 spaces, found 0
(#255) Line indented incorrectly; expected at least 4 spaces, found 0
(#256) Expected 1 space(s) before asterisk; 0 found
(#257) Expected 1 space(s) before asterisk; 0 found
(#258) Expected 1 space(s) before asterisk; 0 found
(#259) Expected 1 space(s) before asterisk; 0 found
(#260) Expected 1 space(s) before asterisk; 0 found
(#261) Line indented incorrectly; expected 4 spaces, found 0
(#262) Line indented incorrectly; expected at least 8 spaces, found 4
(#264) Line indented incorrectly; expected 8 spaces, found 4
(#264) Expected "if (...) {\n"; found "if (...){\n"
(#265) Line indented incorrectly; expected at least 12 spaces, found 8
(#266) Line indented incorrectly; expected 8 spaces, found 4
(#266) Usage of ELSEIF not allowed; use ELSE IF instead
(#267) Line indented incorrectly; expected at least 12 spaces, found 8
(#268) Line indented incorrectly; expected 8 spaces, found 4
(#269) Line indented incorrectly; expected at least 12 spaces, found 8
(#269) Whitespace found at end of line
(#270) Line indented incorrectly; expected 8 spaces, found 4
(#272) Line indented incorrectly; expected at least 8 spaces, found 4
(#272) Inline control structures are not allowed
(#273) Line indented incorrectly; expected at least 8 spaces, found 4
(#274) Line indented incorrectly; expected at least 8 spaces, found 4
(#274) Inline control structures are not allowed
(#275) Line indented incorrectly; expected at least 8 spaces, found 4
(#275) Variable "FILE" must be all lower-case
(#276) Line indented incorrectly; expected at least 8 spaces, found 4
(#276) Inline control structures are not allowed
(#276) Variable "FILE" must be all lower-case
(#277) Line indented incorrectly; expected at least 8 spaces, found 4
(#277) Variable "FILE" must be all lower-case
(#278) Line indented incorrectly; expected at least 8 spaces, found 4
(#278) Variable "FILE" must be all lower-case
(#279) Line indented incorrectly; expected at least 8 spaces, found 4
(#280) Line indented incorrectly; expected 4 spaces, found 0
(#282) Line indented incorrectly; expected at least 4 spaces, found 0
(#283) Expected 1 space(s) before asterisk; 0 found
(#284) Expected 1 space(s) before asterisk; 0 found
(#285) Expected 1 space(s) before asterisk; 0 found
(#286) Expected 1 space(s) before asterisk; 0 found
(#287) Expected 1 space(s) before asterisk; 0 found
(#288) Line indented incorrectly; expected 4 spaces, found 0
(#289) Line indented incorrectly; expected at least 8 spaces, found 4
(#291) Line indented incorrectly; expected 8 spaces, found 4
(#291) Expected "if (...) {\n"; found "if (...){\n"
(#292) Line indented incorrectly; expected at least 12 spaces, found 8
(#293) Line indented incorrectly; expected 8 spaces, found 4
(#293) Usage of ELSEIF not allowed; use ELSE IF instead
(#294) Line indented incorrectly; expected at least 12 spaces, found 8
(#295) Line indented incorrectly; expected 8 spaces, found 4
(#296) Line indented incorrectly; expected at least 12 spaces, found 8
(#296) Whitespace found at end of line
(#297) Line indented incorrectly; expected 8 spaces, found 4
(#299) Line indented incorrectly; expected at least 8 spaces, found 4
(#299) Inline control structures are not allowed
(#300) Line indented incorrectly; expected at least 8 spaces, found 4
(#300) Variable "fullPath" must be all lower-case
(#301) Line indented incorrectly; expected 8 spaces, found 4
(#301) Expected "if (...) {\n"; found "if (...){\n"
(#301) Variable "fullPath" must be all lower-case
(#302) Line indented incorrectly; expected at least 12 spaces, found 8
(#302) Variable "FILE" must be all lower-case
(#302) Variable "fullPath" must be all lower-case
(#303) Line indented incorrectly; expected at least 12 spaces, found 8
(#303) Variable "FILE" must be all lower-case
(#304) Line indented incorrectly; expected 8 spaces, found 4
(#305) Line indented incorrectly; expected at least 8 spaces, found 4
(#306) Line indented incorrectly; expected 4 spaces, found 0
(#308) Line indented incorrectly; expected at least 4 spaces, found 0
(#309) Expected 1 space(s) before asterisk; 0 found
(#310) Expected 1 space(s) before asterisk; 0 found
(#311) Expected 1 space(s) before asterisk; 0 found
(#312) Expected 1 space(s) before asterisk; 0 found
(#313) Expected 1 space(s) before asterisk; 0 found
(#314) Line indented incorrectly; expected 4 spaces, found 0
(#314) Expected 1 space after closing parenthesis; found 0
(#315) Line indented incorrectly; expected at least 8 spaces, found 4
(#317) Line indented incorrectly; expected 8 spaces, found 4
(#317) Expected "if (...) {\n"; found "if (...){\n"
(#318) Line indented incorrectly; expected at least 12 spaces, found 8
(#319) Line indented incorrectly; expected 8 spaces, found 4
(#319) Usage of ELSEIF not allowed; use ELSE IF instead
(#320) Line indented incorrectly; expected at least 12 spaces, found 8
(#321) Line indented incorrectly; expected 8 spaces, found 4
(#322) Line indented incorrectly; expected at least 12 spaces, found 8
(#322) Whitespace found at end of line
(#323) Line indented incorrectly; expected 8 spaces, found 4
(#325) Line indented incorrectly; expected at least 8 spaces, found 4
(#325) Inline control structures are not allowed
(#326) Line indented incorrectly; expected at least 8 spaces, found 4
(#326) Inline control structures are not allowed
(#328) Line indented incorrectly; expected at least 8 spaces, found 4
(#329) Line indented incorrectly; expected 4 spaces, found 0
(#331) Line indented incorrectly; expected at least 4 spaces, found 0
(#332) Expected 1 space(s) before asterisk; 0 found
(#333) Expected 1 space(s) before asterisk; 0 found
(#334) Expected 1 space(s) before asterisk; 0 found
(#335) Expected 1 space(s) before asterisk; 0 found
(#336) Line indented incorrectly; expected 4 spaces, found 0
(#336) Expected 1 space after closing parenthesis; found 0
(#337) Line indented incorrectly; expected at least 8 spaces, found 4
(#339) Line indented incorrectly; expected 8 spaces, found 4
(#339) Expected "if (...) {\n"; found "if (...){\n"
(#340) Line indented incorrectly; expected at least 12 spaces, found 8
(#341) Line indented incorrectly; expected 8 spaces, found 4
(#341) Usage of ELSEIF not allowed; use ELSE IF instead
(#342) Line indented incorrectly; expected at least 12 spaces, found 8
(#343) Line indented incorrectly; expected 8 spaces, found 4
(#344) Line indented incorrectly; expected at least 12 spaces, found 8
(#344) Whitespace found at end of line
(#345) Line indented incorrectly; expected 8 spaces, found 4
(#347) Line indented incorrectly; expected at least 8 spaces, found 4
(#347) Inline control structures are not allowed
(#348) Line indented incorrectly; expected at least 8 spaces, found 4
(#348) Inline control structures are not allowed
(#349) Line indented incorrectly; expected at least 8 spaces, found 6
(#350) Line indented incorrectly; expected 4 spaces, found 0
(#352) Line indented incorrectly; expected at least 4 spaces, found 0
(#353) Expected 1 space(s) before asterisk; 0 found
(#354) Expected 1 space(s) before asterisk; 0 found
(#355) Expected 1 space(s) before asterisk; 0 found
(#356) Expected 1 space(s) before asterisk; 0 found
(#357) Line indented incorrectly; expected 4 spaces, found 0
(#357) Expected 1 space after closing parenthesis; found 0
(#358) Line indented incorrectly; expected at least 8 spaces, found 4
(#360) Line indented incorrectly; expected 8 spaces, found 4
(#360) Expected "if (...) {\n"; found "if (...){\n"
(#361) Line indented incorrectly; expected at least 12 spaces, found 8
(#362) Line indented incorrectly; expected 8 spaces, found 4
(#362) Usage of ELSEIF not allowed; use ELSE IF instead
(#363) Line indented incorrectly; expected at least 12 spaces, found 8
(#364) Line indented incorrectly; expected 8 spaces, found 4
(#365) Line indented incorrectly; expected at least 12 spaces, found 8
(#365) Whitespace found at end of line
(#366) Line indented incorrectly; expected 8 spaces, found 4
(#368) Line indented incorrectly; expected 8 spaces, found 4
(#368) Expected "if (...) {\n"; found "if (...){\n"
(#369) Line indented incorrectly; expected at least 12 spaces, found 8
(#369) Inline control structures are not allowed
(#370) Line indented incorrectly; expected at least 12 spaces, found 8
(#371) Line indented incorrectly; expected 8 spaces, found 4
(#372) Line indented incorrectly; expected at least 8 spaces, found 4
(#373) Line indented incorrectly; expected 4 spaces, found 0
(#375) Line indented incorrectly; expected at least 4 spaces, found 0
(#376) Expected 1 space(s) before asterisk; 0 found
(#377) Expected 1 space(s) before asterisk; 0 found
(#378) Expected 1 space(s) before asterisk; 0 found
(#379) Expected 1 space(s) before asterisk; 0 found
(#380) Expected 1 space(s) before asterisk; 0 found
(#381) Line indented incorrectly; expected 4 spaces, found 0
(#382) Line indented incorrectly; expected at least 8 spaces, found 4
(#384) Line indented incorrectly; expected 8 spaces, found 4
(#384) Expected "if (...) {\n"; found "if (...){\n"
(#385) Line indented incorrectly; expected at least 12 spaces, found 8
(#386) Line indented incorrectly; expected 8 spaces, found 4
(#386) Usage of ELSEIF not allowed; use ELSE IF instead
(#387) Line indented incorrectly; expected at least 12 spaces, found 8
(#388) Line indented incorrectly; expected 8 spaces, found 4
(#389) Line indented incorrectly; expected at least 12 spaces, found 8
(#389) Whitespace found at end of line
(#390) Line indented incorrectly; expected 8 spaces, found 4
(#392) Line indented incorrectly; expected at least 8 spaces, found 4
(#392) Inline control structures are not allowed
(#393) Line indented incorrectly; expected at least 8 spaces, found 4
(#393) Inline control structures are not allowed
(#394) Line indented incorrectly; expected at least 8 spaces, found 4
(#395) Line indented incorrectly; expected at least 8 spaces, found 4
(#395) Inline control structures are not allowed
(#396) Line indented incorrectly; expected at least 8 spaces, found 4
(#397) Line indented incorrectly; expected 4 spaces, found 0
(#399) Line indented incorrectly; expected at least 4 spaces, found 0
(#400) Expected 1 space(s) before asterisk; 0 found
(#401) Expected 1 space(s) before asterisk; 0 found
(#402) Expected 1 space(s) before asterisk; 0 found
(#403) Expected 1 space(s) before asterisk; 0 found
(#404) Expected 1 space(s) before asterisk; 0 found
(#405) Line indented incorrectly; expected 4 spaces, found 0
(#406) Line indented incorrectly; expected at least 8 spaces, found 4
(#408) Line indented incorrectly; expected 8 spaces, found 4
(#408) Expected "if (...) {\n"; found "if (...){\n"
(#409) Line indented incorrectly; expected at least 12 spaces, found 8
(#410) Line indented incorrectly; expected 8 spaces, found 4
(#410) Usage of ELSEIF not allowed; use ELSE IF instead
(#411) Line indented incorrectly; expected at least 12 spaces, found 8
(#412) Line indented incorrectly; expected 8 spaces, found 4
(#413) Line indented incorrectly; expected at least 12 spaces, found 8
(#413) Whitespace found at end of line
(#414) Line indented incorrectly; expected 8 spaces, found 4
(#415) Whitespace found at end of line
(#416) Line indented incorrectly; expected at least 8 spaces, found 4
(#416) Inline control structures are not allowed
(#417) Line indented incorrectly; expected at least 8 spaces, found 4
(#418) Line indented incorrectly; expected at least 8 spaces, found 4
(#419) Line indented incorrectly; expected 4 spaces, found 0
(#421) Line indented incorrectly; expected at least 4 spaces, found 0
(#421) Blank comments are not allowed
(#423) A closing tag is not permitted at the end of a PHP file
mod/magtest/locallib.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#205) Inline comments must start with a capital letter, digit or 3-dots sequence
mod/magtest/renderer.php
(#152) Line exceeds 132 characters; contains 160 characters
(#158) Line exceeds 132 characters; contains 149 characters
mod/magtest/results.controller.php
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/magtest/results.php
(#86) Line exceeds 132 characters; contains 140 characters
mod/magtest/resultsbycats.php
(#116) Line exceeds 132 characters; contains 144 characters

Javascript coding style problems

(7 errors, 5 warnings)

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

mod/magtest/js/js.js
(#6) Missing JSDoc comment. (require-jsdoc)
(#6) 'updaterenderer' is defined but never used. (no-unused-vars)
(#6) Missing space before opening brace. (space-before-blocks)
(#7) 'imgpath' is not defined. (no-undef)
(#8) 'imgid' is not defined. (no-undef)
(#9) 'imgobj' is not defined. (no-undef)
(#9) 'imgid' is not defined. (no-undef)
(#10) 'imgobj' is not defined. (no-undef)
(#10) 'imgpath' is not defined. (no-undef)
mod/magtest/js/view.js
(#10) Missing space before opening brace. (space-before-blocks)
(#12) Unexpected confirm. (no-alert)
(#22) Unexpected confirm. (no-alert)

CSS problems

(1 errors, 1 warnings)

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

mod/magtest/styles.css
(#23) Expected "#ff0000" to be "#f00" (color-hex-length)
(#23) Unexpected whitespace before ":" (declaration-colon-space-before)

PHPDocs style problems

(220 errors, 1 warnings)

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

mod/magtest/backup/moodle1/lib.php
(#165) Function moodle1_mod_magtest_handler::on_answers_start is not documented
(#169) Function moodle1_mod_magtest_handler::on_answers_end is not documented
(#174) Function moodle1_mod_magtest_handler::process_answer is not documented
(#204) Function moodle1_mod_magtest_handler::on_questions_start is not documented
(#208) Function moodle1_mod_magtest_handler::on_questions_end is not documented
(#213) Function moodle1_mod_magtest_handler::process_question is not documented
(#238) Function moodle1_mod_magtest_handler::on_categories_start is not documented
(#242) Function moodle1_mod_magtest_handler::on_categories_end is not documented
(#247) Function moodle1_mod_magtest_handler::process_category is not documented
(#17) No one-line description found in phpdocs for file
(#106) Phpdocs for function moodle1_mod_magtest_handler::process_magtest has incomplete parameters list
(#29) Class moodle1_mod_magtest_handler does not have @copyright tag
(#29) Class moodle1_mod_magtest_handler does not have @license tag
(#21) Package mod is not valid
mod/magtest/backup/moodle2/backup_magtest_activity_task.class.php
(#17) No one-line description found in phpdocs for file
(#29) No one-line description found in phpdocs for class backup_magtest_activity_task
(#51) Phpdocs for function backup_magtest_activity_task::encode_content_links has incomplete parameters list
(#29) Class backup_magtest_activity_task does not have @copyright tag
(#29) Class backup_magtest_activity_task does not have @license tag
(#19) Category mod is not valid
mod/magtest/backup/moodle2/backup_magtest_settingslib.php
(#17) No one-line description found in phpdocs for file
(#19) Category mod is not valid
mod/magtest/backup/moodle2/backup_magtest_stepslib.php
(#34) Function backup_magtest_activity_structure_step::define_structure is not documented
(#17) No one-line description found in phpdocs for file
(#29) Class backup_magtest_activity_structure_step does not have @copyright tag
(#29) Class backup_magtest_activity_structure_step does not have @license tag
(#18) Package mod_tracker is not valid
(#19) Category mod is not valid
mod/magtest/backup/moodle2/restore_magtest_activity_task.class.php
(#17) No one-line description found in phpdocs for file
(#27) No one-line description found in phpdocs for class restore_magtest_activity_task
(#17) File-level phpdocs block does not have @copyright tag
(#27) Class restore_magtest_activity_task does not have @copyright tag
(#27) Class restore_magtest_activity_task does not have @license tag
(#19) Category mod is not valid
mod/magtest/backup/moodle2/restore_magtest_stepslib.php
(#33) Function restore_magtest_activity_structure_step::define_structure is not documented
(#55) Function restore_magtest_activity_structure_step::process_magtest is not documented
(#70) Function restore_magtest_activity_structure_step::after_execute is not documented
(#78) Function restore_magtest_activity_structure_step::process_magtest_category is not documented
(#91) Function restore_magtest_activity_structure_step::process_magtest_answer is not documented
(#106) Function restore_magtest_activity_structure_step::process_magtest_question is not documented
(#119) Function restore_magtest_activity_structure_step::process_magtest_useranswer is not documented
(#17) No one-line description found in phpdocs for file
(#28) Class restore_magtest_activity_structure_step does not have @copyright tag
(#28) Class restore_magtest_activity_structure_step does not have @license tag
mod/magtest/categories.controller.php
(#17) No one-line description found in phpdocs for file
(#28) Invalid phpdocs tag @usecase used
(#28) Invalid phpdocs tag @usecase used
(#28) Invalid phpdocs tag @usecase used
(#22) Category mod is not valid
mod/magtest/categories.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/categoriesview.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/classes/event/course_module_instance_list_viewed.php
(#29) Class course_module_instance_list_viewed does not have @copyright tag
(#29) Class course_module_instance_list_viewed does not have @license tag
mod/magtest/classes/event/course_module_viewed.php
(#29) Class course_module_viewed does not have @copyright tag
(#29) Class course_module_viewed does not have @license tag
mod/magtest/classes/magtest.class.php
(#27) Class magtest is not documented
(#17) No one-line description found in phpdocs for file
(#32) Phpdocs for function magtest::add_category has incomplete parameters list
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/db/access.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/db/upgrade.php
(#27) Function xmldb_magtest_upgrade is not documented
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/editcategories.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/editquestions.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/filesystemlib.php
(#17) No one-line description found in phpdocs for file
(#177) Phpdocs for function filesystem_clear_dir has incomplete parameters list
(#354) Phpdocs for function filesystem_move_file has incomplete parameters list
(#35) Invalid phpdocs tag @date used
(#33) Package extralibs is not valid
(#19) Category mod is not valid
(#34) Category third-party libs is not valid
mod/magtest/forms/addcategories_form.php
(#40) Function Category_Form::__construct is not documented
(#47) Function Category_Form::definition is not documented
(#36) Variable Category_Form::$cmd is not documented
(#37) Variable Category_Form::$magtest is not documented
(#38) Variable Category_Form::$howmany is not documented
(#17) No one-line description found in phpdocs for file
(#30) Class Category_Form does not have @copyright tag
(#30) Class Category_Form does not have @license tag
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/forms/addquestions_form.php
(#35) Class Question_Form is not documented
(#41) Function Question_Form::__construct is not documented
(#48) Function Question_Form::definition is not documented
(#37) Variable Question_Form::$cmd is not documented
(#38) Variable Question_Form::$magtest is not documented
(#39) Variable Question_Form::$howmany is not documented
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/forms/categories_form.php
(#30) Class magtest_categories_form is not documented
(#32) Function magtest_categories_form::__construct is not documented
(#36) Function magtest_categories_form::definition is not documented
(#41) Function magtest_categories_form::definition_after_data is not documented
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/forms/import_questions_form.php
(#29) Class ImportQuestionsForm is not documented
(#31) Function ImportQuestionsForm::definition is not documented
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/help.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/import/import_questions.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#19) Category mod is not valid
mod/magtest/index.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/lang/en/magtest.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/lang/fr/magtest.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/lib.php
(#108) Function pix_url is not documented
(#502) Function magtest_pluginfile is not documented
(#275) There is no description in phpdocs for function magtest_scale_used_anywhere
(#91) Phpdocs for function magtest_add_instance has incomplete parameters list
(#117) Phpdocs for function magtest_update_instance has incomplete parameters list
(#198) Phpdocs for function magtest_user_outline has incomplete parameters list
(#222) Phpdocs for function magtest_user_complete has incomplete parameters list
(#245) Phpdocs for function magtest_print_recent_activity has incomplete parameters list
(#275) Phpdocs for function magtest_scale_used_anywhere has incomplete parameters list
(#316) Phpdocs for function magtest_scale_used has incomplete parameters list
(#330) Phpdocs for function magtest_reset_userdata has incomplete parameters list
(#355) Phpdocs for function magtest_reset_course_form_definition has incomplete parameters list
(#489) Phpdocs for function magtest_activity_completed has incomplete parameters list
(#21) Category mod is not valid
mod/magtest/listlib.php
(#17) No one-line description found in phpdocs for file
(#159) Phpdocs for function magtest_get_max_ordering has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#25) Invalid phpdocs tag @date used
(#26) Invalid phpdocs tag @contributors used
(#23) Category mod is not valid
mod/magtest/locallib.php
(#17) No one-line description found in phpdocs for file
(#352) There is no description in phpdocs for function magtest_get_unsubmitted_users
(#55) Phpdocs for function magtest_get_question has incomplete parameters list
(#73) Phpdocs for function magtest_get_answers has incomplete parameters list
(#125) Phpdocs for function magtest_user_result has incomplete parameters list
(#286) Phpdocs for function magtest_get_symbols_baseurl has incomplete parameters list
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/maketest.controller.php
(#23) Invalid phpdocs tag @contributors used
(#28) Invalid phpdocs tag @usecase used
(#28) Invalid phpdocs tag @usecase used
(#21) Category mod is not valid
mod/magtest/maketest.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/mod_form.php
(#35) Function mod_magtest_mod_form::definition is not documented
(#94) Function mod_magtest_mod_form::validation is not documented
(#17) File-level phpdocs block does not have @copyright tag
(#30) Class mod_magtest_mod_form does not have @copyright tag
(#30) Class mod_magtest_mod_form does not have @license tag
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/preview.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/questions.controller.php
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#23) Invalid phpdocs tag @usecase used
(#23) Invalid phpdocs tag @usecase used
(#23) Invalid phpdocs tag @usecase used
(#19) Package mod-magtest is not valid
(#20) Category mod is not valid
mod/magtest/questions.php
(#23) Invalid phpdocs tag @contributors used
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/questionsview.controller.php
(#17) File-level phpdocs block is not found
mod/magtest/questionsview.php
(#17) File-level phpdocs block is not found
mod/magtest/renderer.php
(#28) Class mod_magtest_renderer is not documented
(#30) Function mod_magtest_renderer::__construct is not documented
(#65) Function mod_magtest_renderer::print_magtest_quiz is not documented
(#111) Function mod_magtest_renderer::print_magtest_singlechoice is not documented
(#135) Function mod_magtest_renderer::make_test is not documented
(#17) No one-line description found in phpdocs for file
(#37) Phpdocs for function mod_magtest_renderer::answer_help_icon has incomplete parameters list
(#21) Invalid phpdocs tag @contributors used
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/results.controller.php
(#23) Invalid phpdocs tag @contributors used
(#28) Invalid phpdocs tag @usecase used
(#20) Package mod-magtest is not valid
(#21) Category mod is not valid
mod/magtest/results.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/resultsbycats.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/resultsbyusers.php
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/magtest/settings.php
(#17) No one-line description found in phpdocs for file
(#21) Invalid phpdocs tag @contributors used
(#19) Category mod is not valid
mod/magtest/stat.php
(#23) Invalid phpdocs tag @contributors used
(#20) Package mod-magtest is not valid
(#21) Category mod is not valid
mod/magtest/testfinish.php
(#17) File-level phpdocs block is not found
mod/magtest/testfinished.php
(#23) Invalid phpdocs tag @contributors used
(#20) Package mod-magtest is not valid
(#21) Category mod is not valid
mod/magtest/version.php
(#21) Category mod is not valid
mod/magtest/view.php
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#21) Not recommended phpdocs tag @version used
(#22) Package magtest is not valid

Update savepoints problems

(1 errors, 0 warnings)

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

mod/magtest/db/upgrade.php
version 2018042400 is higher than that defined in /var/lib/jenkins/git_repositories/prechecker/mod/magtest/version.php file

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

(1 errors, 0 warnings)

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

Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 9 warnings)

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

mod/magtest/templates/test.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 9: The “width” attribute on the “table” element is obsolete. Use CSS instead. (lue="" /><table width="100%" cellspacing="10" cellpadding="10"> )
(#1) HTML Validation error, line 9: The “cellspacing” attribute on the “table” element is obsolete. Use CSS instead. (lue="" /><table width="100%" cellspacing="10" cellpadding="10"> )
(#1) HTML Validation error, line 9: The “cellpadding” attribute on the “table” element is obsolete. Use CSS instead. (lue="" /><table width="100%" cellspacing="10" cellpadding="10"> )
(#1) HTML Validation error, line 14: The “align” attribute on the “tr” element is obsolete. Use CSS instead. (ding="10"> <tr align="top"> )
(#1) HTML Validation error, line 15: The “align” attribute on the “td” element is obsolete. Use CSS instead. (ign="top"> <td colspan="3" align="center"> )
(#1) HTML Validation error, line 16: Element “input” with attribute “type” whose value is “button” must have non-empty attribute “value”. ( <input type="button" name="go_btn" value="" onclick="" /> )
(#1) HTML Validation error, line 17: Element “input” with attribute “type” whose value is “button” must have non-empty attribute “value”. ( <input type="button" name="backtocourse_btn" value="" onclick="" /> )
(#1) HTML Validation error, line 15: Table columns in range 2…3 established by element “td” have no cells beginning in them. (ign="top"> <td colspan="3" align="center"> )