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

(220 errors, 225 warnings)

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

mod/lightboxgallery/backup/moodle2/backup_lightboxgallery_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file backup_lightboxgallery_stepslib.php
(#18) Incorrect @package tag for file backup_lightboxgallery_stepslib.php. Expected mod_lightboxgallery, found moodlecore.
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Missing docblock for function define_structure
(#41) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#44) There should be a comma after the last array item in a multi-line array.
(#48) Short array syntax must be used to define arrays
(#48) 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.
(#53) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#54) 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
(#66) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
mod/lightboxgallery/backup/moodle2/restore_lightboxgallery_activity_task.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_lightboxgallery_activity_task.class.php
(#18) Incorrect @package tag for file restore_lightboxgallery_activity_task.class.php. Expected mod_lightboxgallery, found moodlecore.
(#54) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
mod/lightboxgallery/backup/moodle2/restore_lightboxgallery_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file restore_lightboxgallery_stepslib.php
(#18) Incorrect @package tag for file restore_lightboxgallery_stepslib.php. Expected mod_lightboxgallery, found moodlecore.
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Missing docblock for function define_structure
(#37) Short array syntax must be used to define arrays
(#55) Missing docblock for function process_lightboxgallery
(#67) Missing docblock for function process_lightboxgallery_comment
(#81) Missing docblock for function process_lightboxgallery_image_meta
(#91) Missing docblock for function after_execute
mod/lightboxgallery/classes/event/course_module_instance_list_viewed.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/lightboxgallery/classes/event/course_module_viewed.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#64) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
mod/lightboxgallery/classes/event/gallery_comment_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) Short array syntax must be used to define arrays
(#97) Missing docblock for function get_other_mapping
mod/lightboxgallery/classes/event/gallery_searched.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#83) Short array syntax must be used to define arrays
(#103) Missing docblock for function get_other_mapping
mod/lightboxgallery/classes/event/image_updated.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#81) Short array syntax must be used to define arrays
(#90) Missing docblock for function get_other_mapping
mod/lightboxgallery/classes/gallery_page.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class gallery_page
(#25) Missing docblock for constant gallery_page::SORTBY_FILENAME
(#26) Missing docblock for constant gallery_page::SORTBY_CAPTION
(#27) Missing docblock for constant gallery_page::SORTBY_FILENAME_NATURAL
(#29) Missing member variable doc comment
(#30) Missing member variable doc 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
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#60) Missing docblock for function display_images
(#70) Missing docblock for function load_metadata
(#146) Missing docblock for function image_count
(#149) File must end with a newline character
mod/lightboxgallery/classes/privacy/provider.php
(#36) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#57) There must not be a space before the colon in a return type declaration
(#78) There must not be a space before the colon in a return type declaration
(#255) Missing docblock for function get_lightboxgallery_id_from_context
mod/lightboxgallery/classes/search/activity.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/lightboxgallery/comment.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file comment.php
(#25) Short array syntax must be used to define arrays
(#30) 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
(#53) Short array syntax must be used to define arrays
(#54) 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
mod/lightboxgallery/comment_form.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) Missing docblock for class mod_lightboxgallery_comment_form
(#32) Missing docblock for function definition
(#39) Short array syntax must be used to define arrays
mod/lightboxgallery/db/access.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#50) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#56) 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
(#71) 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
(#84) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
(#88) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#94) There should be a comma after the last array item in a multi-line array.
(#95) There should be a comma after the last array item in a multi-line array.
(#98) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
(#105) There should be a comma after the last array item in a multi-line array.
(#108) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#116) There should be a comma after the last array item in a multi-line array.
(#117) There should be a comma after the last array item in a multi-line array.
(#118) There should be a comma after the last array item in a multi-line array.
mod/lightboxgallery/db/log.php
(#32) Short array syntax must be used to define arrays
(#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
(#35) There should be a comma after the last array item in a multi-line array.
mod/lightboxgallery/db/upgrade.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Missing docblock for function xmldb_lightboxgallery_upgrade
(#82) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#131) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
mod/lightboxgallery/edit/base.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#22) Incorrect @package tag for file base.class.php. Expected mod_lightboxgallery, found mod_lighboxgallery.
(#27) Missing docblock for class edit_base
(#29) Missing member variable doc comment
(#30) Missing member variable doc 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
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#38) Missing docblock for function __construct
(#51) Missing docblock for function processing
(#55) Missing docblock for function enclose_in_form
(#67) Missing docblock for function output
(#71) Missing docblock for function process_form
mod/lightboxgallery/edit/caption/caption.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_caption
(#21) Missing docblock for function __construct
(#25) Missing docblock for function output
(#31) Missing docblock for function process_form
mod/lightboxgallery/edit/crop/crop.class.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class edit_crop
(#23) Missing docblock for function __construct
(#27) Missing docblock for function output
(#69) Missing docblock for function process_form
mod/lightboxgallery/edit/delete/delete.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_delete
(#21) Missing docblock for function __construct
(#25) Missing docblock for function output
(#33) Missing docblock for function process_form
mod/lightboxgallery/edit/flip/flip.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class edit_flip
(#24) Missing docblock for function __construct
(#28) Missing docblock for function output
(#37) Missing docblock for function process_form
mod/lightboxgallery/edit/resize/resize.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_resize
(#21) Missing member variable doc comment
(#22) Missing member variable doc comment
(#23) Missing member variable doc comment
(#25) Missing docblock for function __construct
(#32) Missing docblock for function output
(#58) Missing docblock for function process_form
mod/lightboxgallery/edit/rotate/rotate.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_rotate
(#21) Missing docblock for function __construct
(#25) Missing docblock for function output
(#35) Missing docblock for function process_form
mod/lightboxgallery/edit/tag/import.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file import.php
(#23) Short array syntax must be used to define arrays
(#26) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#76) Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
(#84) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
mod/lightboxgallery/edit/tag/tag.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_tag
(#21) Missing docblock for function __construct
(#25) Missing docblock for function output
(#57) Short array syntax must be used to define arrays
(#74) Missing docblock for function process_form
(#80) Short array syntax must be used to define arrays
mod/lightboxgallery/edit/thumbnail/thumbnail.class.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class edit_thumbnail
(#21) Missing docblock for function __construct
(#25) Missing docblock for function output
(#48) Missing docblock for function process_form
mod/lightboxgallery/imageadd.php
(#20) Incorrect @package tag for file imageadd.php. Expected mod_lightboxgallery, found mod_lightworkgallery.
(#32) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
mod/lightboxgallery/imageadd_form.php
(#33) Missing docblock for function definition
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#75) Missing docblock for function validation
(#104) Missing docblock for function can_resize
(#106) Short array syntax must be used to define arrays
mod/lightboxgallery/imageclass.php
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#43) You must use "/**" style comments for a member variable comment
(#52) Missing member variable doc comment
(#53) Missing member variable doc comment
(#54) Missing member variable doc comment
(#56) Missing member variable doc comment
(#57) Missing member variable doc comment
(#59) Missing docblock for function __construct
(#104) Missing docblock for function add_tag
(#116) Missing docblock for function create_thumbnail
(#123) Short array syntax must be used to define arrays
(#140) Missing docblock for function create_index
(#143) Short array syntax must be used to define arrays
(#168) Missing docblock for function delete_file
(#175) Short array syntax must be used to define arrays
(#183) Missing docblock for function delete_tag
(#186) Short array syntax must be used to define arrays
(#189) Missing docblock for function delete_thumbnail
(#196) Missing docblock for function flip_image
(#198) Short array syntax must be used to define arrays
(#216) Missing docblock for function get_editing_options
(#252) Missing docblock for function get_image_caption
(#265) Short array syntax must be used to define arrays
(#272) Missing docblock for function get_image_display_html
(#286) Short array syntax must be used to define arrays
(#298) Logical operator "or" is prohibited; use "||" instead
(#312) Missing docblock for function get_image_flipped
(#335) Missing docblock for function get_image_resized
(#366) Missing docblock for function get_image_rotated
(#373) Missing docblock for function get_image_url
(#377) Missing docblock for function get_tags
(#399) Missing docblock for function get_thumbnail
(#410) Missing docblock for function get_thumbnail_url
(#414) Missing docblock for function output_by_mimetype
(#428) Missing docblock for function resize_image
(#429) Short array syntax must be used to define arrays
(#453) Missing docblock for function rotate_image
(#454) Short array syntax must be used to define arrays
(#474) Missing docblock for function set_caption
(#483) Short array syntax must be used to define arrays
(#492) Missing docblock for function copy_content_to_temp
(#496) Missing docblock for function set_stored_file
mod/lightboxgallery/imageedit.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#39) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#87) There should be a comma after the last array item in a multi-line array.
(#106) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
mod/lightboxgallery/index.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#21) Incorrect @package tag for file index.php. Expected mod_lightboxgallery, found mod_lightworkgallery.
(#32) 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
(#56) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
mod/lightboxgallery/lang/de/lightboxgallery.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#42) The string key "allowcomments" is not in the correct order, it should be before "autoresize_help"
(#64) The string key "dirdown" is not in the correct order, it should be before "dirup"
(#69) The string key "edit_choose" is not in the correct order, it should be before "editimage"
(#70) The string key "edit_caption" is not in the correct order, it should be before "edit_choose"
(#112) The string key "modulenameadd" is not in the correct order, it should be before "modulenameshort"
(#117) The string key "pluginadministration" is not in the correct order, it should be before "position_top"
mod/lightboxgallery/lang/en/lightboxgallery.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#41) The string key "allowcomments" is not in the correct order, it should be before "autoresize_help"
(#63) The string key "dirdown" is not in the correct order, it should be before "dirup"
(#68) The string key "edit_choose" is not in the correct order, it should be before "editimage"
(#69) The string key "edit_caption" is not in the correct order, it should be before "edit_choose"
(#102) The string key "lightboxgallery:addimage" is not in the correct order, it should be before "lightboxgallery:addinstance"
(#120) The string key "modulenameadd" is not in the correct order, it should be before "modulenameshort"
(#126) The string key "pluginadministration" is not in the correct order, it should be before "position_top"
(#132) The string key "privacy:metadata:lightboxgallery_comments:timemodified" is not in the correct order, it should be before "privacy:metadata:lightboxgallery_comments:userid"
mod/lightboxgallery/lang/fr/lightboxgallery.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#41) The string key "allowcomments" is not in the correct order, it should be before "autoresize_help"
(#63) The string key "dirdown" is not in the correct order, it should be before "dirup"
(#68) The string key "edit_choose" is not in the correct order, it should be before "editimage"
(#69) The string key "edit_caption" is not in the correct order, it should be before "edit_choose"
(#98) The string key "lightboxgallery:addimage" is not in the correct order, it should be before "lightboxgallery:addinstance"
(#115) The string key "modulenameadd" is not in the correct order, it should be before "modulenameshort"
(#120) The string key "pluginadministration" is not in the correct order, it should be before "position_top"
mod/lightboxgallery/lib.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#37) Missing docblock for function lightboxgallery_supports
(#145) Short array syntax must be used to define arrays
(#160) 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
(#185) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#206) Missing docblock for function lightboxgallery_get_recent_mod_activity
(#212) Short array syntax must be used to define arrays
(#265) Missing docblock for function lightboxgallery_print_recent_mod_activity
(#268) Short array syntax must be used to define arrays
(#270) Short array syntax must be used to define arrays
(#354) Missing docblock for function lightboxgallery_get_view_actions
(#355) Short array syntax must be used to define arrays
(#358) Missing docblock for function lightboxgallery_get_post_actions
(#359) Short array syntax must be used to define arrays
(#378) Short array syntax must be used to define arrays
(#387) Logical operator "or" is prohibited; use "||" instead
(#406) Short array syntax must be used to define arrays
(#434) Logical operator "and" is prohibited; use "&&" instead
(#472) Short array syntax must be used to define arrays
(#474) Short array syntax must be used to define arrays
(#477) Short array syntax must be used to define arrays
mod/lightboxgallery/locallib.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#51) Docblock tag "@access" is not recommended.
(#59) Short array syntax must be used to define arrays
(#76) 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.
(#101) Missing docblock for function lightboxgallery_config_defaults
(#102) Short array syntax must be used to define arrays
(#116) Missing docblock for function lightboxgallery_edit_types
(#117) Short array syntax must be used to define arrays
(#135) Missing docblock for function lightboxgallery_print_tags
(#150) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#154) Short array syntax must be used to define arrays
(#162) Missing docblock for function lightboxgallery_resize_options
(#163) Short array syntax must be used to define arrays
(#166) Missing docblock for function lightboxgallery_index_thumbnail
(#184) Logical operator "or" is prohibited; use "||" instead
(#203) There should be a comma after the last array item in a multi-line array.
(#218) Missing docblock for function get_parent
(#219) Logical operator "and" is prohibited; use "&&" instead
(#224) Missing docblock for function get_visible_name
(#225) Logical operator "and" is prohibited; use "&&" instead
mod/lightboxgallery/mod_form.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#34) Missing docblock for class mod_lightboxgallery_mod_form
(#36) Missing docblock for function definition
(#46) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#126) Missing docblock for function data_preprocessing
(#134) Missing docblock for function get_perpage_options
(#135) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#143) Missing docblock for function get_autoresize_options
(#146) Short array syntax must be used to define arrays
mod/lightboxgallery/rsslib.php
(#17) Missing @copyright tag
(#31) Docblock tag "@global" is not recommended.
(#32) Docblock tag "@global" is not recommended.
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#134) Missing docblock for function lightboxgallery_rss_feeds
(#193) Missing docblock for function lightboxgallery_rss_get_sql
(#206) Missing docblock for function lightboxgallery_rss_header
mod/lightboxgallery/search.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#36) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#42) 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
(#66) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
mod/lightboxgallery/tests/generator/lib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Missing docblock for function create_instance
(#38) 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.
mod/lightboxgallery/tests/lib_test.php
(#39) Testcase mod_lightboxgallery_lib_testcase should be declared as abstract.
(#39) PHPUnit testcase name "mod_lightboxgallery_lib_testcase" does not match file name "lib_test"
(#39) PHPUnit class "mod_lightboxgallery_lib_testcase" does not have any namespace. It is recommended to add it to the "mod_lightboxgallery" namespace, using more levels if needed, in order to match the code being tested
(#40) Test method test_lightboxgallery_resize_text() is missing any coverage information, own or at class level
(#40) Test method test_lightboxgallery_resize_text() is missing a return type
(#45) Test method test_lightboxgallery_edit_types() is missing any coverage information, own or at class level
(#45) Test method test_lightboxgallery_edit_types() is missing a return type
mod/lightboxgallery/tests/privacy_test.php
(#17) Missing @copyright tag
(#45) Testcase mod_lightboxgallery_privacy_testcase should be declared as abstract.
(#45) PHPUnit testcase name "mod_lightboxgallery_privacy_testcase" does not match file name "privacy_test"
(#45) PHPUnit class "mod_lightboxgallery_privacy_testcase" does not have any namespace. It is recommended to add it to the "mod_lightboxgallery" namespace, using more levels if needed, in order to match the code being tested
(#47) The setUp() method in unit tests must always call to parent::setUp().
(#53) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#53) Test method test_get_contexts_for_userid() is missing a return type
(#87) Test method test_delete_data_for_all_users_in_context() is missing any coverage information, own or at class level
(#87) Test method test_delete_data_for_all_users_in_context() is missing a return type
(#128) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#128) Test method test_delete_data_for_user() is missing a return type
(#160) Test method test_export_data_for_user() is missing any coverage information, own or at class level
(#160) Test method test_export_data_for_user() is missing a return type
(#209) Missing docblock for function assert_exported_comments in testcase
(#242) There should be a comma after the last array item in a multi-line array.
mod/lightboxgallery/view.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#43) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#69) Logical operator "and" is prohibited; use "&&" instead
(#75) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#90) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays

Javascript coding style problems

(1 errors, 4 warnings)

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

mod/lightboxgallery/module.js
(#1) A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap)
(#1) 'YUI' is not defined. (no-undef)
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#1) Statement inside of curly braces should be on next line. (brace-style)
(#1) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(9 errors, 0 warnings)

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

mod/lightboxgallery/backup/moodle2/restore_lightboxgallery_activity_task.class.php
(#74) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#76) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#90) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#92) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/lightboxgallery/lib.php
(#169) Phpdocs for function lightboxgallery_user_complete has incomplete parameters list
(#287) Phpdocs for function lightboxgallery_print_recent_activity has incomplete parameters list
(#342) Phpdocs for function lightboxgallery_get_participants has incomplete parameters list
(#508) Phpdocs for function mod_lightboxgallery_core_calendar_provide_event_action has incomplete parameters list
mod/lightboxgallery/locallib.php
(#46) Phpdocs for function lightboxgallery_add_images has incomplete parameters list

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]