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

(473 errors, 146 warnings)

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

plagiarism/unicheck/autoloader.php
(#28) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#62) File must end with a newline character
plagiarism/unicheck/backup/moodle2/backup_plagiarism_unicheck_plugin.class.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#103) File must end with a newline character
plagiarism/unicheck/backup/moodle2/restore_plagiarism_unicheck_plugin.class.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#108) File must end with a newline character
plagiarism/unicheck/check.php
(#88) File must end with a newline character
plagiarism/unicheck/classes/entities/comment.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#142) File must end with a newline character
plagiarism/unicheck/classes/entities/extractors/unicheck_extractor_interface.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/entities/extractors/unicheck_rar_extractor.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#118) Expected 1 space before "=>"; 5 found
(#120) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/classes/entities/extractors/unicheck_zip_extractor.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#136) Expected 1 space before "=>"; 5 found
(#138) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/classes/entities/providers/callback_provider.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/entities/providers/config_provider.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/entities/providers/unicheck_comment_provider.class.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#105) File must end with a newline character
plagiarism/unicheck/classes/entities/providers/unicheck_file_provider.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#325) Expected 1 space before "=>"; 3 found
(#351) Expected 1 space before "=>"; 3 found
(#352) Expected 1 space before "=>"; 2 found
plagiarism/unicheck/classes/entities/providers/user_provider.class.php
(#28) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
plagiarism/unicheck/classes/entities/unicheck_archive.class.php
(#38) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/event/abstract_file_event.class.php
(#30) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#59) Expected 1 space before "=>"; 3 found
(#61) Expected 1 space before "=>"; 2 found
(#62) Expected 1 space before "=>"; 4 found
(#81) Expected 1 space before "=>"; 3 found
(#83) Expected 1 space before "=>"; 2 found
(#84) Expected 1 space before "=>"; 4 found
(#85) Expected 1 space before "=>"; 7 found
(#109) File must end with a newline character
plagiarism/unicheck/classes/event/api_called.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#114) Expected 1 space before "=>"; 7 found
(#115) Expected 1 space before "=>"; 7 found
(#116) Expected 1 space before "=>"; 2 found
plagiarism/unicheck/classes/event/api_user_created.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#92) Expected 1 space before "=>"; 6 found
(#93) Expected 1 space before "=>"; 9 found
(#98) File must end with a newline character
plagiarism/unicheck/classes/event/api_user_updated.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#91) Expected 1 space before "=>"; 6 found
(#92) Expected 1 space before "=>"; 9 found
(#94) Expected 1 space before "=>"; 3 found
(#98) File must end with a newline character
plagiarism/unicheck/classes/event/archive_files_checked.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/archive_files_unpacked.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/archive_files_uploaded.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/callback_accepted.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#102) Expected 1 space before "=>"; 2 found
(#108) File must end with a newline character
plagiarism/unicheck/classes/event/error_handled.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#97) File must end with a newline character
plagiarism/unicheck/classes/event/file_similarity_check_completed.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/file_similarity_check_failed.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#100) File must end with a newline character
plagiarism/unicheck/classes/event/file_similarity_check_recalculated.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#80) File must end with a newline character
plagiarism/unicheck/classes/event/file_similarity_check_started.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/file_upload_completed.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/event/file_upload_failed.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#100) File must end with a newline character
plagiarism/unicheck/classes/event/file_upload_started.php
(#31) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#81) File must end with a newline character
plagiarism/unicheck/classes/exception/unicheck_exception.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#71) File must end with a newline character
plagiarism/unicheck/classes/forms/module_form.class.php
(#38) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
plagiarism/unicheck/classes/forms/rules/range_rule.class.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) File must end with a newline character
plagiarism/unicheck/classes/forms/setup_form.class.php
(#36) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
plagiarism/unicheck/classes/helpers/unicheck_check_helper.class.php
(#42) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#128) Expected 1 space before "=>"; 3 found
(#134) Expected 1 space before "=>"; 4 found
(#135) Expected 1 space before "=>"; 6 found
(#223) File must end with a newline character
plagiarism/unicheck/classes/helpers/unicheck_linkarray.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/helpers/unicheck_progress.class.php
(#36) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#85) Expected 1 space before "=>"; 2 found
(#86) Expected 1 space before "=>"; 4 found
(#88) Expected 1 space before "=>"; 2 found
(#265) File must end with a newline character
plagiarism/unicheck/classes/helpers/unicheck_response.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#169) File must end with a newline character
plagiarism/unicheck/classes/helpers/unicheck_stored_file.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#67) File must end with a newline character
plagiarism/unicheck/classes/helpers/unicheck_translate.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) File must end with a newline character
plagiarism/unicheck/classes/helpers/unicheck_upload_helper.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#85) File must end with a newline character
plagiarism/unicheck/classes/observer.php
(#27) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
plagiarism/unicheck/classes/observers/abstract_observer.class.php
(#36) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#163) File must end with a newline character
plagiarism/unicheck/classes/observers/assessable_observer.class.php
(#36) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#94) File must end with a newline character
plagiarism/unicheck/classes/observers/course_observer.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/observers/event_validator.class.php
(#27) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
plagiarism/unicheck/classes/observers/file_observer.class.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#69) File must end with a newline character
plagiarism/unicheck/classes/observers/online_text_observer.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/observers/quiz_observer.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/observers/submission_observer.class.php
(#36) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#146) File must end with a newline character
plagiarism/unicheck/classes/observers/user_observer.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/observers/workshop_observer.class.php
(#36) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#117) File must end with a newline character
plagiarism/unicheck/classes/permissions/capability.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/plagiarism/unicheck_archive_item_file.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#94) Expected 1 space before "=>"; 9 found
(#95) Expected 1 space before "=>"; 5 found
(#108) Expected 1 space before "=>"; 9 found
(#109) Expected 1 space before "=>"; 5 found
(#111) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/classes/plagiarism/unicheck_file.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) Expected 1 space before "=>"; 59 found
(#56) Expected 1 space before "=>"; 35 found
(#57) Expected 1 space before "=>"; 27 found
(#58) Expected 1 space before "=>"; 56 found
(#59) Expected 1 space before "=>"; 3 found
(#60) Expected 1 space before "=>"; 65 found
(#61) Expected 1 space before "=>"; 64 found
(#62) Expected 1 space before "=>"; 66 found
(#63) Expected 1 space before "=>"; 64 found
(#64) Expected 1 space before "=>"; 61 found
(#65) Expected 1 space before "=>"; 57 found
(#66) Expected 1 space before "=>"; 59 found
(#67) Expected 1 space before "=>"; 52 found
(#68) Expected 1 space before "=>"; 55 found
(#70) Expected 1 space before "=>"; 40 found
(#105) Expected 1 space before "=>"; 9 found
(#106) Expected 1 space before "=>"; 5 found
(#119) Expected 1 space before "=>"; 9 found
(#120) Expected 1 space before "=>"; 5 found
(#122) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/classes/privacy/provider.php
(#77) Method name "_get_metadata" should not be prefixed with an underscore to indicate visibility
(#85) Expected 1 space before "=>"; 13 found
(#86) Expected 1 space before "=>"; 9 found
(#87) Expected 1 space before "=>"; 11 found
(#88) Expected 1 space before "=>"; 11 found
(#89) Expected 1 space before "=>"; 15 found
(#90) Expected 1 space before "=>"; 4 found
(#91) Expected 1 space before "=>"; 12 found
(#92) Expected 1 space before "=>"; 6 found
(#93) Expected 1 space before "=>"; 6 found
(#94) Expected 1 space before "=>"; 3 found
(#95) Expected 1 space before "=>"; 14 found
(#97) Expected 1 space before "=>"; 11 found
(#105) Expected 1 space before "=>"; 10 found
(#107) Expected 1 space before "=>"; 3 found
(#115) Expected 1 space before "=>"; 4 found
(#116) Expected 1 space before "=>"; 6 found
(#118) Expected 1 space before "=>"; 3 found
(#119) Expected 1 space before "=>"; 2 found
(#126) Expected 1 space before "=>"; 8 found
(#127) Expected 1 space before "=>"; 8 found
(#128) Expected 1 space before "=>"; 5 found
(#130) Expected 1 space before "=>"; 2 found
(#131) Expected 1 space before "=>"; 5 found
(#132) Expected 1 space before "=>"; 4 found
(#133) Expected 1 space before "=>"; 6 found
(#134) Expected 1 space before "=>"; 6 found
(#135) Expected 1 space before "=>"; 2 found
(#148) Method name "_get_contexts_for_userid" should not be prefixed with an underscore to indicate visibility
(#151) Expected 1 space before "=>"; 7 found
(#174) Method name "_export_plagiarism_user_data" should not be prefixed with an underscore to indicate visibility
(#201) Method name "_delete_plagiarism_for_context" should not be prefixed with an underscore to indicate visibility
(#213) Method name "_delete_plagiarism_for_user" should not be prefixed with an underscore to indicate visibility
(#288) Expected 1 space before "=>"; 4 found
(#289) Expected 1 space before "=>"; 6 found
(#346) Expected 1 space before "=>"; 17 found
(#347) Expected 1 space before "=>"; 9 found
(#348) Expected 1 space before "=>"; 11 found
(#349) Expected 1 space before "=>"; 11 found
(#350) Expected 1 space before "=>"; 15 found
(#351) Expected 1 space before "=>"; 4 found
(#352) Expected 1 space before "=>"; 12 found
(#353) Expected 1 space before "=>"; 6 found
(#354) Expected 1 space before "=>"; 6 found
(#355) Expected 1 space before "=>"; 3 found
(#356) Expected 1 space before "=>"; 14 found
(#358) Expected 1 space before "=>"; 11 found
plagiarism/unicheck/classes/services/api/api_regions.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#61) Expected 1 space before "=>"; 6 found
(#62) Expected 1 space before "=>"; 3 found
(#72) Expected 1 space before "=>"; 6 found
(#73) Expected 1 space before "=>"; 3 found
(#121) File must end with a newline character
plagiarism/unicheck/classes/services/api/integration_api.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#60) Expected 1 space before "=>"; 5 found
(#65) File must end with a newline character
plagiarism/unicheck/classes/services/api/unicheck_check_api.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#86) File must end with a newline character
plagiarism/unicheck/classes/services/api/unicheck_file_api.class.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#77) Expected 1 space before "=>"; 2 found
(#114) File must end with a newline character
plagiarism/unicheck/classes/services/availability_check/availability_check_results.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#238) File must end with a newline character
plagiarism/unicheck/classes/services/comments/commentable_interface.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) File must end with a newline character
plagiarism/unicheck/classes/services/comments/commentable_type.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) File must end with a newline character
plagiarism/unicheck/classes/services/report/unicheck_url.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#98) File must end with a newline character
plagiarism/unicheck/classes/services/storage/file_error_code.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#101) File must end with a newline character
plagiarism/unicheck/classes/services/storage/filesize_checker.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#92) File must end with a newline character
plagiarism/unicheck/classes/services/storage/interfaces/pluginfile_url_interface.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) File must end with a newline character
plagiarism/unicheck/classes/services/storage/pluginfile_url.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#120) File must end with a newline character
plagiarism/unicheck/classes/services/storage/unicheck_file_metadata.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#78) File must end with a newline character
plagiarism/unicheck/classes/services/storage/unicheck_file_state.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#66) File must end with a newline character
plagiarism/unicheck/classes/table/debugging/batch_operations_form.class.php
(#34) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#117) File must end with a newline character
plagiarism/unicheck/classes/table/debugging/debugging_table.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#323) Expected 1 space before "=>"; 2 found
(#324) Expected 1 space before "=>"; 6 found
(#388) File must end with a newline character
plagiarism/unicheck/classes/table/debugging/filter_options_form.class.php
(#35) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#64) Expected 1 space before "=>"; 2 found
(#65) Expected 1 space before "=>"; 2 found
(#66) Expected 1 space before "=>"; 2 found
(#75) Expected 1 space before "=>"; 2 found
(#76) Expected 1 space before "=>"; 2 found
(#121) Expected 1 space before "=>"; 11 found
(#122) Expected 1 space before "=>"; 6 found
(#124) Expected 1 space before "=>"; 3 found
(#138) Expected 1 space before "=>"; 11 found
(#139) Expected 1 space before "=>"; 6 found
(#141) Expected 1 space before "=>"; 3 found
(#168) File must end with a newline character
plagiarism/unicheck/classes/table/debugging/unicheck_status_recheck_form.class.php
(#32) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#65) File must end with a newline character
plagiarism/unicheck/classes/table/debugging/unicheck_status_table.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#338) File must end with a newline character
plagiarism/unicheck/classes/task/sync_frozen_task.php
(#34) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#80) Expected 1 space before "=>"; 2 found
(#211) Logical operator "or" is prohibited; use "||" instead
(#211) Logical operator "and" is prohibited; use "&&" instead
(#214) Expected 1 space before "=>"; 3 found
(#232) File must end with a newline character
plagiarism/unicheck/classes/task/unicheck_abstract_task.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#83) File must end with a newline character
plagiarism/unicheck/classes/task/unicheck_bulk_check_assign_files.class.php
(#34) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#132) File must end with a newline character
plagiarism/unicheck/classes/task/unicheck_check_starter.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#92) File must end with a newline character
plagiarism/unicheck/classes/task/unicheck_upload_task.class.php
(#41) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#148) Expected 1 space before "=>"; 16 found
plagiarism/unicheck/classes/unicheck_adhoc.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#76) Expected 1 space before "=>"; 5 found
(#96) File must end with a newline character
plagiarism/unicheck/classes/unicheck_api.class.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#134) Expected 1 space before "=>"; 17 found
(#135) Expected 1 space before "=>"; 19 found
(#136) Expected 1 space before "=>"; 19 found
(#137) Expected 1 space before "=>"; 11 found
(#143) Expected 1 space before "=>"; 8 found
(#162) Expected 1 space before "=>"; 6 found
(#163) Expected 1 space before "=>"; 3 found
(#194) Expected 1 space before "=>"; 9 found
(#195) Expected 1 space before "=>"; 6 found
(#197) Expected 1 space before "=>"; 6 found
(#300) Expected 1 space before "=>"; 5 found
(#302) Expected 1 space before "=>"; 2 found
(#365) Expected 1 space before "=>"; 6 found
plagiarism/unicheck/classes/unicheck_api_request.class.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#177) Expected 1 space before "=>"; 8 found
plagiarism/unicheck/classes/unicheck_assign.class.php
(#35) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#197) File must end with a newline character
plagiarism/unicheck/classes/unicheck_callback.class.php
(#34) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#201) File must end with a newline character
plagiarism/unicheck/classes/unicheck_core.class.php
(#39) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#194) Expected 1 space before "=>"; 3 found
(#195) Expected 1 space before "=>"; 3 found
(#235) Expected 1 space before "=>"; 2 found
(#237) Expected 1 space before "=>"; 4 found
(#238) Expected 1 space before "=>"; 2 found
(#239) Expected 1 space before "=>"; 2 found
(#240) Expected 1 space before "=>"; 4 found
(#241) Expected 1 space before "=>"; 3 found
(#242) Expected 1 space before "=>"; 4 found
(#325) Expected 1 space before "=>"; 5 found
(#327) Expected 1 space before "=>"; 2 found
(#328) Expected 1 space before "=>"; 5 found
(#376) Expected 1 space before "=>"; 9 found
(#377) Expected 1 space before "=>"; 5 found
plagiarism/unicheck/classes/unicheck_language.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Expected 1 space before "=>"; 4 found
(#45) Expected 1 space before "=>"; 4 found
(#48) Expected 1 space before "=>"; 4 found
(#49) Expected 1 space before "=>"; 4 found
(#50) Expected 1 space before "=>"; 4 found
(#51) Expected 1 space before "=>"; 4 found
(#95) File must end with a newline character
plagiarism/unicheck/classes/unicheck_notification.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#130) File must end with a newline character
plagiarism/unicheck/classes/unicheck_plagiarism_entity.class.php
(#35) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/classes/unicheck_settings.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#126) Expected 1 space before "=>"; 32 found
(#128) Expected 1 space before "=>"; 19 found
(#129) Expected 1 space before "=>"; 25 found
(#130) Expected 1 space before "=>"; 23 found
(#131) Expected 1 space before "=>"; 30 found
(#132) Expected 1 space before "=>"; 30 found
(#133) Expected 1 space before "=>"; 29 found
(#134) Expected 1 space before "=>"; 29 found
(#135) Expected 1 space before "=>"; 28 found
(#136) Expected 1 space before "=>"; 14 found
(#137) Expected 1 space before "=>"; 28 found
(#144) Expected 1 space before "=>"; 32 found
(#146) Expected 1 space before "=>"; 19 found
(#147) Expected 1 space before "=>"; 25 found
(#148) Expected 1 space before "=>"; 23 found
(#149) Expected 1 space before "=>"; 30 found
(#150) Expected 1 space before "=>"; 30 found
(#151) Expected 1 space before "=>"; 29 found
(#152) Expected 1 space before "=>"; 28 found
(#153) Expected 1 space before "=>"; 14 found
(#154) Expected 1 space before "=>"; 28 found
plagiarism/unicheck/classes/unicheck_workshop.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#78) File must end with a newline character
plagiarism/unicheck/classes/user/preferences.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#62) File must end with a newline character
plagiarism/unicheck/constants.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/db/access.php
(#24) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#29) Expected 1 space before "=>"; 39 found
(#30) Expected 1 space before "=>"; 6 found
(#32) Expected 1 space before "=>"; 3 found
(#34) Expected 1 space before "=>"; 8 found
(#35) Expected 1 space before "=>"; 2 found
(#38) Expected 1 space before "=>"; 31 found
(#39) Expected 1 space before "=>"; 2 found
(#40) Expected 1 space before "=>"; 6 found
(#42) Expected 1 space before "=>"; 3 found
(#44) Expected 1 space before "=>"; 8 found
(#45) Expected 1 space before "=>"; 8 found
(#46) Expected 1 space before "=>"; 2 found
(#49) Expected 1 space before "=>"; 35 found
(#50) Expected 1 space before "=>"; 2 found
(#51) Expected 1 space before "=>"; 6 found
(#53) Expected 1 space before "=>"; 3 found
(#55) Expected 1 space before "=>"; 8 found
(#56) Expected 1 space before "=>"; 8 found
(#57) Expected 1 space before "=>"; 2 found
(#60) Expected 1 space before "=>"; 31 found
(#61) Expected 1 space before "=>"; 2 found
(#62) Expected 1 space before "=>"; 6 found
(#64) Expected 1 space before "=>"; 3 found
(#66) Expected 1 space before "=>"; 8 found
(#67) Expected 1 space before "=>"; 8 found
(#68) Expected 1 space before "=>"; 2 found
(#71) Expected 1 space before "=>"; 36 found
(#72) Expected 1 space before "=>"; 2 found
(#73) Expected 1 space before "=>"; 6 found
(#75) Expected 1 space before "=>"; 3 found
(#77) Expected 1 space before "=>"; 8 found
(#78) Expected 1 space before "=>"; 8 found
(#81) Expected 1 space before "=>"; 36 found
(#82) Expected 1 space before "=>"; 2 found
(#83) Expected 1 space before "=>"; 6 found
(#85) Expected 1 space before "=>"; 3 found
(#87) Expected 1 space before "=>"; 8 found
(#88) Expected 1 space before "=>"; 8 found
(#91) Expected 1 space before "=>"; 18 found
(#92) Expected 1 space before "=>"; 2 found
(#93) Expected 1 space before "=>"; 6 found
(#95) Expected 1 space before "=>"; 3 found
(#97) Expected 1 space before "=>"; 8 found
(#98) Expected 1 space before "=>"; 8 found
(#99) Expected 1 space before "=>"; 2 found
(#103) Expected 1 space before "=>"; 2 found
(#104) Expected 1 space before "=>"; 6 found
(#106) Expected 1 space before "=>"; 3 found
(#108) Expected 1 space before "=>"; 8 found
(#109) Expected 1 space before "=>"; 8 found
(#110) Expected 1 space before "=>"; 2 found
(#113) Expected 1 space before "=>"; 10 found
(#114) Expected 1 space before "=>"; 2 found
(#115) Expected 1 space before "=>"; 6 found
(#117) Expected 1 space before "=>"; 3 found
(#119) Expected 1 space before "=>"; 8 found
(#120) Expected 1 space before "=>"; 8 found
(#121) Expected 1 space before "=>"; 2 found
(#124) Expected 1 space before "=>"; 12 found
(#125) Expected 1 space before "=>"; 2 found
(#126) Expected 1 space before "=>"; 6 found
(#128) Expected 1 space before "=>"; 3 found
(#130) Expected 1 space before "=>"; 8 found
(#131) Expected 1 space before "=>"; 8 found
(#132) Expected 1 space before "=>"; 2 found
(#135) Expected 1 space before "=>"; 11 found
(#136) Expected 1 space before "=>"; 2 found
(#137) Expected 1 space before "=>"; 6 found
(#139) Expected 1 space before "=>"; 3 found
(#141) Expected 1 space before "=>"; 8 found
(#142) Expected 1 space before "=>"; 8 found
(#143) Expected 1 space before "=>"; 2 found
(#146) Expected 1 space before "=>"; 17 found
(#147) Expected 1 space before "=>"; 2 found
(#148) Expected 1 space before "=>"; 6 found
(#150) Expected 1 space before "=>"; 3 found
(#152) Expected 1 space before "=>"; 8 found
(#153) Expected 1 space before "=>"; 8 found
(#154) Expected 1 space before "=>"; 2 found
(#157) Expected 1 space before "=>"; 16 found
(#158) Expected 1 space before "=>"; 2 found
(#159) Expected 1 space before "=>"; 6 found
(#161) Expected 1 space before "=>"; 3 found
(#163) Expected 1 space before "=>"; 8 found
(#164) Expected 1 space before "=>"; 8 found
(#165) Expected 1 space before "=>"; 2 found
(#168) Expected 1 space before "=>"; 16 found
(#169) Expected 1 space before "=>"; 2 found
(#170) Expected 1 space before "=>"; 6 found
(#172) Expected 1 space before "=>"; 3 found
(#174) Expected 1 space before "=>"; 8 found
(#175) Expected 1 space before "=>"; 8 found
(#176) Expected 1 space before "=>"; 2 found
(#179) Expected 1 space before "=>"; 16 found
(#180) Expected 1 space before "=>"; 2 found
(#181) Expected 1 space before "=>"; 6 found
(#183) Expected 1 space before "=>"; 3 found
(#185) Expected 1 space before "=>"; 8 found
(#186) Expected 1 space before "=>"; 8 found
(#187) Expected 1 space before "=>"; 2 found
(#190) Expected 1 space before "=>"; 15 found
(#191) Expected 1 space before "=>"; 2 found
(#192) Expected 1 space before "=>"; 6 found
(#194) Expected 1 space before "=>"; 3 found
(#196) Expected 1 space before "=>"; 8 found
(#197) Expected 1 space before "=>"; 8 found
(#198) Expected 1 space before "=>"; 2 found
(#201) Expected 1 space before "=>"; 3 found
(#202) Expected 1 space before "=>"; 2 found
(#203) Expected 1 space before "=>"; 6 found
(#205) Expected 1 space before "=>"; 3 found
(#207) Expected 1 space before "=>"; 8 found
(#208) Expected 1 space before "=>"; 8 found
(#209) Expected 1 space before "=>"; 2 found
(#212) Expected 1 space before "=>"; 15 found
(#213) Expected 1 space before "=>"; 2 found
(#214) Expected 1 space before "=>"; 6 found
(#216) Expected 1 space before "=>"; 3 found
(#218) Expected 1 space before "=>"; 8 found
(#219) Expected 1 space before "=>"; 8 found
(#220) Expected 1 space before "=>"; 2 found
plagiarism/unicheck/db/caches.php
(#24) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#30) Expected 1 space before "=>"; 19 found
(#31) Expected 1 space before "=>"; 13 found
(#32) Expected 1 space before "=>"; 13 found
(#33) Expected 1 space before "=>"; 5 found
plagiarism/unicheck/db/events.php
(#24) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#34) Expected 1 space before "=>"; 2 found
(#38) Expected 1 space before "=>"; 2 found
(#42) Expected 1 space before "=>"; 2 found
(#46) Expected 1 space before "=>"; 2 found
(#50) Expected 1 space before "=>"; 2 found
(#54) Expected 1 space before "=>"; 2 found
(#58) Expected 1 space before "=>"; 2 found
(#62) Expected 1 space before "=>"; 2 found
(#66) Expected 1 space before "=>"; 2 found
(#70) Expected 1 space before "=>"; 2 found
(#74) Expected 1 space before "=>"; 2 found
(#78) Expected 1 space before "=>"; 2 found
plagiarism/unicheck/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#60) File must end with a newline character
plagiarism/unicheck/db/tasks.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#33) Expected 1 space before "=>"; 2 found
(#34) Expected 1 space before "=>"; 4 found
(#35) Expected 1 space before "=>"; 6 found
(#36) Expected 1 space before "=>"; 7 found
(#38) Expected 1 space before "=>"; 5 found
(#39) Expected 1 space before "=>"; 2 found
(#41) File must end with a newline character
plagiarism/unicheck/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/debugging.php
(#62) Expected 1 space before "=>"; 7 found
(#64) Expected 1 space before "=>"; 3 found
(#103) Expected 1 space before "=>"; 5 found
(#159) File must end with a newline character
plagiarism/unicheck/default_settings.php
(#100) File must end with a newline character
plagiarism/unicheck/lib.php
(#37) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#356) Expected 1 space before "=>"; 6 found
(#357) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/library/OAuth/DataStore/OAuthTrivialStore.class.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#137) File must end with a newline character
plagiarism/unicheck/library/OAuth/OAuthBody.class.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#135) File must end with a newline character
plagiarism/unicheck/library/OAuth/OAuthConsumer.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#66) File must end with a newline character
plagiarism/unicheck/library/OAuth/OAuthDataStoreInterface.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/library/OAuth/OAuthException.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) File must end with a newline character
plagiarism/unicheck/library/OAuth/OAuthRequest.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#146) Expected 1 space before "=>"; 6 found
(#147) Expected 1 space before "=>"; 8 found
(#148) Expected 1 space before "=>"; 4 found
plagiarism/unicheck/library/OAuth/OAuthServer.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
plagiarism/unicheck/library/OAuth/OAuthToken.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#81) File must end with a newline character
plagiarism/unicheck/library/OAuth/OAuthUtil.class.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#227) File must end with a newline character
plagiarism/unicheck/library/OAuth/Signature/OAuthSignatureMethod.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#75) File must end with a newline character
plagiarism/unicheck/library/OAuth/Signature/OAuthSignatureMethod_HMAC_SHA1.class.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#79) File must end with a newline character
plagiarism/unicheck/reports.php
(#76) Expected 1 space before "=>"; 3 found
(#77) Expected 1 space before "=>"; 2 found
(#86) Expected 1 space before "=>"; 3 found
(#96) Expected 1 space before "=>"; 3 found
(#104) Expected 1 space before "=>"; 3 found
(#161) File must end with a newline character
plagiarism/unicheck/reset.php
(#62) File must end with a newline character
plagiarism/unicheck/tests/advanced_test.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#46) PHPUnit testcase name "plagiarism_unicheck_advanced_testcase" does not match file name "advanced_test"
(#46) PHPUnit class "plagiarism_unicheck_advanced_testcase" does not have any namespace. It is recommended to add it to the "plagiarism_unicheck" namespace, using more levels if needed, in order to match the code being tested
(#153) Test method test_create_ucore() is missing any coverage information, own or at class level
plagiarism/unicheck/tests/fixtures/unicheck_api_fixture.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#54) Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $format is optional, while parameter $cmid is required.
(#54) Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $format is optional, while parameter $internalfile is required.
(#57) Expected 1 space before "=>"; 9 found
(#58) Expected 1 space before "=>"; 9 found
(#59) Expected 1 space before "=>"; 11 found
(#60) Expected 1 space before "=>"; 16 found
(#61) Expected 1 space before "=>"; 14 found
(#62) Expected 1 space before "=>"; 14 found
(#63) Expected 1 space before "=>"; 14 found
(#64) Expected 1 space before "=>"; 7 found
(#65) Expected 1 space before "=>"; 7 found
(#67) Expected 1 space before "=>"; 12 found
(#68) Expected 1 space before "=>"; 12 found
(#69) Expected 1 space before "=>"; 6 found
(#74) File must end with a newline character
plagiarism/unicheck/tests/generator/lib.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#76) Expected 1 space before "=>"; 2 found
(#77) Expected 1 space before "=>"; 4 found
(#78) Expected 1 space before "=>"; 2 found
(#79) Expected 1 space before "=>"; 2 found
(#80) Expected 1 space before "=>"; 4 found
(#137) Expected 1 space before "=>"; 29 found
(#138) Expected 1 space before "=>"; 7 found
plagiarism/unicheck/tests/privacy/provider_test.php
(#45) PHPUnit testcase name "plagiarism_unicheck_privacy_provider_testcase" does not match file name "provider_test"
(#45) PHPUnit class "plagiarism_unicheck_privacy_provider_testcase" does not have any namespace. It is recommended to add it to the "plagiarism_unicheck" namespace, using more levels if needed, in order to match the code being tested
(#49) Test method test_get_metadata() is missing any coverage information, own or at class level
(#118) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#147) Test method test_export_plagiarism_user_data() is missing any coverage information, own or at class level
(#180) Test method test_delete_plagiarism_for_context() is missing any coverage information, own or at class level
(#209) Test method test_delete_plagiarism_for_user() is missing any coverage information, own or at class level
(#233) Test method test_delete_plagiarism_for_users() is missing any coverage information, own or at class level
(#278) File must end with a newline character
plagiarism/unicheck/tests/service_storage_file_state_test.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#41) PHPUnit testcase name "plagiarism_unicheck_basic_testcase" does not match file name "service_storage_file_state_test"
(#41) PHPUnit class "plagiarism_unicheck_basic_testcase" does not have any namespace. It is recommended to add it to the "plagiarism_unicheck" namespace, using more levels if needed, in order to match the code being tested
(#45) Test method test_state_exist() is missing any coverage information, own or at class level
(#56) File must end with a newline character
plagiarism/unicheck/tests/upload_task_test.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#48) PHPUnit testcase name "plagiarism_unicheck_upload_task_testcase" does not match file name "upload_task_test"
(#48) PHPUnit class "plagiarism_unicheck_upload_task_testcase" does not have any namespace. It is recommended to add it to the "plagiarism_unicheck" namespace, using more levels if needed, in order to match the code being tested
(#59) Test method test_execute() is missing any coverage information, own or at class level
(#79) Expected 1 space before "=>"; 5 found
(#131) File must end with a newline character
plagiarism/unicheck/track_progress.php
(#138) Expected 1 space before "=>"; 3 found
plagiarism/unicheck/views/view_tabs.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#39) File must end with a newline character
plagiarism/unicheck/views/view_tmpl_can_check.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#53) Expected 1 space before "=>"; 4 found
(#56) Expected 1 space before "=>"; 5 found
(#77) Expected 1 space before "=>"; 5 found
(#79) Expected 1 space before "=>"; 6 found
(#80) Expected 1 space before "=>"; 3 found
(#84) File must end with a newline character
plagiarism/unicheck/views/view_tmpl_invalid_response.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#42) Expected 1 space before "=>"; 5 found
(#44) Expected 1 space before "=>"; 6 found
(#45) Expected 1 space before "=>"; 4 found
(#48) File must end with a newline character
plagiarism/unicheck/views/view_tmpl_processed.php
(#33) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#151) Expected 1 space before "=>"; 8 found
(#152) Expected 1 space before "=>"; 3 found
(#153) Expected 1 space before "=>"; 7 found
(#154) Expected 1 space before "=>"; 3 found
(#155) Expected 1 space before "=>"; 11 found
(#156) Expected 1 space before "=>"; 9 found
(#157) Expected 1 space before "=>"; 9 found
(#158) Expected 1 space before "=>"; 7 found
(#160) Expected 1 space before "=>"; 7 found
(#161) Expected 1 space before "=>"; 3 found
(#162) Expected 1 space before "=>"; 8 found
(#163) Expected 1 space before "=>"; 3 found
(#167) File must end with a newline character
plagiarism/unicheck/views/view_tmpl_progress.php
(#29) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#42) Expected 1 space before "=>"; 5 found
(#66) Expected 1 space before "=>"; 10 found
(#67) Expected 1 space before "=>"; 5 found
(#68) Expected 1 space before "=>"; 7 found
(#69) Expected 1 space before "=>"; 6 found
(#70) Expected 1 space before "=>"; 4 found
(#74) File must end with a newline character
plagiarism/unicheck/views/view_tmpl_unknownwarning.php
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#51) Expected 1 space before "=>"; 4 found
(#52) Expected 1 space before "=>"; 6 found
(#58) Expected 1 space before "=>"; 5 found
(#60) Expected 1 space before "=>"; 6 found
(#61) Expected 1 space before "=>"; 8 found
(#62) Expected 1 space before "=>"; 4 found
(#63) Expected 1 space before "=>"; 7 found
(#64) Expected 1 space before "=>"; 6 found
(#67) File must end with a newline character

Javascript coding style problems

(1 errors, 0 warnings)

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

plagiarism/unicheck/amd/src/activity_form.js
(#4) @package should be empty. (jsdoc/empty-tags)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(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]