Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(0 errors, 287 warnings)

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

local/yumymedia/access_media.php
(#55) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#103) Short array syntax must be used to define arrays
local/yumymedia/check_conversion.php
(#76) Short array syntax must be used to define arrays
local/yumymedia/db/access.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#48) 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
(#61) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
local/yumymedia/db/uninstall.php
(#41) Short array syntax must be used to define arrays
local/yumymedia/delete_media.php
(#61) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
local/yumymedia/lang/en/local_yumymedia.php
(#27) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "yumymedia:search" is not in the correct order, it should be before "yumymedia:view"
(#30) The string key "yumymedia:editmetadata" is not in the correct order, it should be before "yumymedia:search"
(#32) The string key "yumymedia:delete" is not in the correct order, it should be before "yumymedia:upload"
(#34) The string key "yumymedia:clip" is not in the correct order, it should be before "yumymedia:download"
(#36) Unexpected comment found. Auto-fixing will not work after this comment
(#37) The string key "nav_mymedia" is not in the correct order, it should be before "yumymedia:clip"
(#40) Unexpected comment found. Auto-fixing will not work after this comment
(#41) The string key "heading_mymedia" is not in the correct order, it should be before "nav_upload"
(#43) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "edit_link" is not in the correct order, it should be before "share_link"
(#47) The string key "clip_link" is not in the correct order, it should be before "edit_link"
(#50) The string key "access_link" is not in the correct order, it should be before "download_link"
(#52) Unexpected comment found. Auto-fixing will not work after this comment
(#55) Unexpected comment found. Auto-fixing will not work after this comment
(#57) The string key "tab_metadata" is not in the correct order, it should be before "tab_preview"
(#59) The string key "tab_embed" is not in the correct order, it should be before "tab_share"
(#60) The string key "metadata_media_name" is not in the correct order, it should be before "tab_embed"
(#62) The string key "metadata_media_desc" is not in the correct order, it should be before "metadata_media_tags"
(#63) The string key "metadata_media_created" is not in the correct order, it should be before "metadata_media_desc"
(#64) The string key "media_converting" is not in the correct order, it should be before "metadata_media_created"
(#65) The string key "loading" is not in the correct order, it should be before "media_converting"
(#67) The string key "save" is not in the correct order, it should be before "scr_loading"
(#68) The string key "missing_required" is not in the correct order, it should be before "save"
(#69) The string key "error_saving" is not in the correct order, it should be before "missing_required"
(#70) The string key "error_not_owner" is not in the correct order, it should be before "error_saving"
(#72) The string key "success_saving" is not in the correct order, it should be before "success_saving_hdr"
(#73) The string key "failure_saved_hdr" is not in the correct order, it should be before "success_saving"
(#74) The string key "check_all" is not in the correct order, it should be before "failure_saved_hdr"
(#76) The string key "media_error" is not in the correct order, it should be before "site_share"
(#77) The string key "media_bad" is not in the correct order, it should be before "media_error"
(#79) The string key "converting" is not in the correct order, it should be before "media_retrival_error"
(#81) The string key "continue" is not in the correct order, it should be before "internal"
(#83) Unexpected comment found. Auto-fixing will not work after this comment
(#85) The string key "delete_media_hdr" is not in the correct order, it should be before "delete_media_title"
(#86) The string key "delete_media_confirm" is not in the correct order, it should be before "delete_media_hdr"
(#87) The string key "delete_media_complete" is not in the correct order, it should be before "delete_media_confirm"
(#92) Unexpected comment found. Auto-fixing will not work after this comment
(#95) The string key "pc_only" is not in the correct order, it should be before "webcam_upload"
(#98) The string key "category_failed" is not in the correct order, it should be before "session_failed"
(#104) The string key "upload_form_hdr" is not in the correct order, it should be before "webcam_hdr"
(#106) The string key "required_field" is not in the correct order, it should be before "webcam_form_hdr"
(#107) The string key "entryid_header" is not in the correct order, it should be before "required_field"
(#110) The string key "desc_header" is not in the correct order, it should be before "tags_header"
(#111) The string key "created_header" is not in the correct order, it should be before "desc_header"
(#113) The string key "comma_separated" is not in the correct order, it should be before "creatorid_header"
(#116) The string key "fill_form_exp" is not in the correct order, it should be before "webcam_recording_exp"
(#118) The string key "upload_success" is not in the correct order, it should be before "upload_success_hdr"
(#121) Unexpected comment found. Auto-fixing will not work after this comment
(#122) The string key "ok_label" is not in the correct order, it should be before "uploading_header"
(#125) The string key "cancel_label" is not in the correct order, it should be before "upload_label"
(#127) The string key "back_label" is not in the correct order, it should be before "reset_label"
(#130) Unexpected comment found. Auto-fixing will not work after this comment
(#135) Unexpected comment found. Auto-fixing will not work after this comment
(#136) The string key "problem_viewing" is not in the correct order, it should be before "search_text_tooltip"
(#137) The string key "no_medias" is not in the correct order, it should be before "problem_viewing"
(#142) Unexpected comment found. Auto-fixing will not work after this comment
(#143) The string key "sortby" is not in the correct order, it should be before "webcam_disable"
(#144) The string key "mostrecent" is not in the correct order, it should be before "sortby"
(#146) The string key "medianameasc" is not in the correct order, it should be before "oldest"
(#149) Unexpected comment found. Auto-fixing will not work after this comment
(#150) The string key "media_used" is not in the correct order, it should be before "medianamedesc"
(#152) Unexpected comment found. Auto-fixing will not work after this comment
(#153) The string key "access_media_title" is not in the correct order, it should be before "media_used"
(#155) The string key "default_access_control" is not in the correct order, it should be before "default_access_control_failed"
(#157) The string key "access_control" is not in the correct order, it should be before "internal_access_control"
(#159) The string key "heading_link_type" is not in the correct order, it should be before "heading_summary"
(#162) The string key "heading_access_control" is not in the correct order, it should be before "label_page_url"
(#163) The string key "access_media_failed_not_owner" is not in the correct order, it should be before "heading_access_control"
(#166) The string key "accesscontrol_changed" is not in the correct order, it should be before "accesscontrol_updated"
(#168) Unexpected comment found. Auto-fixing will not work after this comment
(#171) The string key "camera_preview" is not in the correct order, it should be before "mimetype"
(#174) The string key "unsupported_browser" is not in the correct order, it should be before "unsupported_camera"
(#176) The string key "now_recording" is not in the correct order, it should be before "unsupported_os"
(#179) The string key "unsupported_filetype" is not in the correct order, it should be before "wrong_filesize"
(#180) The string key "disable_webrtc" is not in the correct order, it should be before "unsupported_filetype"
(#181) The string key "disable_objecturl" is not in the correct order, it should be before "disable_webrtc"
(#186) The string key "wrong_desc" is not in the correct order, it should be before "wrong_tags"
(#188) The string key "uploader_uploading" is not in the correct order, it should be before "wrong_metadata"
(#189) The string key "recorder_uploading" is not in the correct order, it should be before "uploader_uploading"
(#190) The string key "progress" is not in the correct order, it should be before "recorder_uploading"
(#191) The string key "attach_file" is not in the correct order, it should be before "progress"
(#193) Unexpected comment found. Auto-fixing will not work after this comment
local/yumymedia/lib.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#90) Short array syntax must be used to define arrays
local/yumymedia/renderer.php
(#71) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#173) 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
(#200) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#243) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
(#277) Short array syntax must be used to define arrays
(#301) Short array syntax must be used to define arrays
(#325) Short array syntax must be used to define arrays
(#329) Short array syntax must be used to define arrays
(#355) Short array syntax must be used to define arrays
(#376) Short array syntax must be used to define arrays
(#393) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#437) Short array syntax must be used to define arrays
(#439) Short array syntax must be used to define arrays
(#461) Short array syntax must be used to define arrays
(#463) Short array syntax must be used to define arrays
(#499) Short array syntax must be used to define arrays
(#528) Short array syntax must be used to define arrays
(#572) Short array syntax must be used to define arrays
(#593) Short array syntax must be used to define arrays
(#622) Short array syntax must be used to define arrays
(#626) Short array syntax must be used to define arrays
(#629) Short array syntax must be used to define arrays
(#632) Short array syntax must be used to define arrays
(#638) Short array syntax must be used to define arrays
(#656) Short array syntax must be used to define arrays
(#662) Short array syntax must be used to define arrays
(#667) Short array syntax must be used to define arrays
(#676) Short array syntax must be used to define arrays
(#679) Short array syntax must be used to define arrays
(#682) Short array syntax must be used to define arrays
(#700) Short array syntax must be used to define arrays
(#715) Short array syntax must be used to define arrays
(#740) Short array syntax must be used to define arrays
(#765) Short array syntax must be used to define arrays
(#777) Short array syntax must be used to define arrays
(#811) Short array syntax must be used to define arrays
(#814) Short array syntax must be used to define arrays
(#817) Short array syntax must be used to define arrays
(#823) Short array syntax must be used to define arrays
(#837) Short array syntax must be used to define arrays
(#842) Short array syntax must be used to define arrays
(#849) Short array syntax must be used to define arrays
(#858) Short array syntax must be used to define arrays
(#867) Short array syntax must be used to define arrays
(#876) Short array syntax must be used to define arrays
(#904) Short array syntax must be used to define arrays
(#928) Short array syntax must be used to define arrays
(#947) Short array syntax must be used to define arrays
(#950) Short array syntax must be used to define arrays
(#953) Short array syntax must be used to define arrays
(#971) Short array syntax must be used to define arrays
(#980) Short array syntax must be used to define arrays
(#984) Short array syntax must be used to define arrays
(#1048) Short array syntax must be used to define arrays
(#1051) Short array syntax must be used to define arrays
(#1054) Short array syntax must be used to define arrays
(#1057) Short array syntax must be used to define arrays
(#1060) Short array syntax must be used to define arrays
(#1063) Short array syntax must be used to define arrays
(#1066) Short array syntax must be used to define arrays
(#1069) Short array syntax must be used to define arrays
(#1093) Short array syntax must be used to define arrays
(#1096) Short array syntax must be used to define arrays
(#1105) Short array syntax must be used to define arrays
(#1143) Short array syntax must be used to define arrays
(#1152) Short array syntax must be used to define arrays
(#1154) Short array syntax must be used to define arrays
(#1162) Short array syntax must be used to define arrays
(#1184) Short array syntax must be used to define arrays
(#1192) Short array syntax must be used to define arrays
(#1194) Short array syntax must be used to define arrays
(#1230) Short array syntax must be used to define arrays
(#1258) Short array syntax must be used to define arrays
(#1262) Short array syntax must be used to define arrays
(#1275) Short array syntax must be used to define arrays
(#1320) Short array syntax must be used to define arrays
(#1329) Short array syntax must be used to define arrays
(#1335) Short array syntax must be used to define arrays
(#1339) Short array syntax must be used to define arrays
(#1351) Short array syntax must be used to define arrays
(#1382) Short array syntax must be used to define arrays
(#1408) Short array syntax must be used to define arrays
(#1427) Short array syntax must be used to define arrays
(#1442) Short array syntax must be used to define arrays
(#1448) Short array syntax must be used to define arrays
(#1454) Short array syntax must be used to define arrays
(#1473) Short array syntax must be used to define arrays
(#1475) Short array syntax must be used to define arrays
(#1477) Short array syntax must be used to define arrays
(#1480) Short array syntax must be used to define arrays
(#1486) Short array syntax must be used to define arrays
(#1490) Short array syntax must be used to define arrays
(#1493) Short array syntax must be used to define arrays
(#1495) Short array syntax must be used to define arrays
(#1499) Short array syntax must be used to define arrays
(#1508) Short array syntax must be used to define arrays
(#1510) Short array syntax must be used to define arrays
(#1516) Short array syntax must be used to define arrays
(#1518) Short array syntax must be used to define arrays
(#1520) Short array syntax must be used to define arrays
(#1530) Short array syntax must be used to define arrays
(#1532) Short array syntax must be used to define arrays
(#1534) Short array syntax must be used to define arrays
(#1573) Short array syntax must be used to define arrays
(#1579) Short array syntax must be used to define arrays
(#1589) Short array syntax must be used to define arrays
(#1595) Short array syntax must be used to define arrays
(#1602) Short array syntax must be used to define arrays
(#1609) Short array syntax must be used to define arrays
(#1612) Short array syntax must be used to define arrays
(#1619) Short array syntax must be used to define arrays
(#1628) Short array syntax must be used to define arrays
(#1633) Short array syntax must be used to define arrays
(#1644) Short array syntax must be used to define arrays
(#1647) Short array syntax must be used to define arrays
(#1649) Short array syntax must be used to define arrays
(#1651) Short array syntax must be used to define arrays
(#1653) Short array syntax must be used to define arrays
(#1655) Short array syntax must be used to define arrays
(#1657) Short array syntax must be used to define arrays
(#1659) Short array syntax must be used to define arrays
(#1661) Short array syntax must be used to define arrays
(#1664) Short array syntax must be used to define arrays
(#1670) Short array syntax must be used to define arrays
(#1676) Short array syntax must be used to define arrays
(#1692) Short array syntax must be used to define arrays
(#1704) Short array syntax must be used to define arrays
(#1706) Short array syntax must be used to define arrays
(#1751) Short array syntax must be used to define arrays
(#1759) Short array syntax must be used to define arrays
(#1767) Short array syntax must be used to define arrays
(#1775) Short array syntax must be used to define arrays
(#1783) Short array syntax must be used to define arrays
(#1791) Short array syntax must be used to define arrays
(#1799) Short array syntax must be used to define arrays
(#1807) Short array syntax must be used to define arrays
(#1815) Short array syntax must be used to define arrays
(#1840) Short array syntax must be used to define arrays
(#1878) Short array syntax must be used to define arrays
(#1894) Short array syntax must be used to define arrays
local/yumymedia/simple_uploader.php
(#51) Short array syntax must be used to define arrays
local/yumymedia/version.php
(#33) Short array syntax must be used to define arrays
local/yumymedia/webcam_uploader.php
(#50) Short array syntax must be used to define arrays
local/yumymedia/yumymedia.php
(#63) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#188) Short array syntax must be used to define arrays
(#194) Short array syntax must be used to define arrays
(#194) Short array syntax must be used to define arrays
(#195) Short array syntax must be used to define arrays
(#196) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#199) Short array syntax must be used to define arrays
(#200) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#204) Short array syntax must be used to define arrays
(#217) Short array syntax must be used to define arrays

Javascript coding style problems

(1 errors, 39 warnings)

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

local/yumymedia/amd/src/modulerecorder.js
(#54) Do not nest ternary expressions. (no-nested-ternary)
(#64) Do not nest ternary expressions. (no-nested-ternary)
(#359) Unexpected alert. (no-alert)
(#392) Function 'removeVideo' has a complexity of 30. Maximum allowed is 20. (complexity)
(#625) Function 'checkFileType' has a complexity of 25. Maximum allowed is 20. (complexity)
(#657) Function 'getFileExtension' has a complexity of 29. Maximum allowed is 20. (complexity)
(#952) Unexpected alert. (no-alert)
(#962) Unexpected alert. (no-alert)
(#972) Unexpected alert. (no-alert)
(#995) Unexpected alert. (no-alert)
(#1220) Function has a complexity of 24. Maximum allowed is 20. (complexity)
local/yumymedia/amd/src/moduleuploader.js
(#160) Function 'checkFileType' has a complexity of 25. Maximum allowed is 20. (complexity)
(#221) Unexpected alert. (no-alert)
(#319) Unexpected alert. (no-alert)
(#329) Unexpected alert. (no-alert)
(#339) Unexpected alert. (no-alert)
(#362) Unexpected alert. (no-alert)
(#798) Function has a complexity of 24. Maximum allowed is 20. (complexity)
local/yumymedia/amd/src/simpleuploader.js
(#117) Function 'checkFileType' has a complexity of 25. Maximum allowed is 20. (complexity)
(#349) Unexpected alert. (no-alert)
(#359) Unexpected alert. (no-alert)
(#369) Unexpected alert. (no-alert)
(#392) Unexpected alert. (no-alert)
(#634) Function has a complexity of 24. Maximum allowed is 20. (complexity)
(#993) Unexpected alert. (no-alert)
local/yumymedia/amd/src/webcamuploader.js
(#53) Do not nest ternary expressions. (no-nested-ternary)
(#63) Do not nest ternary expressions. (no-nested-ternary)
(#359) Unexpected alert. (no-alert)
(#392) Function 'removeVideo' has a complexity of 30. Maximum allowed is 20. (complexity)
(#619) Function 'checkFileType' has a complexity of 25. Maximum allowed is 20. (complexity)
(#651) Function 'getFileExtension' has a complexity of 29. Maximum allowed is 20. (complexity)
(#917) Unexpected alert. (no-alert)
(#927) Unexpected alert. (no-alert)
(#937) Unexpected alert. (no-alert)
(#961) Unexpected alert. (no-alert)
(#1186) Function has a complexity of 24. Maximum allowed is 20. (complexity)
local/yumymedia/js/yumymedia.js
(#23) Identifier 'local_yumymedia' is not in camel case. (camelcase)
(#117) Identifier 'check_conversion_status' is not in camel case. (camelcase)
(#144) Unnecessary '.call()'. (no-useless-call)
(#144) The Function constructor is eval. (no-new-func)

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

(0 errors, 0 warnings)

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


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]