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

(705 errors, 35 warnings)

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

enrol/zilink/custom/demo.security.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#1) Whitespace found at end of line
(#1) Line 1 of the opening comment must start "// This file is part of".
(#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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Expected 1 space before "=>"; 0 found
(#5) Expected 1 space after "=>"; 0 found
(#6) Expected 1 space before "=>"; 0 found
(#6) Expected 1 space after "=>"; 0 found
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#7) Line exceeds 132 characters; contains 138 characters
(#8) Commas (,) must be followed by white space.
(#17) Expected 1 space before "=>"; 0 found
(#17) Expected 1 space after "=>"; 0 found
(#18) Expected 1 space before "=>"; 0 found
(#18) Expected 1 space after "=>"; 0 found
(#19) Expected 1 space before "=>"; 0 found
(#19) Expected 1 space after "=>"; 0 found
(#20) Commas (,) must be followed by white space.
(#20) Commas (,) must be followed by white space.
(#24) Whitespace found at end of line
(#28) Whitespace found at end of line
(#29) Line indented incorrectly; expected 4 spaces, found 7
(#29) Expected "foreach (...) {\n"; found "foreach (...)\n { \n"
(#30) Whitespace found at end of line
(#31) Variable "mdl_role" must not contain underscores.
(#31) Commas (,) must be followed by white space.
(#32) Expected "if (...) {\n"; found "if (...) \n {\n"
(#32) Variable "mdl_role" must not contain underscores.
(#32) Whitespace found at end of line
(#35) Variable "mdl_role" must not contain underscores.
(#35) Commas (,) must be followed by white space.
(#35) Expected 1 space before "=>"; 0 found
(#38) Expected "if (...) {\n"; found "if (...) \n {\n"
(#38) Variable "mdl_role" must not contain underscores.
(#38) Whitespace found at end of line
(#40) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#42) Variable "mdl_context" must not contain underscores.
(#42) Commas (,) must be followed by white space.
(#42) Variable "mdl_role" must not contain underscores.
(#43) Expected "if (...) {\n"; found "if(...)\n {\n"
(#43) Variable "mdl_context" must not contain underscores.
(#45) Variable "new_conext" must not contain underscores.
(#46) Variable "new_conext" must not contain underscores.
(#46) Variable "mdl_role" must not contain underscores.
(#47) Variable "new_conext" must not contain underscores.
(#48) Variable "new_conext" must not contain underscores.
(#51) Whitespace found at end of line
(#52) Line indented incorrectly; expected 12 spaces, found 15
(#52) Expected "foreach (...) {\n"; found "foreach (...)\n {\n"
(#55) Line indented incorrectly; expected 16 spaces, found 19
(#55) Expected "if (...) {\n"; found "if (...)\n {\n"
(#57) Variable "role_cap" must not contain underscores.
(#57) Variable "mdl_role" must not contain underscores.
(#57) Line exceeds 132 characters; contains 153 characters
(#58) Line indented incorrectly; expected 20 spaces, found 23
(#58) Expected "if (...) {\n"; found "if (...)\n {\n"
(#58) Variable "role_cap" must not contain underscores.
(#60) Variable "new_cap" must not contain underscores.
(#61) Variable "new_cap" must not contain underscores.
(#62) Variable "new_cap" must not contain underscores.
(#62) Variable "mdl_role" must not contain underscores.
(#63) Variable "new_cap" must not contain underscores.
(#64) Variable "new_cap" must not contain underscores.
(#65) Variable "new_cap" must not contain underscores.
(#66) Variable "new_cap" must not contain underscores.
(#67) Whitespace found at end of line
(#68) Variable "new_cap" must not contain underscores.
(#69) Line indented incorrectly; expected 20 spaces, found 22
(#69) Closing brace indented incorrectly; expected 23 spaces, found 22
(#70) Line indented incorrectly; expected 16 spaces, found 19
(#71) Closing brace indented incorrectly; expected 15 spaces, found 12
(#72) Whitespace found at end of line
(#73) Expected "foreach (...) {\n"; found "foreach (...)\n {\n"
(#76) Line indented incorrectly; expected 16 spaces, found 19
(#76) Expected "if (...) {\n"; found "if (...)\n {\n"
(#78) Variable "role_cap" must not contain underscores.
(#78) Line exceeds 132 characters; contains 149 characters
(#79) Line indented incorrectly; expected 20 spaces, found 23
(#79) Expected "if (...) {\n"; found "if (...)\n {\n"
(#79) Variable "role_cap" must not contain underscores.
(#81) Variable "role_cap" must not contain underscores.
(#82) Line indented incorrectly; expected 20 spaces, found 22
(#82) Closing brace indented incorrectly; expected 23 spaces, found 22
(#83) Line indented incorrectly; expected 16 spaces, found 19
(#86) Line indented incorrectly; expected 4 spaces, found 7
(#88) Expected 1 space after "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Commas (,) must be followed by white space.
(#93) Whitespace found at end of line
(#94) Whitespace found at end of line
(#95) Whitespace found at end of line
(#96) Whitespace found at end of line
enrol/zilink/custom/demo.setup.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#4) Whitespace found at end of line
(#5) Expected 1 space after "=>"; 0 found
(#6) Line indented incorrectly; expected 0 spaces, found 4
(#6) Expected "if (...) {\n"; found "if(...)\n {\n"
(#14) Whitespace found at end of line
(#21) Whitespace found at end of line
(#22) Commas (,) must be followed by white space.
(#23) Line indented incorrectly; expected 0 spaces, found 4
(#24) Whitespace found at end of line
(#27) Whitespace found at end of line within string
(#28) Whitespace found at end of line within string
(#29) Whitespace found at end of line within string
(#30) Whitespace found at end of line within string
(#31) Whitespace found at end of line within string
(#32) Whitespace found at end of line within string
(#33) Whitespace found at end of line within string
(#36) Whitespace found at end of line within string
(#37) Whitespace found at end of line within string
(#38) Whitespace found at end of line within string
(#39) Whitespace found at end of line within string
(#40) Whitespace found at end of line within string
(#41) Whitespace found at end of line within string
(#42) Whitespace found at end of line within string
(#43) Whitespace found at end of line within string
(#44) Whitespace found at end of line within string
(#45) Whitespace found at end of line within string
(#46) Whitespace found at end of line within string
(#47) Whitespace found at end of line within string
(#48) Whitespace found at end of line within string
(#49) Whitespace found at end of line within string
(#50) Whitespace found at end of line within string
(#51) Whitespace found at end of line within string
(#52) Whitespace found at end of line within string
(#53) Whitespace found at end of line within string
(#54) Whitespace found at end of line within string
(#55) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#57) Whitespace found at end of line within string
(#60) Whitespace found at end of line within string
(#61) Whitespace found at end of line within string
(#62) Whitespace found at end of line within string
(#63) Whitespace found at end of line within string
(#64) Whitespace found at end of line within string
(#65) Whitespace found at end of line within string
(#66) Whitespace found at end of line within string
(#67) Whitespace found at end of line within string
(#68) Whitespace found at end of line within string
(#69) Whitespace found at end of line within string
(#70) Whitespace found at end of line within string
(#71) Whitespace found at end of line within string
(#72) Whitespace found at end of line within string
(#73) Whitespace found at end of line within string
(#74) Whitespace found at end of line within string
(#75) Whitespace found at end of line within string
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#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
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
(#84) Whitespace found at end of line within string
(#85) Whitespace found at end of line within string
(#86) Whitespace found at end of line within string
(#87) Whitespace found at end of line within string
(#88) Whitespace found at end of line within string
(#89) Whitespace found at end of line within string
(#90) Whitespace found at end of line within string
(#91) Whitespace found at end of line within string
(#92) Whitespace found at end of line within string
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Whitespace found at end of line within string
(#103) Whitespace found at end of line within string
(#104) Whitespace found at end of line within string
(#105) Whitespace found at end of line within string
(#106) Whitespace found at end of line within string
(#107) Whitespace found at end of line within string
(#108) Whitespace found at end of line within string
(#109) Whitespace found at end of line within string
(#110) Whitespace found at end of line within string
(#111) Whitespace found at end of line within string
(#112) Whitespace found at end of line within string
(#113) Whitespace found at end of line within string
(#114) Whitespace found at end of line within string
(#115) Whitespace found at end of line within string
(#116) Whitespace found at end of line within string
(#117) Whitespace found at end of line within string
(#118) Whitespace found at end of line within string
(#119) Whitespace found at end of line within string
(#120) Whitespace found at end of line within string
(#121) Whitespace found at end of line within string
(#122) Whitespace found at end of line within string
(#123) Whitespace found at end of line within string
(#124) Whitespace found at end of line within string
(#125) Whitespace found at end of line within string
(#126) Whitespace found at end of line within string
(#127) Whitespace found at end of line within string
(#128) Whitespace found at end of line within string
(#129) Whitespace found at end of line within string
(#130) Whitespace found at end of line within string
(#131) Whitespace found at end of line within string
(#132) Whitespace found at end of line within string
(#133) Whitespace found at end of line within string
(#134) Whitespace found at end of line within string
(#135) Whitespace found at end of line within string
(#136) 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
(#140) Whitespace found at end of line within string
(#141) Whitespace found at end of line within string
(#142) Whitespace found at end of line within string
(#143) Whitespace found at end of line within string
(#144) Whitespace found at end of line within string
(#145) Whitespace found at end of line within string
(#146) Whitespace found at end of line within string
(#147) Whitespace found at end of line within string
(#148) Whitespace found at end of line within string
(#149) Whitespace found at end of line within string
(#150) Whitespace found at end of line within string
(#151) Whitespace found at end of line within string
(#152) Whitespace found at end of line within string
(#153) Whitespace found at end of line within string
(#154) Whitespace found at end of line within string
(#155) Whitespace found at end of line within string
(#156) Whitespace found at end of line within string
(#157) Whitespace found at end of line within string
(#158) Whitespace found at end of line within string
(#159) Whitespace found at end of line within string
(#160) Whitespace found at end of line within string
(#161) Whitespace found at end of line within string
(#162) Whitespace found at end of line within string
(#163) Whitespace found at end of line within string
(#164) Whitespace found at end of line within string
(#165) Whitespace found at end of line within string
(#166) Whitespace found at end of line within string
(#167) Whitespace found at end of line within string
(#168) Whitespace found at end of line within string
(#169) Whitespace found at end of line within string
(#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
(#175) Whitespace found at end of line within string
(#176) Whitespace found at end of line within string
(#177) Whitespace found at end of line within string
(#178) Whitespace found at end of line within string
(#179) Whitespace found at end of line within string
(#180) 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
(#183) Whitespace found at end of line within string
(#184) Whitespace found at end of line within string
(#185) 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
(#188) Whitespace found at end of line within string
(#189) Whitespace found at end of line within string
(#190) Whitespace found at end of line within string
(#191) Whitespace found at end of line within string
(#192) Whitespace found at end of line within string
(#193) Whitespace found at end of line within string
(#194) Whitespace found at end of line within string
(#195) Whitespace found at end of line within string
(#196) Whitespace found at end of line within string
(#197) Whitespace found at end of line within string
(#198) Whitespace found at end of line within string
(#199) Whitespace found at end of line within string
(#200) Whitespace found at end of line within string
(#201) Whitespace found at end of line within string
(#202) Whitespace found at end of line within string
(#203) Whitespace found at end of line within string
(#204) Whitespace found at end of line within string
(#205) Whitespace found at end of line within string
(#206) Whitespace found at end of line within string
(#207) Whitespace found at end of line within string
(#208) Whitespace found at end of line within string
(#209) Whitespace found at end of line within string
(#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
(#213) Whitespace found at end of line within string
(#214) Whitespace found at end of line within string
(#215) Whitespace found at end of line within string
(#216) Whitespace found at end of line within string
(#217) Whitespace found at end of line within string
(#218) Whitespace found at end of line within string
(#219) Whitespace found at end of line within string
(#220) Whitespace found at end of line within string
(#221) Whitespace found at end of line within string
(#222) Whitespace found at end of line within string
(#223) Whitespace found at end of line within string
(#224) Whitespace found at end of line within string
(#225) Whitespace found at end of line within string
(#226) Whitespace found at end of line within string
(#227) Whitespace found at end of line within string
(#228) Whitespace found at end of line within string
(#229) Whitespace found at end of line within string
(#230) Whitespace found at end of line within string
(#231) Whitespace found at end of line within string
(#232) Whitespace found at end of line within string
(#233) Whitespace found at end of line within string
(#234) Whitespace found at end of line within string
(#237) Whitespace found at end of line within string
(#238) Whitespace found at end of line within string
(#239) Whitespace found at end of line within string
(#240) Whitespace found at end of line within string
(#243) Whitespace found at end of line within string
(#244) Whitespace found at end of line within string
(#245) Whitespace found at end of line within string
(#246) Whitespace found at end of line within string
(#249) Line exceeds maximum limit of 180 characters; contains 762 characters
(#250) Whitespace found at end of line
(#251) Line exceeds maximum limit of 180 characters; contains 7886 characters
(#252) Whitespace found at end of line
(#253) Line exceeds maximum limit of 180 characters; contains 268 characters
(#254) Whitespace found at end of line
(#255) Commas (,) must be followed by white space.
(#256) Whitespace found at end of line
(#257) Line indented incorrectly; expected 0 spaces, found 8
(#257) Expected "if (...) {\n"; found "if(...) {\n"
(#258) Commas (,) must be followed by white space.
(#259) Line indented incorrectly; expected 0 spaces, found 8
(#261) Commas (,) must be followed by white space.
(#262) Line indented incorrectly; expected 0 spaces, found 8
(#263) Whitespace found at end of line
(#264) Expected 1 space after "=>"; 0 found
(#265) Line indented incorrectly; expected 0 spaces, found 4
(#265) Expected "if (...) {\n"; found "if(...)\n {\n"
(#273) Whitespace found at end of line
(#280) Whitespace found at end of line
(#281) Commas (,) must be followed by white space.
(#282) Line indented incorrectly; expected 0 spaces, found 4
(#283) Whitespace found at end of line
(#287) Whitespace found at end of line within string
(#288) Whitespace found at end of line within string
(#289) Whitespace found at end of line within string
(#290) Whitespace found at end of line within string
(#291) Whitespace found at end of line within string
(#294) Whitespace found at end of line within string
(#295) Whitespace found at end of line within string
(#296) Whitespace found at end of line within string
(#297) Whitespace found at end of line within string
(#298) Whitespace found at end of line within string
(#299) Whitespace found at end of line within string
(#300) Whitespace found at end of line within string
(#301) Whitespace found at end of line within string
(#302) Whitespace found at end of line within string
(#303) Whitespace found at end of line within string
(#304) Whitespace found at end of line within string
(#305) Whitespace found at end of line within string
(#306) Whitespace found at end of line within string
(#307) Whitespace found at end of line within string
(#308) Whitespace found at end of line within string
(#309) Whitespace found at end of line within string
(#310) Whitespace found at end of line within string
(#311) Whitespace found at end of line within string
(#312) Whitespace found at end of line within string
(#313) Whitespace found at end of line within string
(#314) Whitespace found at end of line within string
(#315) Whitespace found at end of line within string
(#317) Whitespace found at end of line
(#318) Whitespace found at end of line within string
(#319) Whitespace found at end of line within string
(#320) Whitespace found at end of line within string
(#321) Whitespace found at end of line within string
(#322) Whitespace found at end of line within string
(#323) Whitespace found at end of line within string
(#324) Whitespace found at end of line within string
(#325) Whitespace found at end of line within string
(#326) Whitespace found at end of line within string
(#327) Whitespace found at end of line within string
(#328) Whitespace found at end of line within string
(#329) Whitespace found at end of line within string
(#330) Whitespace found at end of line within string
(#331) Whitespace found at end of line within string
(#332) Whitespace found at end of line within string
(#333) Whitespace found at end of line within string
(#334) Whitespace found at end of line within string
(#335) Whitespace found at end of line within string
(#336) Whitespace found at end of line within string
(#337) Whitespace found at end of line within string
(#338) Whitespace found at end of line within string
(#339) Whitespace found at end of line within string
(#340) Whitespace found at end of line within string
(#341) Whitespace found at end of line within string
(#342) Whitespace found at end of line within string
(#343) Whitespace found at end of line within string
(#344) Whitespace found at end of line within string
(#345) Whitespace found at end of line within string
(#346) Whitespace found at end of line within string
(#347) Whitespace found at end of line within string
(#348) Whitespace found at end of line within string
(#349) Whitespace found at end of line within string
(#350) Whitespace found at end of line within string
(#351) Whitespace found at end of line within string
(#352) Whitespace found at end of line within string
(#353) Whitespace found at end of line within string
(#354) Whitespace found at end of line within string
(#355) Whitespace found at end of line within string
(#356) Whitespace found at end of line within string
(#357) Whitespace found at end of line within string
(#358) Whitespace found at end of line within string
(#359) Whitespace found at end of line within string
(#360) Whitespace found at end of line within string
(#361) Whitespace found at end of line within string
(#362) Whitespace found at end of line within string
(#363) Whitespace found at end of line within string
(#364) Whitespace found at end of line within string
(#365) Whitespace found at end of line within string
(#366) Whitespace found at end of line within string
(#367) Whitespace found at end of line within string
(#368) Whitespace found at end of line within string
(#369) Whitespace found at end of line within string
(#370) Whitespace found at end of line within string
(#371) Whitespace found at end of line within string
(#372) Whitespace found at end of line within string
(#373) Whitespace found at end of line within string
(#374) Whitespace found at end of line within string
(#375) Whitespace found at end of line within string
(#376) Whitespace found at end of line within string
(#377) Whitespace found at end of line within string
(#378) Whitespace found at end of line within string
(#379) Whitespace found at end of line within string
(#380) Whitespace found at end of line within string
(#381) Whitespace found at end of line within string
(#382) Whitespace found at end of line within string
(#383) Whitespace found at end of line within string
(#384) Whitespace found at end of line within string
(#385) Whitespace found at end of line within string
(#386) Whitespace found at end of line within string
(#387) Whitespace found at end of line within string
(#388) Whitespace found at end of line within string
(#389) Whitespace found at end of line within string
(#390) Whitespace found at end of line
(#391) Whitespace found at end of line
(#392) Whitespace found at end of line within string
(#393) Whitespace found at end of line within string
(#394) Whitespace found at end of line within string
(#395) Whitespace found at end of line within string
(#397) Whitespace found at end of line
(#398) Whitespace found at end of line within string
(#399) Whitespace found at end of line within string
(#400) Whitespace found at end of line within string
(#403) Commas (,) must be followed by white space.
(#404) Whitespace found at end of line
(#405) Line indented incorrectly; expected 0 spaces, found 8
(#405) Expected "if (...) {\n"; found "if(...) {\n"
(#406) Commas (,) must be followed by white space.
(#407) Line indented incorrectly; expected 0 spaces, found 8
(#409) Commas (,) must be followed by white space.
(#410) Line indented incorrectly; expected 0 spaces, found 8
(#411) Whitespace found at end of line
(#412) Whitespace found at end of line
(#413) Whitespace found at end of line
(#414) Expected 1 space after "=>"; 0 found
(#415) Line indented incorrectly; expected 0 spaces, found 4
(#415) Expected "if (...) {\n"; found "if(...)\n {\n"
(#423) Whitespace found at end of line
(#430) Whitespace found at end of line
(#431) Commas (,) must be followed by white space.
(#432) Line indented incorrectly; expected 0 spaces, found 4
(#432) Whitespace found at end of line
(#433) Whitespace found at end of line
(#437) Whitespace found at end of line within string
(#438) Whitespace found at end of line within string
(#439) Whitespace found at end of line within string
(#440) Whitespace found at end of line within string
(#441) Whitespace found at end of line within string
(#442) Whitespace found at end of line within string
(#443) Whitespace found at end of line within string
(#444) Whitespace found at end of line within string
(#445) Whitespace found at end of line within string
(#446) Whitespace found at end of line within string
(#447) Whitespace found at end of line within string
(#448) Whitespace found at end of line within string
(#449) Whitespace found at end of line within string
(#450) Whitespace found at end of line within string
(#451) Whitespace found at end of line within string
(#452) Whitespace found at end of line within string
(#453) Whitespace found at end of line within string
(#456) Whitespace found at end of line within string
(#457) Whitespace found at end of line within string
(#458) Whitespace found at end of line within string
(#459) Whitespace found at end of line within string
(#462) Commas (,) must be followed by white space.
(#463) Whitespace found at end of line
(#464) Line indented incorrectly; expected 0 spaces, found 8
(#464) Expected "if (...) {\n"; found "if(...) {\n"
(#465) Commas (,) must be followed by white space.
(#466) Line indented incorrectly; expected 0 spaces, found 8
(#468) Commas (,) must be followed by white space.
(#469) Line indented incorrectly; expected 0 spaces, found 8
(#472) Commas (,) must be followed by white space.
(#473) Line indented incorrectly; expected 0 spaces, found 4
(#473) Expected "if (...) {\n"; found "if(...)\n {\n"
(#477) Whitespace found at end of line within string
(#478) Whitespace found at end of line within string
(#479) Whitespace found at end of line within string
(#480) Whitespace found at end of line within string
(#481) Whitespace found at end of line within string
(#482) Whitespace found at end of line within string
(#483) Whitespace found at end of line within string
(#484) Whitespace found at end of line within string
(#485) Whitespace found at end of line within string
(#486) Whitespace found at end of line within string
(#487) Whitespace found at end of line within string
(#488) Whitespace found at end of line within string
(#489) Whitespace found at end of line within string
(#490) Whitespace found at end of line within string
(#491) Whitespace found at end of line within string
(#492) Whitespace found at end of line within string
(#493) Whitespace found at end of line within string
(#494) Whitespace found at end of line within string
(#495) Whitespace found at end of line within string
(#496) Whitespace found at end of line within string
(#497) Whitespace found at end of line within string
(#498) Whitespace found at end of line within string
(#499) Whitespace found at end of line within string
(#500) Whitespace found at end of line within string
(#501) Whitespace found at end of line within string
(#502) Whitespace found at end of line within string
(#503) Whitespace found at end of line within string
(#504) Whitespace found at end of line within string
(#506) Whitespace found at end of line
(#507) Whitespace found at end of line
(#508) Commas (,) must be followed by white space.
(#509) Line indented incorrectly; expected 0 spaces, found 4
(#510) Whitespace found at end of line
(#511) Whitespace found at end of line
enrol/zilink/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) 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/>.".
enrol/zilink/lang/en/enrol_zilink.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) 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/>.".
(#9) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// Capabilities" but found "//Capabilities"
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) No space found before comment text; expected "// ACCOUNT SYNC" but found "//ACCOUNT SYNC"
enrol/zilink/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#4) 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,".
(#5) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#16) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#16) Scope modifier not specified for member variable "$tab"
(#17) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#17) Scope modifier not specified for member variable "$data"
(#18) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#18) Scope modifier not specified for member variable "$matched"
(#19) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#19) Scope modifier not specified for member variable "$matcheduser"
(#20) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#20) Scope modifier not specified for member variable "$userrole"
(#21) Whitespace found at end of line
(#23) Opening brace should be on the same line as the declaration
(#24) Whitespace found at end of line
(#26) Whitespace found at end of line
(#28) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Line exceeds 132 characters; contains 157 characters
(#51) Whitespace found at end of line
(#58) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#61) Expected 1 space before "=>"; 0 found
(#61) Expected 1 space after "=>"; 0 found
(#61) Expected 1 space before "=>"; 0 found
(#61) Expected 1 space after "=>"; 0 found
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#68) Whitespace found at end of line
(#70) Commas (,) must be followed by white space.
(#71) Whitespace found at end of line
(#73) Whitespace found at end of line
(#75) Line indented incorrectly; expected 8 spaces, found 10
(#77) Line indented incorrectly; expected 8 spaces, found 10
(#78) Whitespace found at end of line
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) No space found before comment text; expected "// first unenrol all users" but found "//first unenrol all users"
(#80) Expected 1 space before "=>"; 0 found
(#80) Expected 1 space after "=>"; 0 found
(#81) Line indented incorrectly; expected 8 spaces, found 10
(#83) Line indented incorrectly; expected 8 spaces, found 10
(#85) Whitespace found at end of line
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Expected 1 space before "=>"; 0 found
(#87) Expected 1 space after "=>"; 0 found
(#87) Expected 1 space before "=>"; 0 found
(#87) Expected 1 space after "=>"; 0 found
(#88) Expected 1 space before "=>"; 0 found
(#88) Expected 1 space after "=>"; 0 found
(#89) Whitespace found at end of line
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Expected 1 space before "=>"; 0 found
(#91) Expected 1 space after "=>"; 0 found
(#92) Whitespace found at end of line
(#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
(#96) Line indented incorrectly; expected 4 spaces, found 6
(#96) Closing brace indented incorrectly; expected 4 spaces, found 6
(#97) Whitespace found at end of line
(#98) Whitespace found at end of line
(#100) Expected 5 space(s) before asterisk; 4 found
(#101) Expected 5 space(s) before asterisk; 4 found
(#102) Expected 5 space(s) before asterisk; 4 found
(#103) Expected 5 space(s) before asterisk; 4 found
(#104) Expected 5 space(s) before asterisk; 4 found
(#105) Visibility must be declared on method "enrol_zilink_supports"
(#105) Whitespace found at end of line
(#106) Opening brace should be on the same line as the declaration
(#107) Whitespace found at end of line
(#109) Closing brace must be on a line by itself
(#111) Closing brace must be on a line by itself
(#114) Whitespace found at end of line
(#115) Whitespace found at end of line
(#116) Whitespace found at end of line
(#122) Whitespace found at end of line
(#124) Whitespace found at end of line
(#126) Inline comments must start with a capital letter, digit or 3-dots sequence
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) This comment is 75% valid code; is this commented out code?
(#126) No space found before comment text; expected "// require_capability('moodle/course:enrolconfig', $this->get_context());" but found "//require_capability('moodle/course:enrolconfig', $this->get_context());"
(#130) Whitespace found at end of line
(#132) No space found before comment text; expected "// FIXME check this" but found "//FIXME check this"
(#133) This comment is 68% valid code; is this commented out code?
(#133) No space found before comment text; expected "// if (!array_key_exists($cohortid, $cohorts) || !array_key_exists($roleid, $roles)) {" but found "//if (!array_key_exists($cohortid, $cohorts) || !array_key_exists($roleid, $roles)) {"
(#134) This comment is 60% valid code; is this commented out code?
(#134) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) This comment is 100% valid code; is this commented out code?
(#135) No space found before comment text; expected "// }" but found "//}"
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#143) This comment is 54% valid code; is this commented out code?
(#145) Whitespace found at end of line
(#146) Whitespace found at end of line
(#148) Whitespace found at end of line
(#149) Line exceeds 132 characters; contains 133 characters
(#178) Whitespace found at end of line
(#182) Line exceeds maximum limit of 180 characters; contains 183 characters
(#189) A closing tag is not permitted at the end of a PHP file
enrol/zilink/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) 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/>.".

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(22 errors, 6 warnings)

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

enrol/zilink/custom/demo.security.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink/custom/demo.setup.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink/lang/en/enrol_zilink.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink/lib.php
(#2) Empty line found after PHP open tag
(#14) Class enrol_zilink_plugin is not documented
(#121) Class zilink_course_enrolment_manager is not documented
(#22) Function enrol_zilink_plugin::get_name is not documented
(#27) Function enrol_zilink_plugin::roles_protected is not documented
(#32) Function enrol_zilink_plugin::allow_enrol is not documented
(#37) Function enrol_zilink_plugin::allow_unenrol is not documented
(#42) Function enrol_zilink_plugin::allow_manage is not documented
(#47) Function enrol_zilink_plugin::add_default_instance is not documented
(#69) Function enrol_zilink_plugin::delete_instance is not documented
(#123) Function zilink_course_enrolment_manager::enrol_cohort is not documented
(#16) Variable enrol_zilink_plugin::$tab is not documented
(#17) Variable enrol_zilink_plugin::$data is not documented
(#18) Variable enrol_zilink_plugin::$matched is not documented
(#19) Variable enrol_zilink_plugin::$matcheduser is not documented
(#20) Variable enrol_zilink_plugin::$userrole is not documented
(#54) Phpdocs for function enrol_zilink_plugin::add_instance has incomplete parameters list
(#6) Package enrol is not valid
enrol/zilink/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


Mustache template problems

(0 errors, 0 warnings)

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