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

(87 errors, 373 warnings)

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

plagiarism/compilatio/ajax/compilatio_reset_failed_document.php
(#47) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
plagiarism/compilatio/ajax/compilatio_start_all_analysis.php
(#55) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#97) There should be a comma after the last array item in a multi-line array.
(#102) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
plagiarism/compilatio/ajax/compilatio_start_analysis.php
(#44) Short array syntax must be used to define arrays
plagiarism/compilatio/autodiagnosis.php
(#56) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#147) There should be a comma after the last array item in a multi-line array.
(#150) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#170) There should be a comma after the last array item in a multi-line array.
(#177) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#184) Short array syntax must be used to define arrays
(#186) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#193) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#199) Short array syntax must be used to define arrays
plagiarism/compilatio/backup/moodle2/backup_plagiarism_compilatio_plugin.class.php
(#53) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
plagiarism/compilatio/backup/moodle2/restore_plagiarism_compilatio_plugin.class.php
(#40) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
plagiarism/compilatio/classes/privacy/provider.php
(#34) Duplicate interface name "plagiarism_compilatio\privacy\user_provider" found; first defined in /var/lib/jenkins/git_repositories/prechecker/plagiarism/compilatio/classes/privacy/provider.php on line 30
(#73) There must not be a space before the colon in a return type declaration
(#94) There should be a comma after the last array item in a multi-line array.
(#106) There must not be a space before the colon in a return type declaration
(#115) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#212) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
plagiarism/compilatio/classes/task/migration.php
(#51) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#68) There should be a comma after the last array item in a multi-line array.
(#74) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#83) There should be a comma after the last array item in a multi-line array.
(#131) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
plagiarism/compilatio/compilatio.class.php
(#115) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#136) There should be a comma after the last array item in a multi-line array.
(#137) There should be a comma after the last array item in a multi-line array.
(#188) Short array syntax must be used to define arrays
(#194) There should be a comma after the last array item in a multi-line array.
(#238) There should be a comma after the last array item in a multi-line array.
(#244) There should be a comma after the last array item in a multi-line array.
(#251) There should be a comma after the last array item in a multi-line array.
(#260) Short array syntax must be used to define arrays
(#262) There should be a comma after the last array item in a multi-line array.
(#301) Line exceeds 132 characters; contains 138 characters
(#351) There should be a comma after the last array item in a multi-line array.
(#386) There should be a comma after the last array item in a multi-line array.
(#392) There should be a comma after the last array item in a multi-line array.
(#393) There should be a comma after the last array item in a multi-line array.
(#394) There should be a comma after the last array item in a multi-line array.
(#403) There should be a comma after the last array item in a multi-line array.
(#429) Short array syntax must be used to define arrays
(#431) There should be a comma after the last array item in a multi-line array.
(#500) There should be a comma after the last array item in a multi-line array.
(#524) Short array syntax must be used to define arrays
(#546) Short array syntax must be used to define arrays
(#572) There should be a comma after the last array item in a multi-line array.
(#595) Short array syntax must be used to define arrays
(#598) Short array syntax must be used to define arrays
(#600) Short array syntax must be used to define arrays
(#603) Short array syntax must be used to define arrays
(#619) Short array syntax must be used to define arrays
(#647) Short array syntax must be used to define arrays
(#653) There should be a comma after the last array item in a multi-line array.
(#676) Short array syntax must be used to define arrays
(#701) Short array syntax must be used to define arrays
(#723) Short array syntax must be used to define arrays
(#744) Short array syntax must be used to define arrays
(#767) Short array syntax must be used to define arrays
(#795) Short array syntax must be used to define arrays
(#815) Short array syntax must be used to define arrays
plagiarism/compilatio/compilatio_defaults.php
(#43) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
plagiarism/compilatio/compilatio_form.php
(#85) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
plagiarism/compilatio/compilatio_tabs.php
(#47) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
plagiarism/compilatio/db/access.php
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
(#39) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#44) There should be a comma after the last array item in a multi-line array.
(#45) There should be a comma after the last array item in a multi-line array.
(#47) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
(#56) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#62) There should be a comma after the last array item in a multi-line array.
(#63) There should be a comma after the last array item in a multi-line array.
plagiarism/compilatio/db/events.php
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#33) There should be a comma after the last array item in a multi-line array.
(#35) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#39) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#43) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#47) Short array syntax must be used to define arrays
(#49) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#55) Short array syntax must be used to define arrays
(#57) There should be a comma after the last array item in a multi-line array.
(#59) Short array syntax must be used to define arrays
(#61) There should be a comma after the last array item in a multi-line array.
(#63) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#67) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
(#71) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#75) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#79) Short array syntax must be used to define arrays
(#81) There should be a comma after the last array item in a multi-line array.
(#83) Short array syntax must be used to define arrays
(#85) There should be a comma after the last array item in a multi-line array.
(#87) Short array syntax must be used to define arrays
(#89) There should be a comma after the last array item in a multi-line array.
(#91) Short array syntax must be used to define arrays
(#93) There should be a comma after the last array item in a multi-line array.
(#95) Short array syntax must be used to define arrays
(#97) There should be a comma after the last array item in a multi-line array.
(#99) Short array syntax must be used to define arrays
(#101) There should be a comma after the last array item in a multi-line array.
(#103) Short array syntax must be used to define arrays
(#105) There should be a comma after the last array item in a multi-line array.
plagiarism/compilatio/db/tasks.php
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#47) There should be a comma after the last array item in a multi-line array.
(#49) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#58) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#67) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#75) There should be a comma after the last array item in a multi-line array.
plagiarism/compilatio/helper/csv_helper.php
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
plagiarism/compilatio/helper/output_helper.php
(#51) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#224) Short array syntax must be used to define arrays
(#277) Line exceeds 132 characters; contains 176 characters
(#279) Line exceeds maximum limit of 180 characters; contains 1063 characters
(#294) Line exceeds maximum limit of 180 characters; contains 184 characters
(#296) Whitespace found at end of line within string
(#297) Line exceeds maximum limit of 180 characters; contains 1204 characters
(#311) Line exceeds 132 characters; contains 180 characters
(#314) Line exceeds maximum limit of 180 characters; contains 557 characters
plagiarism/compilatio/helper/ws_helper.php
(#97) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#125) There should be a comma after the last array item in a multi-line array.
(#127) Short array syntax must be used to define arrays
(#130) There should be a comma after the last array item in a multi-line array.
(#132) Short array syntax must be used to define arrays
(#135) There should be a comma after the last array item in a multi-line array.
(#137) Short array syntax must be used to define arrays
(#140) There should be a comma after the last array item in a multi-line array.
(#142) Short array syntax must be used to define arrays
(#145) There should be a comma after the last array item in a multi-line array.
(#147) Short array syntax must be used to define arrays
(#150) There should be a comma after the last array item in a multi-line array.
(#151) There should be a comma after the last array item in a multi-line array.
plagiarism/compilatio/lib.php
(#95) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
(#145) Line exceeds 132 characters; contains 156 characters
(#195) Short array syntax must be used to define arrays
(#203) Line exceeds 132 characters; contains 146 characters
(#230) Short array syntax must be used to define arrays
(#248) Short array syntax must be used to define arrays
(#252) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#284) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#331) Short array syntax must be used to define arrays
(#334) Short array syntax must be used to define arrays
(#345) Short array syntax must be used to define arrays
(#364) Short array syntax must be used to define arrays
(#384) Short array syntax must be used to define arrays
(#441) Short array syntax must be used to define arrays
(#449) Short array syntax must be used to define arrays
(#486) Short array syntax must be used to define arrays
(#544) Short array syntax must be used to define arrays
(#552) Short array syntax must be used to define arrays
(#562) There should be a comma after the last array item in a multi-line array.
(#640) Short array syntax must be used to define arrays
(#646) Short array syntax must be used to define arrays
(#692) Short array syntax must be used to define arrays
(#697) Short array syntax must be used to define arrays
(#712) Short array syntax must be used to define arrays
(#732) Short array syntax must be used to define arrays
(#742) Short array syntax must be used to define arrays
(#751) Line exceeds 132 characters; contains 160 characters
(#758) Short array syntax must be used to define arrays
(#770) Short array syntax must be used to define arrays
(#773) Short array syntax must be used to define arrays
(#776) There should be a comma after the last array item in a multi-line array.
(#784) There should be a comma after the last array item in a multi-line array.
(#792) Short array syntax must be used to define arrays
(#804) Short array syntax must be used to define arrays
(#817) Short array syntax must be used to define arrays
(#830) Short array syntax must be used to define arrays
(#842) Short array syntax must be used to define arrays
(#857) Line exceeds 132 characters; contains 155 characters
(#867) Short array syntax must be used to define arrays
(#874) Line exceeds 132 characters; contains 164 characters
(#889) Line exceeds 132 characters; contains 180 characters
(#890) Line exceeds maximum limit of 180 characters; contains 426 characters
(#907) Line exceeds 132 characters; contains 150 characters
(#911) Line exceeds 132 characters; contains 160 characters
(#916) Whitespace found at end of line within string
(#929) Line exceeds 132 characters; contains 141 characters
(#933) Short array syntax must be used to define arrays
(#940) Short array syntax must be used to define arrays
(#946) Short array syntax must be used to define arrays
(#951) Line exceeds 132 characters; contains 143 characters
(#961) Line exceeds 132 characters; contains 148 characters
(#978) Line exceeds 132 characters; contains 149 characters
(#1021) Short array syntax must be used to define arrays
(#1093) Short array syntax must be used to define arrays
(#1117) Short array syntax must be used to define arrays
(#1148) Short array syntax must be used to define arrays
(#1159) Short array syntax must be used to define arrays
(#1162) Short array syntax must be used to define arrays
(#1207) Short array syntax must be used to define arrays
(#1279) Short array syntax must be used to define arrays
(#1285) Short array syntax must be used to define arrays
(#1309) Short array syntax must be used to define arrays
(#1316) Short array syntax must be used to define arrays
(#1320) Short array syntax must be used to define arrays
(#1323) Short array syntax must be used to define arrays
(#1335) Short array syntax must be used to define arrays
(#1350) Short array syntax must be used to define arrays
(#1352) Short array syntax must be used to define arrays
(#1448) Short array syntax must be used to define arrays
(#1453) Short array syntax must be used to define arrays
(#1469) Short array syntax must be used to define arrays
(#1487) Short array syntax must be used to define arrays
(#1586) Short array syntax must be used to define arrays
(#1620) Short array syntax must be used to define arrays
(#1630) Short array syntax must be used to define arrays
(#1681) Short array syntax must be used to define arrays
(#1888) There should be a comma after the last array item in a multi-line array.
(#1947) Short array syntax must be used to define arrays
(#1976) Short array syntax must be used to define arrays
(#2001) Short array syntax must be used to define arrays
(#2003) Short array syntax must be used to define arrays
(#2143) Line exceeds 132 characters; contains 157 characters
(#2153) Short array syntax must be used to define arrays
(#2239) Short array syntax must be used to define arrays
(#2262) Short array syntax must be used to define arrays
(#2291) Short array syntax must be used to define arrays
(#2294) Short array syntax must be used to define arrays
(#2297) Short array syntax must be used to define arrays
(#2300) Short array syntax must be used to define arrays
(#2303) Short array syntax must be used to define arrays
(#2306) Short array syntax must be used to define arrays
(#2309) Short array syntax must be used to define arrays
(#2312) Short array syntax must be used to define arrays
(#2315) Short array syntax must be used to define arrays
(#2318) Short array syntax must be used to define arrays
(#2321) Short array syntax must be used to define arrays
(#2324) Short array syntax must be used to define arrays
(#2331) Short array syntax must be used to define arrays
(#2369) Short array syntax must be used to define arrays
(#2370) Short array syntax must be used to define arrays
(#2372) Short array syntax must be used to define arrays
(#2375) Short array syntax must be used to define arrays
(#2382) Short array syntax must be used to define arrays
(#2385) Short array syntax must be used to define arrays
(#2386) Short array syntax must be used to define arrays
(#2387) Short array syntax must be used to define arrays
(#2388) Short array syntax must be used to define arrays
(#2391) Short array syntax must be used to define arrays
(#2393) Short array syntax must be used to define arrays
(#2396) Short array syntax must be used to define arrays
(#2399) Short array syntax must be used to define arrays
(#2402) Short array syntax must be used to define arrays
(#2405) Short array syntax must be used to define arrays
(#2408) Short array syntax must be used to define arrays
(#2505) Short array syntax must be used to define arrays
(#2517) Short array syntax must be used to define arrays
(#2527) Short array syntax must be used to define arrays
(#2538) Short array syntax must be used to define arrays
(#2554) Short array syntax must be used to define arrays
(#2596) Function utf8_decode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
(#2597) Function utf8_decode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
(#2617) Short array syntax must be used to define arrays
(#2619) Short array syntax must be used to define arrays
(#2628) Short array syntax must be used to define arrays
(#2665) Short array syntax must be used to define arrays
(#2677) Short array syntax must be used to define arrays
(#2685) Short array syntax must be used to define arrays
(#2712) Short array syntax must be used to define arrays
(#2715) Short array syntax must be used to define arrays
(#2718) Short array syntax must be used to define arrays
(#2724) Short array syntax must be used to define arrays
(#2747) Short array syntax must be used to define arrays
(#2754) Short array syntax must be used to define arrays
(#2806) Short array syntax must be used to define arrays
(#2864) Short array syntax must be used to define arrays
(#2879) Short array syntax must be used to define arrays
(#2880) Short array syntax must be used to define arrays
(#2882) Short array syntax must be used to define arrays
(#2903) Short array syntax must be used to define arrays
(#2921) Short array syntax must be used to define arrays
(#2927) Short array syntax must be used to define arrays
(#2933) Short array syntax must be used to define arrays
(#2939) Short array syntax must be used to define arrays
(#2945) Short array syntax must be used to define arrays
(#2951) Short array syntax must be used to define arrays
(#2957) Short array syntax must be used to define arrays
(#2958) Short array syntax must be used to define arrays
(#2959) Short array syntax must be used to define arrays
(#2960) Short array syntax must be used to define arrays
(#2961) Short array syntax must be used to define arrays
(#2962) Short array syntax must be used to define arrays
(#2990) Function utf8_decode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
(#3056) Short array syntax must be used to define arrays
(#3060) Short array syntax must be used to define arrays
(#3064) Short array syntax must be used to define arrays
(#3068) Short array syntax must be used to define arrays
(#3105) Short array syntax must be used to define arrays
(#3113) Short array syntax must be used to define arrays
(#3131) Short array syntax must be used to define arrays
(#3163) Short array syntax must be used to define arrays
(#3186) Short array syntax must be used to define arrays
(#3189) Short array syntax must be used to define arrays
(#3197) Short array syntax must be used to define arrays
(#3204) Short array syntax must be used to define arrays
(#3208) Short array syntax must be used to define arrays
(#3215) Short array syntax must be used to define arrays
(#3219) Short array syntax must be used to define arrays
(#3227) Short array syntax must be used to define arrays
(#3232) Short array syntax must be used to define arrays
(#3263) Short array syntax must be used to define arrays
(#3265) Short array syntax must be used to define arrays
(#3269) Short array syntax must be used to define arrays
(#3272) Short array syntax must be used to define arrays
(#3281) Short array syntax must be used to define arrays
(#3287) Short array syntax must be used to define arrays
(#3288) Short array syntax must be used to define arrays
(#3300) Short array syntax must be used to define arrays
(#3305) Short array syntax must be used to define arrays
(#3309) Short array syntax must be used to define arrays
(#3321) Short array syntax must be used to define arrays
(#3330) Short array syntax must be used to define arrays
(#3366) Short array syntax must be used to define arrays
(#3376) Short array syntax must be used to define arrays
(#3385) Short array syntax must be used to define arrays
(#3393) Short array syntax must be used to define arrays
(#3401) Short array syntax must be used to define arrays
(#3406) Short array syntax must be used to define arrays
(#3430) Short array syntax must be used to define arrays
(#3432) Short array syntax must be used to define arrays
(#3435) Short array syntax must be used to define arrays
(#3437) Short array syntax must be used to define arrays
(#3444) Short array syntax must be used to define arrays
(#3478) Function utf8_decode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
(#3494) Line exceeds 132 characters; contains 162 characters
(#3592) Short array syntax must be used to define arrays
plagiarism/compilatio/migrate.php
(#57) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
(#101) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
plagiarism/compilatio/reset.php
(#42) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
plagiarism/compilatio/settings.php
(#39) Short array syntax must be used to define arrays
(#63) There should be a comma after the last array item in a multi-line array.
(#96) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
plagiarism/compilatio/statistics.php
(#55) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#59) Short array syntax must be used to define arrays
(#62) There should be a comma after the last array item in a multi-line array.
(#64) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#69) Short array syntax must be used to define arrays
(#71) There should be a comma after the last array item in a multi-line array.
(#80) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
(#87) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#111) Short array syntax must be used to define arrays
(#119) There should be a comma after the last array item in a multi-line array.
(#124) Short array syntax must be used to define arrays
(#132) There should be a comma after the last array item in a multi-line array.
(#137) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#141) There should be a comma after the last array item in a multi-line array.
plagiarism/compilatio/tests/privacy/provider_test.php
(#40) PHPUnit testcase name "plagiarism_compilatio_privacy_provider_testcase" does not match file name "provider_test"
(#40) PHPUnit class "plagiarism_compilatio_privacy_provider_testcase" does not have any namespace. It is recommended to add it to the "plagiarism_compilatio" namespace, using more levels if needed, in order to match the code being tested
(#45) Test method test_get_metadata() is missing any coverage information, own or at class level
(#86) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#108) Test method test_export_plagiarism_user_data() is missing any coverage information, own or at class level
(#126) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#135) Test method test_delete_plagiarism_for_context() is missing any coverage information, own or at class level
(#167) Test method test_delete_plagiarism_for_user_owner_school() is missing any coverage information, own or at class level
(#204) Test method test_delete_plagiarism_for_user_owner_student() is missing any coverage information, own or at class level
(#241) Test method test_delete_plagiarism_for_users() is missing any coverage information, own or at class level
(#267) Short array syntax must be used to define arrays
(#350) Short array syntax must be used to define arrays
(#351) Short array syntax must be used to define arrays
(#352) Short array syntax must be used to define arrays

Javascript coding style problems

(59 errors, 298 warnings)

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

plagiarism/compilatio/amd/src/compilatio_ajax_api.js
(#5) Trailing spaces not allowed. (no-trailing-spaces)
(#17) Trailing spaces not allowed. (no-trailing-spaces)
(#19) Trailing spaces not allowed. (no-trailing-spaces)
(#26) Trailing spaces not allowed. (no-trailing-spaces)
(#35) Trailing spaces not allowed. (no-trailing-spaces)
(#54) Trailing spaces not allowed. (no-trailing-spaces)
(#92) Trailing spaces not allowed. (no-trailing-spaces)
(#99) This line has a length of 143. Maximum allowed is 132. (max-len)
(#108) Trailing spaces not allowed. (no-trailing-spaces)
(#129) Trailing spaces not allowed. (no-trailing-spaces)
(#136) This line has a length of 143. Maximum allowed is 132. (max-len)
(#145) Trailing spaces not allowed. (no-trailing-spaces)
(#148) Trailing spaces not allowed. (no-trailing-spaces)
(#153) Trailing spaces not allowed. (no-trailing-spaces)
(#156) 'markdown' is not defined. (no-undef)
(#156) Missing semicolon. (@babel/semi)
(#158) Trailing spaces not allowed. (no-trailing-spaces)
(#179) Missing semicolon. (@babel/semi)
(#181) Trailing spaces not allowed. (no-trailing-spaces)
(#188) Trailing spaces not allowed. (no-trailing-spaces)
(#190) Trailing spaces not allowed. (no-trailing-spaces)
(#203) Trailing spaces not allowed. (no-trailing-spaces)
(#206) Trailing spaces not allowed. (no-trailing-spaces)
(#218) Trailing spaces not allowed. (no-trailing-spaces)
(#220) Trailing spaces not allowed. (no-trailing-spaces)
(#224) Trailing spaces not allowed. (no-trailing-spaces)
(#233) Trailing spaces not allowed. (no-trailing-spaces)
(#236) Trailing spaces not allowed. (no-trailing-spaces)
plagiarism/compilatio/js/drawdown.min.js
(#22) This line has a length of 1941. Maximum allowed is 132. (max-len)
(#22) 'markdown' is defined but never used. (no-unused-vars)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Unnecessary escape character: \|. (no-useless-escape)
(#22) Unnecessary escape character: \[. (no-useless-escape)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Unnecessary escape character: \:. (no-useless-escape)
(#22) Unnecessary escape character: \:. (no-useless-escape)
(#22) Unnecessary escape character: \:. (no-useless-escape)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Missing whitespace after semicolon. (semi-spacing)
(#22) This line has 27 statements. Maximum allowed is 2. (max-statements-per-line)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Expected space(s) before "function". (keyword-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Expected space(s) after "return". (keyword-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Expected space(s) before "function". (keyword-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Do not nest ternary expressions. (no-nested-ternary)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Do not nest ternary expressions. (no-nested-ternary)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Do not nest ternary expressions. (no-nested-ternary)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Do not nest ternary expressions. (no-nested-ternary)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Expected space(s) before "function". (keyword-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Expected space(s) before "var". (keyword-spacing)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Missing whitespace after semicolon. (semi-spacing)
(#22) Return statement should not contain assignment. (no-return-assign)
(#22) Return statement should not contain assignment. (no-return-assign)
(#22) Return statement should not contain assignment. (no-return-assign)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Unexpected use of comma operator. (no-sequences)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Wrap an immediate function invocation in parentheses. (wrap-iife)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Missing whitespace after semicolon. (semi-spacing)
(#22) Expected space(s) after "return". (keyword-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '-' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Spaces are hard to count. Use {4}. (no-regex-spaces)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Return statement should not contain assignment. (no-return-assign)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '||' must be spaced. (space-infix-ops)
(#22) Spaces are hard to count. Use {4}. (no-regex-spaces)
(#22) A space is required after ','. (comma-spacing)
(#22) Unexpected use of comma operator. (no-sequences)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) Unnecessary escape character: \[. (no-useless-escape)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Return statement should not contain assignment. (no-return-assign)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Do not nest ternary expressions. (no-nested-ternary)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Unexpected use of comma operator. (no-sequences)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '=' must be spaced. (space-infix-ops)
(#22) Missing whitespace after semicolon. (semi-spacing)
(#22) Expected space(s) after "return". (keyword-spacing)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '==' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator '&&' must be spaced. (space-infix-ops)
(#22) Operator '?' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Operator '||' must be spaced. (space-infix-ops)
(#22) Operator ':' must be spaced. (space-infix-ops)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) Operator '+' must be spaced. (space-infix-ops)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space after '{'. (block-spacing)
(#22) Statement inside of curly braces should be on next line. (brace-style)
(#22) Missing space before opening brace. (space-before-blocks)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
(#22) A space is required after ','. (comma-spacing)
(#22) Requires a space before '}'. (block-spacing)
(#22) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#22) Missing semicolon. (semi)
plagiarism/compilatio/js/statistics_functions.js
(#7) 'compilatioPercentage' is defined but never used. (no-unused-vars)
(#18) 'compilatioUrlSorter' is defined but never used. (no-unused-vars)

CSS problems

(6 errors, 5 warnings)

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

plagiarism/compilatio/styles.css
(#149) Expected single space before "{" (block-opening-brace-space-before)
(#114) Expected "#F5F6F8" to be "#f5f6f8" (color-hex-case)
(#115) Expected "#EBEBF0" to be "#ebebf0" (color-hex-case)
(#191) Expected "#6D6D6D" to be "#6d6d6d" (color-hex-case)
(#246) Expected "#F5F6F8" to be "#f5f6f8" (color-hex-case)
(#247) Expected "#EBEBF0" to be "#ebebf0" (color-hex-case)
(#135) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#146) Unexpected !important (declaration-no-important)
(#192) Unexpected !important (declaration-no-important)
(#149) Expected newline after "," (selector-list-comma-newline-after)
(#149) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(1 errors, 0 warnings)

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

plagiarism/compilatio/helper/ws_helper.php
(#59) Phpdocs for function ws_helper::test_connection has incomplete parameters list

Update savepoints problems

(0 errors, 1 warnings)

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

plagiarism/compilatio/db/upgrade.php
Detected fewer 'if' blocks (4) than 'savepoint' calls (5). Repeated savepoints?

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

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

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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