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

(268 errors, 496 warnings)

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

mod/mediagallery/backup/moodle2/backup_mediagallery_stepslib.php
(#31) Missing docblock for function define_structure
(#37) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#48) There should be a comma after the last array item in a multi-line array.
(#52) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
mod/mediagallery/backup/moodle2/restore_mediagallery_activity_task.class.php
(#57) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
mod/mediagallery/backup/moodle2/restore_mediagallery_stepslib.php
(#35) Missing docblock for function define_structure
(#37) Short array syntax must be used to define arrays
(#65) Missing docblock for function process_mediagallery
(#87) Missing docblock for function process_mediagallery_userfeedback
(#98) Missing docblock for function process_mediagallery_gallery
(#114) Missing docblock for function process_mediagallery_item
(#130) Missing docblock for function process_mediagallery_ctag
(#145) Missing docblock for function process_mediagallery_gtag
(#161) Missing docblock for function process_mediagallery_itag
(#177) Missing docblock for function after_execute
(#182) Short array syntax must be used to define arrays
mod/mediagallery/classes/base.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#29) DocBlock missing a @package tag for class base. Expected @package mod_mediagallery
(#31) Missing docblock for constant base::POS_BOTTOM
(#32) Missing docblock for constant base::POS_TOP
(#33) Missing docblock for constant base::TYPE_AUDIO
(#34) Missing docblock for constant base::TYPE_IMAGE
(#35) Missing docblock for constant base::TYPE_VIDEO
(#36) Missing docblock for constant base::TYPE_ALL
(#38) Missing member variable doc comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#42) Missing docblock for function __construct
(#42) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#61) Missing docblock for function __get
(#68) Missing docblock for function __isset
(#84) Short array syntax must be used to define arrays
(#93) Missing docblock for function delete
(#93) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#102) Missing docblock for function get_context
(#103) Missing docblock for function user_can_remove
(#123) Missing docblock for function set_tags
(#141) Missing docblock for function set_option
(#159) Short array syntax must be used to define arrays
(#178) Missing docblock for function is_thebox_creator_or_agent
(#185) Short array syntax must be used to define arrays
mod/mediagallery/classes/collection.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#37) DocBlock missing a @package tag for class collection. Expected @package mod_mediagallery
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#41) Missing member variable doc comment
(#41) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#44) Missing member variable doc comment
(#45) Missing member variable doc comment
(#46) Missing member variable doc comment
(#47) Missing member variable doc comment
(#49) Missing docblock for function __construct
(#49) Short array syntax must be used to define arrays
(#82) Missing docblock for function delete
(#82) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#126) Missing docblock for function get_context
(#130) Missing docblock for function get_my_galleries
(#137) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#187) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#190) Short array syntax must be used to define arrays
(#217) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#242) Short array syntax must be used to define arrays
(#252) Missing docblock for function count_galleries
(#254) Short array syntax must be used to define arrays
(#266) Short array syntax must be used to define arrays
(#267) Short array syntax must be used to define arrays
(#273) Short array syntax must be used to define arrays
(#278) Missing docblock for function get_public_galleries_by_contextid
(#283) Short array syntax must be used to define arrays
(#285) Short array syntax must be used to define arrays
(#289) Short array syntax must be used to define arrays
(#295) Short array syntax must be used to define arrays
(#305) Short array syntax must be used to define arrays
(#315) Missing docblock for function get_my_galleries_by_contextid
(#320) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
(#351) Short array syntax must be used to define arrays
(#374) Short array syntax must be used to define arrays
(#407) Short array syntax must be used to define arrays
(#453) Missing docblock for function was_deleted
(#457) Missing docblock for function sync
(#478) Short array syntax must be used to define arrays
(#489) Short array syntax must be used to define arrays
(#502) Missing docblock for function user_can_remove
(#554) Missing docblock for function get_group_gallery_counts
mod/mediagallery/classes/event/collection_deleted.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
mod/mediagallery/classes/event/course_module_viewed.php
(#59) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/gallery_created.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/gallery_deleted.php
(#78) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/gallery_updated.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/gallery_viewed.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/item_created.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/item_deleted.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/event/item_updated.php
(#53) Missing docblock for function get_description
(#58) Missing docblock for function get_name
(#68) Short array syntax must be used to define arrays
mod/mediagallery/classes/export_form.php
(#32) Missing docblock for class export_form
mod/mediagallery/classes/file_info.php
(#68) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
mod/mediagallery/classes/file_info_area_gallery.php
(#34) Missing member variable doc comment
(#36) Missing docblock for function __construct
(#52) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
mod/mediagallery/classes/form/search.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class search
(#24) Missing docblock for function definition
(#36) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
mod/mediagallery/classes/gallery.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#36) DocBlock missing a @package tag for class gallery. Expected @package mod_mediagallery
(#38) Missing docblock for constant gallery::VIEW_CAROUSEL
(#39) Missing docblock for constant gallery::VIEW_GRID
(#41) Missing member variable doc comment
(#42) Missing member variable doc comment
(#43) Missing member variable doc comment
(#44) Missing member variable doc comment
(#46) Missing docblock for function __construct
(#46) Short array syntax must be used to define arrays
(#54) Missing docblock for function can_comment
(#64) Missing docblock for function can_like
(#72) Missing docblock for function copy
(#74) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#100) Missing docblock for function create
(#109) Short array syntax must be used to define arrays
(#125) Missing docblock for function delete
(#125) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#189) Missing docblock for function get_collection
(#196) Missing docblock for function get_context
(#226) Missing docblock for function get_items
(#242) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
(#258) Short array syntax must be used to define arrays
(#263) Short array syntax must be used to define arrays
(#299) Short array syntax must be used to define arrays
(#315) Missing docblock for function get_metainfo
(#320) Missing docblock for function has_items
(#325) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#354) Short array syntax must be used to define arrays
(#358) Missing docblock for function moral_rights_asserted
(#361) Short array syntax must be used to define arrays
(#375) Missing docblock for function sync
(#379) Missing docblock for function update_sortorder
(#382) Short array syntax must be used to define arrays
(#391) Short array syntax must be used to define arrays
(#416) Missing docblock for function user_can_contribute
(#473) Missing docblock for function user_can_remove
(#487) Missing docblock for function user_can_view
mod/mediagallery/classes/imagehelper.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class imagehelper
(#43) Missing docblock for function mirror
mod/mediagallery/classes/item.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#27) DocBlock missing a @package tag for class item. Expected @package mod_mediagallery
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#35) You must use "/**" style comments for a member variable comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#38) Short array syntax must be used to define arrays
(#45) Missing docblock for function __construct
(#45) Short array syntax must be used to define arrays
(#70) Missing docblock for function copy
(#79) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#102) Missing docblock for function create
(#118) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#135) Missing docblock for function create_from_archive
(#135) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#174) 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.
(#212) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#237) Missing docblock for function delete_all_by_gallery
(#241) Short array syntax must be used to define arrays
(#260) Short array syntax must be used to define arrays
(#261) Short array syntax must be used to define arrays
(#265) Missing docblock for function generate_thumbnail
(#265) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $storedfile.
(#269) Missing docblock for function generate_image_by_type
(#269) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $file.
(#285) Short array syntax must be used to define arrays
(#314) Missing docblock for function get_image_resized
(#314) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $file.
(#392) Short array syntax must be used to define arrays
(#446) Missing docblock for function get_context
(#459) Missing docblock for function get_embed_url
(#477) Missing docblock for function get_file
(#492) Missing docblock for function get_stored_file_by_type
(#510) Missing docblock for function get_metainfo
(#528) Missing docblock for function get_structured_metainfo
(#531) Short array syntax must be used to define arrays
(#546) Short array syntax must be used to define arrays
(#564) Short array syntax must be used to define arrays
(#571) Short array syntax must be used to define arrays
(#572) Short array syntax must be used to define arrays
(#573) Short array syntax must be used to define arrays
(#584) Missing docblock for function get_youtube_videoid
(#599) Missing docblock for function get_source
(#609) Missing docblock for function get_image_url
(#652) Missing docblock for function get_box_url
(#656) Missing docblock for function get_image_url_by_type
(#714) Missing docblock for function get_like_count
(#717) Short array syntax must be used to define arrays
(#723) Missing docblock for function get_socialinfo
(#730) Short array syntax must be used to define arrays
(#760) Missing docblock for function get_userfeedback
(#762) Short array syntax must be used to define arrays
(#765) Missing docblock for function file_icon
(#777) Missing docblock for function like
(#788) Short array syntax must be used to define arrays
(#816) Short array syntax must be used to define arrays
(#830) Short array syntax must be used to define arrays
(#838) Short array syntax must be used to define arrays
(#846) Missing docblock for function unlike
(#863) Missing docblock for function update
(#872) Short array syntax must be used to define arrays
(#880) Missing docblock for function user_can_edit
(#906) Missing docblock for function user_can_remove
(#919) Missing docblock for function thebox_processed
mod/mediagallery/classes/mcsearch.php
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#42) Missing docblock for function __construct
(#46) Missing docblock for function get_results
(#48) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#164) Short array syntax must be used to define arrays
(#188) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#218) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
mod/mediagallery/classes/output/collection/renderable.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class renderable
(#21) Missing member variable doc comment
(#22) Missing member variable doc comment
(#22) Short array syntax must be used to define arrays
(#23) Missing member variable doc comment
(#24) Missing member variable doc comment
(#25) Missing member variable doc comment
(#26) Missing member variable doc comment
(#27) Missing member variable doc comment
(#30) You must use "/**" style comments for a member variable comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#37) You must use "/**" style comments for a member variable comment
(#38) Missing member variable doc comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#42) Missing docblock for function __construct
(#62) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
mod/mediagallery/classes/output/gallery/renderable.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class renderable
(#20) Missing docblock for constant renderable::MEDIASIZE_SM
(#21) Missing docblock for constant renderable::MEDIASIZE_MD
(#22) Missing docblock for constant renderable::MEDIASIZE_LG
(#24) Missing member variable doc comment
(#26) Missing member variable doc comment
(#27) Missing member variable doc comment
(#28) Missing member variable doc comment
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#32) Short array syntax must be used to define arrays
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#37) Missing docblock for function __construct
(#37) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
mod/mediagallery/classes/output/searchresults/renderable.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class renderable
(#21) Missing member variable doc comment
(#21) Short array syntax must be used to define arrays
(#22) Missing member variable doc comment
(#23) Missing member variable doc comment
(#24) Missing member variable doc comment
(#25) Missing member variable doc comment
(#27) Missing docblock for function __construct
mod/mediagallery/classes/privacy/provider.php
(#17) Missing @copyright tag
(#58) There must not be a space before the colon in a return type declaration
(#127) There must not be a space before the colon in a return type declaration
(#188) There should be a comma after the last array item in a multi-line array.
(#210) Missing docblock for function export_gallery_data
(#245) Missing docblock for function export_all_items
(#429) Missing docblock for function export_user_preferences
(#534) Missing docblock for function get_mediagallery_id_from_context
mod/mediagallery/classes/privacy/subcontext_info.php
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#45) There must not be a space before the colon in a return type declaration
(#70) There must not be a space before the colon in a return type declaration
mod/mediagallery/classes/quickform/limitedurl.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class MoodleQuickForm_limitedurl
(#23) You must use "/**" style comments for a member variable comment
(#26) You must use "/**" style comments for a member variable comment
(#59) Short array syntax must be used to define arrays
(#63) 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
mod/mediagallery/classes/quickform/uploader.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class MoodleQuickForm_uploader
(#23) Missing member variable doc comment
(#25) Missing member variable doc comment
(#27) Missing docblock for function __construct
(#47) Missing docblock for function toHtml
(#81) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
mod/mediagallery/classes/quickform/uploader_standard.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class MoodleQuickForm_uploader_standard
(#23) Missing member variable doc comment
(#25) Missing member variable doc comment
(#27) Missing docblock for function toHtml
(#56) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
mod/mediagallery/classes/search_form.php
(#30) Missing docblock for class search_form
(#59) Short array syntax must be used to define arrays
mod/mediagallery/classes/viewcontroller.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#20) Missing @copyright tag
(#20) Missing @license tag
(#20) Missing docblock for class viewcontroller
(#22) Missing member variable doc comment
(#23) Missing member variable doc comment
(#24) Missing member variable doc comment
(#25) Missing member variable doc comment
(#26) Missing member variable doc comment
(#27) Missing member variable doc comment
(#28) Missing member variable doc comment
(#29) Missing member variable doc comment
(#31) Missing docblock for function __construct
(#31) Short array syntax must be used to define arrays
(#43) Missing docblock for function header
(#72) Missing docblock for function action_search
(#73) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#110) Missing docblock for function action_viewcollection
(#111) Short array syntax must be used to define arrays
(#129) Missing docblock for function action_viewgallery
(#132) Short array syntax must be used to define arrays
mod/mediagallery/db/access.php
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#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) There should be a comma after the last array item in a multi-line array.
(#42) Short array syntax must be used to define arrays
(#46) 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.
(#50) There should be a comma after the last array item in a multi-line array.
(#53) Short array syntax must be used to define arrays
(#58) 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.
(#62) There should be a comma after the last array item in a multi-line array.
(#65) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#72) There should be a comma after the last array item in a multi-line array.
(#73) There should be a comma after the last array item in a multi-line array.
(#76) Short array syntax must be used to define arrays
(#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.
(#86) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) There should be a comma after the last array item in a multi-line array.
mod/mediagallery/db/log.php
(#33) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#37) 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.
mod/mediagallery/db/tag.php
(#17) Missing @copyright tag
mod/mediagallery/db/upgrade.php
(#304) Short array syntax must be used to define arrays
(#305) Short array syntax must be used to define arrays
(#389) Short array syntax must be used to define arrays
mod/mediagallery/export.php
(#36) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
mod/mediagallery/gallery.php
(#44) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
mod/mediagallery/gallery_form.php
(#31) Import statements must not begin with a leading backslash
(#61) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#207) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
mod/mediagallery/index.php
(#31) Short array syntax must be used to define arrays
(#36) 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.
(#42) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
mod/mediagallery/item.php
(#52) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
mod/mediagallery/item_bulk_form.php
(#52) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
mod/mediagallery/item_form.php
(#55) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
mod/mediagallery/jquery/plugins.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#31) There should be a comma after the last array item in a multi-line array.
mod/mediagallery/lang/en/mediagallery.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#44) The string key "areagallery" is not in the correct order, it should be before "areathumbnail"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#69) Unexpected comment found. Auto-fixing will not work after this comment
(#80) The string key "colltypecontributed" is not in the correct order, it should be before "colltypesingle"
(#81) The string key "colltypeassignment" is not in the correct order, it should be before "colltypecontributed"
(#96) The string key "contentbulk_help" is not in the correct order, it should be before "contentbulkheader"
(#99) The string key "contentlinked_help" is not in the correct order, it should be before "contentlinkedinfo"
(#148) The string key "errortoomanygalleries" is not in the correct order, it should be before "errortoomanyitems"
(#156) The string key "eventgalleryviewed" is not in the correct order, it should be before "eventitemupdated"
(#200) The string key "modulename_help" is not in the correct order, it should be before "modulenameplural"
(#206) The string key "mediagallery:addinstance" is not in the correct order, it should be before "modulename_help"
(#216) The string key "mediagallery" is not in the correct order, it should be before "mediagalleryname_help"
(#220) The string key "mediasizemd" is not in the correct order, it should be before "mediasizesm"
(#221) The string key "mediasizelg" is not in the correct order, it should be before "mediasizemd"
(#262) The string key "privacy:metadata:mediagallery_item:caption" is not in the correct order, it should be before "privacy:metadata:mediagallery_item:userid"
(#267) The string key "privacy:metadata:mediagallery_item:medium" is not in the correct order, it should be before "privacy:metadata:mediagallery_item:productiondate"
(#269) The string key "privacy:metadata:mediagallery_item:broadcaster" is not in the correct order, it should be before "privacy:metadata:mediagallery_item:publisher"
(#271) The string key "privacy:metadata:mediagallery_item:externalurl" is not in the correct order, it should be before "privacy:metadata:mediagallery_item:reference"
(#276) The string key "privacy:metadata:mediagallery_userfeedback:liked" is not in the correct order, it should be before "privacy:metadata:mediagallery_userfeedback:userid"
(#288) The string key "removecollectionconfirm" is not in the correct order, it should be before "removethecollection"
(#290) The string key "removefromcollection" is not in the correct order, it should be before "removegalleryconfirm"
(#311) The string key "showall" is not in the correct order, it should be before "submittedforgrading"
(#315) The string key "tagarea_mediagallery" is not in the correct order, it should be before "tags"
mod/mediagallery/lib.php
(#76) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#91) Line exceeds 132 characters; contains 140 characters
(#107) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#121) Line exceeds 132 characters; contains 140 characters
(#177) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#360) Short array syntax must be used to define arrays
(#438) Short array syntax must be used to define arrays
(#496) Short array syntax must be used to define arrays
mod/mediagallery/locallib.php
(#48) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#186) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#277) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#361) Short array syntax must be used to define arrays
(#418) Short array syntax must be used to define arrays
(#473) Short array syntax must be used to define arrays
(#474) Short array syntax must be used to define arrays
(#478) Short array syntax must be used to define arrays
(#480) Short array syntax must be used to define arrays
(#526) Short array syntax must be used to define arrays
(#583) Short array syntax must be used to define arrays
(#584) Short array syntax must be used to define arrays
(#588) Short array syntax must be used to define arrays
(#590) Short array syntax must be used to define arrays
(#638) Short array syntax must be used to define arrays
(#694) Short array syntax must be used to define arrays
(#695) Short array syntax must be used to define arrays
(#699) Short array syntax must be used to define arrays
(#701) Short array syntax must be used to define arrays
mod/mediagallery/mod_form.php
(#72) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#166) Short array syntax must be used to define arrays
(#176) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#190) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#210) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#252) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
mod/mediagallery/renderer.php
(#28) Import statements must not begin with a leading backslash
(#32) Import statements must not begin with a leading backslash
(#33) Import statements must not begin with a leading backslash
(#76) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#112) 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
(#141) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#166) Short array syntax must be used to define arrays
(#201) 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
(#206) Short array syntax must be used to define arrays
(#207) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#217) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#239) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#293) Short array syntax must be used to define arrays
(#300) Short array syntax must be used to define arrays
(#314) Short array syntax must be used to define arrays
(#320) Short array syntax must be used to define arrays
(#341) Short array syntax must be used to define arrays
(#342) Short array syntax must be used to define arrays
(#343) Short array syntax must be used to define arrays
(#344) Short array syntax must be used to define arrays
(#383) Short array syntax must be used to define arrays
(#398) Short array syntax must be used to define arrays
(#421) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#457) Short array syntax must be used to define arrays
(#464) Short array syntax must be used to define arrays
(#474) Short array syntax must be used to define arrays
(#515) Short array syntax must be used to define arrays
(#529) Short array syntax must be used to define arrays
(#530) Short array syntax must be used to define arrays
(#531) Short array syntax must be used to define arrays
(#532) Short array syntax must be used to define arrays
(#533) Short array syntax must be used to define arrays
(#534) Short array syntax must be used to define arrays
(#569) Short array syntax must be used to define arrays
(#575) Short array syntax must be used to define arrays
(#591) Short array syntax must be used to define arrays
(#593) Short array syntax must be used to define arrays
(#595) Short array syntax must be used to define arrays
(#596) Short array syntax must be used to define arrays
(#602) Short array syntax must be used to define arrays
(#607) Short array syntax must be used to define arrays
(#608) Short array syntax must be used to define arrays
(#610) Short array syntax must be used to define arrays
(#629) Short array syntax must be used to define arrays
(#635) Short array syntax must be used to define arrays
(#643) Short array syntax must be used to define arrays
(#665) Short array syntax must be used to define arrays
(#685) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
(#688) Short array syntax must be used to define arrays
(#695) Short array syntax must be used to define arrays
(#698) Short array syntax must be used to define arrays
(#707) Short array syntax must be used to define arrays
(#709) Short array syntax must be used to define arrays
(#711) Short array syntax must be used to define arrays
(#715) Short array syntax must be used to define arrays
(#743) Short array syntax must be used to define arrays
(#791) Short array syntax must be used to define arrays
(#799) Short array syntax must be used to define arrays
(#802) Short array syntax must be used to define arrays
(#803) Short array syntax must be used to define arrays
(#806) Short array syntax must be used to define arrays
(#807) Short array syntax must be used to define arrays
(#815) Short array syntax must be used to define arrays
(#819) Short array syntax must be used to define arrays
(#821) Short array syntax must be used to define arrays
(#826) Short array syntax must be used to define arrays
(#835) Short array syntax must be used to define arrays
(#874) Short array syntax must be used to define arrays
(#891) Short array syntax must be used to define arrays
(#894) Short array syntax must be used to define arrays
(#898) Short array syntax must be used to define arrays
(#935) Short array syntax must be used to define arrays
(#937) Short array syntax must be used to define arrays
(#970) Short array syntax must be used to define arrays
(#1026) Short array syntax must be used to define arrays
(#1030) Short array syntax must be used to define arrays
mod/mediagallery/rest.php
(#37) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
mod/mediagallery/search.php
(#46) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
mod/mediagallery/tests/base_test.php
(#37) Unit test base_test should be declared as final.
(#47) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#86) Test method test_collection_read_only() is missing a return type
(#87) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#104) Test method test_gallery_access_permissions() is missing a return type
(#105) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
mod/mediagallery/tests/collection_test.php
(#35) Unit test collection_test should be declared as final.
(#45) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#84) Test method test_user_can_add_children() is missing a return type
(#89) There should be a comma after the last array item in a multi-line array.
(#94) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#131) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
mod/mediagallery/tests/generator/lib.php
(#43) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $options.
(#58) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
mod/mediagallery/tests/privacy_test.php
(#17) Missing @copyright tag
(#48) Unit test privacy_test should be declared as final.
(#56) Missing docblock for function create_users in testcase
(#64) Missing docblock for function create_gallery in testcase
(#65) Short array syntax must be used to define arrays
(#75) Missing docblock for function create_item in testcase
(#76) Short array syntax must be used to define arrays
(#84) Test method test_get_contexts_for_userid() is missing a return type
(#128) Test method test_delete_data_for_all_users_in_context() is missing a return type
(#145) Test method test_delete_data_for_user() is missing a return type
(#183) Test method test_export_data_for_user() is missing a return type
mod/mediagallery/view.php
(#43) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays

Javascript coding style problems

(1 errors, 291 warnings)

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

mod/mediagallery/yui/src/base/js/base.js
(#1) Identifier 'mod_mediagallery' is not in camel case. (camelcase)
(#9) Identifier 'lbg_setup_ran' is not in camel case. (camelcase)
(#11) Extra space after key 'enablecomments'. (key-spacing)
(#12) Extra space after key 'enablelikes'. (key-spacing)
(#15) Extra space after key 'uri'. (key-spacing)
(#50) Identifier 'add_remove_collection_handler' is not in camel case. (camelcase)
(#50) Extra space after key 'add_remove_collection_handler'. (key-spacing)
(#58) Extra space after key 'title'. (key-spacing)
(#58) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#59) Extra space after key 'question'. (key-spacing)
(#59) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#60) Extra space after key 'yesLabel'. (key-spacing)
(#60) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#61) Extra space after key 'noLabel'. (key-spacing)
(#61) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#62) Extra space after key 'closeButtonTitle'. (key-spacing)
(#62) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#82) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#84) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#106) Identifier 'watch_delete_thebox' is not in camel case. (camelcase)
(#113) Extra space after key 'title'. (key-spacing)
(#113) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#114) Extra space after key 'yesLabel'. (key-spacing)
(#114) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#115) Extra space after key 'noLabel'. (key-spacing)
(#115) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#116) Extra space after key 'closeButtonTitle'. (key-spacing)
(#116) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#130) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#138) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#140) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#162) Identifier 'watch_editing_buttons' is not in camel case. (camelcase)
(#162) Extra space after key 'watch_editing_buttons'. (key-spacing)
(#168) Extra space after key 'title'. (key-spacing)
(#168) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#169) Extra space after key 'origquestion'. (key-spacing)
(#169) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#170) Extra space after key 'yesLabel'. (key-spacing)
(#170) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#171) Extra space after key 'noLabel'. (key-spacing)
(#171) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#172) Extra space after key 'closeButtonTitle'. (key-spacing)
(#172) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#188) ["class"] is better written in dot notation. (dot-notation)
(#197) Identifier 'watch_mediasize' is not in camel case. (camelcase)
(#230) Identifier 'add_gallery_info_modal' is not in camel case. (camelcase)
(#230) Extra space after key 'add_gallery_info_modal'. (key-spacing)
(#236) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#237) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#240) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#247) Extra space after key 'headerContent'. (key-spacing)
(#247) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#248) Extra space after key 'bodyContent'. (key-spacing)
(#249) Extra space after key 'modal'. (key-spacing)
(#258) Identifier 'add_item_info_modal' is not in camel case. (camelcase)
(#258) Extra space after key 'add_item_info_modal'. (key-spacing)
(#262) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#263) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#264) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#265) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#266) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#267) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#268) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#268) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#268) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#269) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#270) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#271) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#272) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#273) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#274) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#275) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#276) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#289) Extra space after key 'headerContent'. (key-spacing)
(#289) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#290) Extra space after key 'bodyContent'. (key-spacing)
(#291) Extra space after key 'modal'. (key-spacing)
(#300) Identifier 'delete_object' is not in camel case. (camelcase)
(#300) Extra space after key 'delete_object'. (key-spacing)
(#329) ["class"] is better written in dot notation. (dot-notation)
(#334) Extra space after key 'failure'. (key-spacing)
(#351) Identifier 'lbg_setup' is not in camel case. (camelcase)
(#351) Extra space after key 'lbg_setup'. (key-spacing)
(#355) Identifier 'lbg_setup_ran' is not in camel case. (camelcase)
(#360) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#382) Extra space after key 'sesskey'. (key-spacing)
(#383) Extra space after key 'm'. (key-spacing)
(#384) Extra space after key 'id'. (key-spacing)
(#385) Extra space after key 'class'. (key-spacing)
(#386) Extra space after key 'action'. (key-spacing)
(#393) Extra space after key 'success'. (key-spacing)
(#393) Unexpected space before function parentheses. (space-before-function-paren)
(#403) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#408) Identifier 'update_likes' is not in camel case. (camelcase)
(#408) Extra space after key 'update_likes'. (key-spacing)
(#412) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#415) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#419) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#421) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#427) Identifier 'lbg_change' is not in camel case. (camelcase)
(#427) Extra space after key 'lbg_change'. (key-spacing)
(#441) Extra space after key 'sesskey'. (key-spacing)
(#442) Extra space after key 'm'. (key-spacing)
(#443) Extra space after key 'id'. (key-spacing)
(#444) Extra space after key 'class'. (key-spacing)
(#445) Extra space after key 'action'. (key-spacing)
(#452) Extra space after key 'success'. (key-spacing)
(#452) Unexpected space before function parentheses. (space-before-function-paren)
(#457) Identifier 'client_id' is not in camel case. (camelcase)
(#457) Extra space after key 'client_id'. (key-spacing)
(#458) Extra space after key 'contextid'. (key-spacing)
(#459) Extra space after key 'itemid'. (key-spacing)
(#460) Extra space after key 'component'. (key-spacing)
(#461) Extra space after key 'commentarea'. (key-spacing)
(#469) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#471) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#483) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#500) Identifier 'lbg_embed_player' is not in camel case. (camelcase)
(#500) Extra space after key 'lbg_embed_player'. (key-spacing)
(#504) Extra space after key 'sesskey'. (key-spacing)
(#505) Extra space after key 'm'. (key-spacing)
(#506) Extra space after key 'class'. (key-spacing)
(#507) Extra space after key 'action'. (key-spacing)
(#508) Extra space after key 'id'. (key-spacing)
(#511) Extra space after key 'success'. (key-spacing)
(#511) Unexpected space before function parentheses. (space-before-function-paren)
(#532) Identifier 'load_flowplayer' is not in camel case. (camelcase)
(#532) Extra space after key 'load_flowplayer'. (key-spacing)
(#537) Identifier 'embed_function' is not in camel case. (camelcase)
(#543) Expected space(s) after "for". (keyword-spacing)
(#543) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#543) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#543) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#543) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#543) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#543) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#544) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#544) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#546) 'src' declared on line 552 column 25 is used outside of binding context. (block-scoped-var)
(#552) 'src' is already defined. (no-redeclare)
(#552) 'src' declared on line 546 column 25 is used outside of binding context. (block-scoped-var)
(#554) 'src' declared on line 546 column 25 is used outside of binding context. (block-scoped-var)
(#554) 'src' declared on line 552 column 25 is used outside of binding context. (block-scoped-var)
(#563) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#563) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#585) Identifier 'video_players' is not in camel case. (camelcase)
(#589) 'controls' is already defined. (no-redeclare)
(#599) A space is required after ','. (comma-spacing)
(#599) A space is required after ','. (comma-spacing)
(#623) Expected space(s) after "for". (keyword-spacing)
(#623) 'i' is already defined. (no-redeclare)
(#623) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#623) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#623) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#623) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#623) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#623) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#625) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#625) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#626) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#626) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#626) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#627) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#627) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#628) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#628) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#628) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#629) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#629) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#633) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#633) 'i' declared on line 641 column 21 is used outside of binding context. (block-scoped-var)
(#641) Expected space(s) after "for". (keyword-spacing)
(#641) 'i' is already defined. (no-redeclare)
(#641) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#641) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#641) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#641) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#641) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#641) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#642) 'i' declared on line 543 column 21 is used outside of binding context. (block-scoped-var)
(#642) 'i' declared on line 623 column 25 is used outside of binding context. (block-scoped-var)
(#657) Identifier 'audio_players' is not in camel case. (camelcase)
(#660) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#662) 'jsurl' declared on line 664 column 21 is used outside of binding context. (block-scoped-var)
(#664) This line has a length of 133. Maximum allowed is 132. (max-len)
(#664) 'jsurl' is already defined. (no-redeclare)
(#664) 'jsurl' declared on line 662 column 21 is used outside of binding context. (block-scoped-var)
(#667) A space is required after ','. (comma-spacing)
(#668) 'jsurl' declared on line 662 column 21 is used outside of binding context. (block-scoped-var)
(#668) 'jsurl' declared on line 664 column 21 is used outside of binding context. (block-scoped-var)
(#669) Identifier 'embed_function' is not in camel case. (camelcase)
(#670) Identifier 'embed_function' is not in camel case. (camelcase)
(#677) Identifier 'setup_sample_link' is not in camel case. (camelcase)
(#677) Extra space after key 'setup_sample_link'. (key-spacing)
(#679) Extra space after key 'title'. (key-spacing)
(#679) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#680) Extra space after key 'question'. (key-spacing)
(#681) Extra space after key 'yesLabel'. (key-spacing)
(#681) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#682) Extra space after key 'noLabel'. (key-spacing)
(#682) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#683) Extra space after key 'closeButtonTitle'. (key-spacing)
(#683) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#696) Extra space after key 'sesskey'. (key-spacing)
(#697) Extra space after key 'm'. (key-spacing)
(#698) Extra space after key 'class'. (key-spacing)
(#699) Extra space after key 'id'. (key-spacing)
(#700) Extra space after key 'action'. (key-spacing)
(#713) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#717) 'responsetext' declared on line 705 column 37 is used outside of binding context. (block-scoped-var)
(#722) Extra space after key 'failure'. (key-spacing)
(#722) Unexpected empty method 'failure'. (no-empty-function)
(#736) Extra space after key 'sesskey'. (key-spacing)
(#737) Extra space after key 'm'. (key-spacing)
(#738) Extra space after key 'class'. (key-spacing)
(#739) Extra space after key 'id'. (key-spacing)
(#740) Extra space after key 'action'. (key-spacing)
(#741) Extra space after key 'data[]'. (key-spacing)
(#754) Extra space after key 'failure'. (key-spacing)
(#754) Unexpected empty method 'failure'. (no-empty-function)
(#768) Identifier 'watch_resize' is not in camel case. (camelcase)
mod/mediagallery/yui/src/base/js/dragdrop.js
(#1) Identifier 'mod_mediagallery' is not in camel case. (camelcase)
(#4) Extra space after key 'CSS'. (key-spacing)
(#5) Extra space after key 'CONTAINER'. (key-spacing)
(#6) Extra space after key 'ITEMS'. (key-spacing)
(#7) Extra space after key 'CONTROLCONTAINER'. (key-spacing)
(#8) Extra space after key 'HANDLE'. (key-spacing)
(#9) Extra space after key 'HANDLELINK'. (key-spacing)
(#12) Extra space after key 'init'. (key-spacing)
(#19) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#19) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#25) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#122) Extra space after key 'save'. (key-spacing)
(#125) Extra space after key 'sesskey'. (key-spacing)
(#126) Extra space after key 'data'. (key-spacing)
(#127) Extra space after key 'class'. (key-spacing)
(#128) Extra space after key 'm'. (key-spacing)
(#129) Extra space after key 'id'. (key-spacing)
(#130) Extra space after key 'action'. (key-spacing)
mod/mediagallery/yui/src/mediabox/js/mediabox.js
(#23) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#24) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#27) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#28) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#29) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#72) Expected to return a value at the end of function. (consistent-return)
(#103) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#130) Extra space after key 'success'. (key-spacing)
(#130) Unexpected space before function parentheses. (space-before-function-paren)
(#140) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#212) Extra space after key 'changeitem'. (key-spacing)
(#256) Extra space after key 'success'. (key-spacing)
(#256) Unexpected space before function parentheses. (space-before-function-paren)
(#277) Identifier 'client_id' is not in camel case. (camelcase)
(#277) Extra space after key 'client_id'. (key-spacing)
(#278) Extra space after key 'contextid'. (key-spacing)
(#279) Extra space after key 'itemid'. (key-spacing)
(#280) Extra space after key 'component'. (key-spacing)
(#281) Extra space after key 'commentarea'. (key-spacing)
(#282) Extra space after key 'autostart'. (key-spacing)
(#292) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#294) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#330) Extra space after key 'disablenav'. (key-spacing)
(#334) Identifier 'embed_player' is not in camel case. (camelcase)
(#334) Extra space after key 'embed_player'. (key-spacing)
(#342) Extra space after key 'success'. (key-spacing)
(#342) Unexpected space before function parentheses. (space-before-function-paren)
(#358) Extra space after key 'enable'. (key-spacing)
(#368) Extra space after key 'enablenav'. (key-spacing)
(#375) Extra space after key 'keyboardaction'. (key-spacing)
(#395) Extra space after key 'repositionitem'. (key-spacing)
(#471) Extra space after key 'resizeoverlay'. (key-spacing)
(#471) Unexpected space before function parentheses. (space-before-function-paren)
(#478) Extra space after key 'sidebarwidth'. (key-spacing)
(#485) Extra space after key 'start'. (key-spacing)
(#511) Extra space after key 'setfullscreenimg'. (key-spacing)
(#522) Identifier 'setup_info_toggle' is not in camel case. (camelcase)
(#522) Extra space after key 'setup_info_toggle'. (key-spacing)
(#554) Extra space after key 'stop'. (key-spacing)
(#564) Identifier 'update_likes' is not in camel case. (camelcase)
(#564) Extra space after key 'update_likes'. (key-spacing)
(#568) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#571) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#575) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#577) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#584) Extra space after key 'NAME'. (key-spacing)
(#585) Extra space after key 'ATTRS'. (key-spacing)
(#587) Extra space after key 'value'. (key-spacing)
(#593) Extra space after key 'value'. (key-spacing)
(#599) Extra space after key 'value'. (key-spacing)
(#605) Extra space after key 'value'. (key-spacing)
(#619) Identifier 'mod_mediagallery' is not in camel case. (camelcase)
(#620) Identifier 'init_mediabox' is not in camel case. (camelcase)

CSS problems

(7 errors, 0 warnings)

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

mod/mediagallery/styles.css
(#707) Invalid value for "background-image" (csstree/validator)
(#706) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#707) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#708) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#706) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#707) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#708) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)

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:yui" 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]