Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(9 errors, 4 warnings)

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

mod/mediagallery/classes/item.php
(#459) Line exceeds 132 characters; contains 159 characters
(#624) Line exceeds 132 characters; contains 149 characters
(#683) Line exceeds 132 characters; contains 152 characters
mod/mediagallery/classes/quickform/limitedurl.php
(#26) Member variable "_hiddenLabel" must be all lower-case
(#33) Public method name "MoodleQuickForm_limitedurl::toHtml" must be in lower-case letters only
mod/mediagallery/classes/quickform/uploader.php
(#27) Variable "elementName" must be all lower-case
(#27) Variable "elementLabel" must be all lower-case
(#28) Variable "elementName" must be all lower-case
(#28) Variable "elementLabel" must be all lower-case
(#36) Public method name "MoodleQuickForm_uploader::MoodleQuickForm_uploader" must be in lower-case letters only
(#47) Public method name "MoodleQuickForm_uploader::toHtml" must be in lower-case letters only
mod/mediagallery/classes/quickform/uploader_standard.php
(#27) Public method name "MoodleQuickForm_uploader_standard::toHtml" must be in lower-case letters only
mod/mediagallery/mod_form.php
(#86) Line exceeds 132 characters; contains 139 characters

Javascript coding style problems

(1 errors, 297 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) Extra space after key 'add_remove_collection_handler'. (key-spacing)
(#50) Identifier 'add_remove_collection_handler' is not in camel case. (camelcase)
(#58) Extra space after key 'title'. (key-spacing)
(#58) 'M.str' is restricted from being used. Use AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#82) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#84) 'M.str' is restricted from being used. Use AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#130) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#138) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#140) 'M.str' is restricted from being used. Use AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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 AMD module "core/str" 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)
(#228) Identifier 'add_gallery_info_modal' is not in camel case. (camelcase)
(#228) Extra space after key 'add_gallery_info_modal'. (key-spacing)
(#234) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#235) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#238) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#245) Extra space after key 'headerContent'. (key-spacing)
(#245) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#246) Extra space after key 'bodyContent'. (key-spacing)
(#247) Extra space after key 'modal'. (key-spacing)
(#256) Identifier 'add_item_info_modal' is not in camel case. (camelcase)
(#256) Extra space after key 'add_item_info_modal'. (key-spacing)
(#260) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#261) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#262) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#263) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#264) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#265) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#266) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#266) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#266) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#267) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#268) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#269) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#270) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#271) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#272) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#273) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#274) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#287) Extra space after key 'headerContent'. (key-spacing)
(#287) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#288) Extra space after key 'bodyContent'. (key-spacing)
(#289) Extra space after key 'modal'. (key-spacing)
(#298) Extra space after key 'delete_object'. (key-spacing)
(#298) Identifier 'delete_object' is not in camel case. (camelcase)
(#327) ["class"] is better written in dot notation. (dot-notation)
(#332) Extra space after key 'failure'. (key-spacing)
(#349) Extra space after key 'lbg_setup'. (key-spacing)
(#349) Identifier 'lbg_setup' is not in camel case. (camelcase)
(#353) Identifier 'lbg_setup_ran' is not in camel case. (camelcase)
(#358) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#380) Extra space after key 'sesskey'. (key-spacing)
(#381) Extra space after key 'm'. (key-spacing)
(#382) Extra space after key 'id'. (key-spacing)
(#383) Extra space after key 'class'. (key-spacing)
(#384) Extra space after key 'action'. (key-spacing)
(#391) Extra space after key 'success'. (key-spacing)
(#391) Unexpected space before function parentheses. (space-before-function-paren)
(#401) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#406) Identifier 'update_likes' is not in camel case. (camelcase)
(#406) Extra space after key 'update_likes'. (key-spacing)
(#410) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#413) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#417) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#419) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#425) Extra space after key 'lbg_change'. (key-spacing)
(#425) Identifier 'lbg_change' is not in camel case. (camelcase)
(#439) Extra space after key 'sesskey'. (key-spacing)
(#440) Extra space after key 'm'. (key-spacing)
(#441) Extra space after key 'id'. (key-spacing)
(#442) Extra space after key 'class'. (key-spacing)
(#443) Extra space after key 'action'. (key-spacing)
(#450) Extra space after key 'success'. (key-spacing)
(#450) Unexpected space before function parentheses. (space-before-function-paren)
(#455) Extra space after key 'client_id'. (key-spacing)
(#455) Identifier 'client_id' is not in camel case. (camelcase)
(#456) Extra space after key 'contextid'. (key-spacing)
(#457) Extra space after key 'itemid'. (key-spacing)
(#458) Extra space after key 'component'. (key-spacing)
(#459) Extra space after key 'commentarea'. (key-spacing)
(#467) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#469) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#481) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#498) Identifier 'lbg_embed_player' is not in camel case. (camelcase)
(#498) Extra space after key 'lbg_embed_player'. (key-spacing)
(#502) Extra space after key 'sesskey'. (key-spacing)
(#503) Extra space after key 'm'. (key-spacing)
(#504) Extra space after key 'class'. (key-spacing)
(#505) Extra space after key 'action'. (key-spacing)
(#506) Extra space after key 'id'. (key-spacing)
(#509) Extra space after key 'success'. (key-spacing)
(#509) Unexpected space before function parentheses. (space-before-function-paren)
(#530) Identifier 'load_flowplayer' is not in camel case. (camelcase)
(#530) Extra space after key 'load_flowplayer'. (key-spacing)
(#535) Identifier 'embed_function' is not in camel case. (camelcase)
(#541) Expected space(s) after "for". (keyword-spacing)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#541) 'i' used outside of binding context. (block-scoped-var)
(#542) 'i' used outside of binding context. (block-scoped-var)
(#542) 'i' used outside of binding context. (block-scoped-var)
(#544) 'src' used outside of binding context. (block-scoped-var)
(#550) 'src' is already defined. (no-redeclare)
(#550) 'src' used outside of binding context. (block-scoped-var)
(#552) 'src' used outside of binding context. (block-scoped-var)
(#552) 'src' used outside of binding context. (block-scoped-var)
(#561) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#561) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#583) Identifier 'video_players' is not in camel case. (camelcase)
(#587) 'controls' is already defined. (no-redeclare)
(#597) A space is required after ','. (comma-spacing)
(#597) A space is required after ','. (comma-spacing)
(#621) Expected space(s) after "for". (keyword-spacing)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#621) 'i' is already defined. (no-redeclare)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#621) 'i' used outside of binding context. (block-scoped-var)
(#623) 'i' used outside of binding context. (block-scoped-var)
(#623) 'i' used outside of binding context. (block-scoped-var)
(#624) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#624) 'i' used outside of binding context. (block-scoped-var)
(#624) 'i' used outside of binding context. (block-scoped-var)
(#625) 'i' used outside of binding context. (block-scoped-var)
(#625) 'i' used outside of binding context. (block-scoped-var)
(#626) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#626) 'i' used outside of binding context. (block-scoped-var)
(#626) 'i' used outside of binding context. (block-scoped-var)
(#627) 'i' used outside of binding context. (block-scoped-var)
(#627) 'i' used outside of binding context. (block-scoped-var)
(#631) 'i' used outside of binding context. (block-scoped-var)
(#631) 'i' used outside of binding context. (block-scoped-var)
(#639) Expected space(s) after "for". (keyword-spacing)
(#639) 'i' is already defined. (no-redeclare)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#639) 'i' used outside of binding context. (block-scoped-var)
(#640) 'i' used outside of binding context. (block-scoped-var)
(#640) 'i' used outside of binding context. (block-scoped-var)
(#655) Identifier 'audio_players' is not in camel case. (camelcase)
(#658) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#660) 'jsurl' used outside of binding context. (block-scoped-var)
(#662) Line 662 exceeds the maximum line length of 132. (max-len)
(#662) 'jsurl' is already defined. (no-redeclare)
(#662) 'jsurl' used outside of binding context. (block-scoped-var)
(#665) A space is required after ','. (comma-spacing)
(#666) 'jsurl' used outside of binding context. (block-scoped-var)
(#666) 'jsurl' used outside of binding context. (block-scoped-var)
(#667) Identifier 'embed_function' is not in camel case. (camelcase)
(#668) Identifier 'embed_function' is not in camel case. (camelcase)
(#675) Identifier 'setup_sample_link' is not in camel case. (camelcase)
(#675) Extra space after key 'setup_sample_link'. (key-spacing)
(#677) Extra space after key 'title'. (key-spacing)
(#677) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#678) Extra space after key 'question'. (key-spacing)
(#679) Extra space after key 'yesLabel'. (key-spacing)
(#679) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#680) Extra space after key 'noLabel'. (key-spacing)
(#680) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#681) Extra space after key 'closeButtonTitle'. (key-spacing)
(#681) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#694) Extra space after key 'sesskey'. (key-spacing)
(#695) Extra space after key 'm'. (key-spacing)
(#696) Extra space after key 'class'. (key-spacing)
(#697) Extra space after key 'id'. (key-spacing)
(#698) Extra space after key 'action'. (key-spacing)
(#711) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#715) 'responsetext' used outside of binding context. (block-scoped-var)
(#720) Extra space after key 'failure'. (key-spacing)
(#720) Unexpected empty method 'failure'. (no-empty-function)
(#734) Extra space after key 'sesskey'. (key-spacing)
(#735) Extra space after key 'm'. (key-spacing)
(#736) Extra space after key 'class'. (key-spacing)
(#737) Extra space after key 'id'. (key-spacing)
(#738) Extra space after key 'action'. (key-spacing)
(#739) Extra space after key 'data[]'. (key-spacing)
(#752) Extra space after key 'failure'. (key-spacing)
(#752) Unexpected empty method 'failure'. (no-empty-function)
(#766) 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 AMD module "core/str" 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 AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#24) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#26) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#27) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#28) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#64) Expected to return a value at the end of function. (consistent-return)
(#95) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#122) Extra space after key 'success'. (key-spacing)
(#122) Unexpected space before function parentheses. (space-before-function-paren)
(#132) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#204) Extra space after key 'changeitem'. (key-spacing)
(#248) Extra space after key 'success'. (key-spacing)
(#248) Unexpected space before function parentheses. (space-before-function-paren)
(#269) Identifier 'client_id' is not in camel case. (camelcase)
(#269) Extra space after key 'client_id'. (key-spacing)
(#270) Extra space after key 'contextid'. (key-spacing)
(#271) Extra space after key 'itemid'. (key-spacing)
(#272) Extra space after key 'component'. (key-spacing)
(#273) Extra space after key 'commentarea'. (key-spacing)
(#274) Extra space after key 'autostart'. (key-spacing)
(#284) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#286) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#322) Extra space after key 'disablenav'. (key-spacing)
(#326) Extra space after key 'embed_player'. (key-spacing)
(#326) Identifier 'embed_player' is not in camel case. (camelcase)
(#334) Extra space after key 'success'. (key-spacing)
(#334) Unexpected space before function parentheses. (space-before-function-paren)
(#350) Extra space after key 'enable'. (key-spacing)
(#360) Extra space after key 'enablenav'. (key-spacing)
(#367) Extra space after key 'keyboardaction'. (key-spacing)
(#387) Extra space after key 'repositionitem'. (key-spacing)
(#457) Extra space after key 'resizeoverlay'. (key-spacing)
(#457) Unexpected space before function parentheses. (space-before-function-paren)
(#464) Extra space after key 'sidebarwidth'. (key-spacing)
(#471) Extra space after key 'start'. (key-spacing)
(#497) Extra space after key 'setfullscreenimg'. (key-spacing)
(#508) Extra space after key 'setup_info_toggle'. (key-spacing)
(#508) Identifier 'setup_info_toggle' is not in camel case. (camelcase)
(#540) Extra space after key 'stop'. (key-spacing)
(#550) Extra space after key 'update_likes'. (key-spacing)
(#550) Identifier 'update_likes' is not in camel case. (camelcase)
(#554) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#557) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#561) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#563) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#570) Extra space after key 'NAME'. (key-spacing)
(#571) Extra space after key 'ATTRS'. (key-spacing)
(#573) Extra space after key 'value'. (key-spacing)
(#579) Extra space after key 'value'. (key-spacing)
(#585) Extra space after key 'value'. (key-spacing)
(#591) Extra space after key 'value'. (key-spacing)
(#605) Identifier 'mod_mediagallery' is not in camel case. (camelcase)
(#606) Identifier 'init_mediabox' is not in camel case. (camelcase)
mod/mediagallery/yui/src/tagselector/js/tagselector.js
(#1) Identifier 'mod_mediagallery' is not in camel case. (camelcase)
(#4) Unexpected space before function parentheses. (space-before-function-paren)
(#33) Unexpected space before function parentheses. (space-before-function-paren)
(#42) Unexpected space before function parentheses. (space-before-function-paren)
(#49) Unexpected space before function parentheses. (space-before-function-paren)
(#52) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(62 errors, 22 warnings)

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

mod/mediagallery/styles.css
(#189) Expected "#00CB00" to be "#00cb00" (color-hex-case)
(#193) Expected "#CB0000" to be "#cb0000" (color-hex-case)
(#224) Expected "#FFF" to be "#fff" (color-hex-case)
(#386) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#394) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#395) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#396) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#437) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#444) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#445) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#446) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#450) Expected "#4E443C" to be "#4e443c" (color-hex-case)
(#454) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#455) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#456) Expected "#F0EFE7" to be "#f0efe7" (color-hex-case)
(#546) Expected "#FFF" to be "#fff" (color-hex-case)
(#692) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#693) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#694) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#692) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#693) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#694) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#516) Unexpected !important (declaration-no-important)
(#530) Unexpected !important (declaration-no-important)
(#797) Unexpected !important (declaration-no-important)
(#798) Unexpected !important (declaration-no-important)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#691) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#692) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#693) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#694) Expected single space after "," in a single-line function (function-comma-space-after)
(#793) Expected single space after "," in a single-line function (function-comma-space-after)
(#793) Expected single space after "," in a single-line function (function-comma-space-after)
(#793) Expected single space after "," in a single-line function (function-comma-space-after)
(#322) Expected indentation of 4 spaces (indentation)
(#323) Expected indentation of 4 spaces (indentation)
(#325) Expected indentation of 4 spaces (indentation)
(#326) Expected indentation of 4 spaces (indentation)
(#13) Unexpected unit (length-zero-no-unit)
(#59) Unexpected unit (length-zero-no-unit)
(#60) Unexpected unit (length-zero-no-unit)
(#181) Unexpected unit (length-zero-no-unit)
(#592) Unexpected unit (length-zero-no-unit)
(#704) Unexpected unit (length-zero-no-unit)
(#583) Expected no more than 2 empty lines (max-empty-lines)
(#719) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#719) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#719) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#719) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#738) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#738) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#738) Expected single space after "," in a single-line list (value-list-comma-space-after)
(#738) Expected single space after "," in a single-line list (value-list-comma-space-after)

PHPDocs style problems

(256 errors, 16 warnings)

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

mod/mediagallery/backup/moodle2/backup_mediagallery_activity_task.class.php
(#30) No one-line description found in phpdocs for class backup_mediagallery_activity_task
(#30) Class backup_mediagallery_activity_task does not have @copyright tag
(#30) Class backup_mediagallery_activity_task does not have @license tag
mod/mediagallery/backup/moodle2/backup_mediagallery_stepslib.php
(#33) Function backup_mediagallery_activity_structure_step::define_structure is not documented
(#28) Class backup_mediagallery_activity_structure_step does not have @copyright tag
(#28) Class backup_mediagallery_activity_structure_step does not have @license tag
mod/mediagallery/backup/moodle2/restore_mediagallery_activity_task.class.php
(#30) No one-line description found in phpdocs for class restore_mediagallery_activity_task
(#30) Class restore_mediagallery_activity_task does not have @copyright tag
(#30) Class restore_mediagallery_activity_task does not have @license tag
mod/mediagallery/backup/moodle2/restore_mediagallery_stepslib.php
(#37) Function restore_mediagallery_activity_structure_step::define_structure is not documented
(#61) Function restore_mediagallery_activity_structure_step::process_mediagallery is not documented
(#83) Function restore_mediagallery_activity_structure_step::process_mediagallery_userfeedback is not documented
(#94) Function restore_mediagallery_activity_structure_step::process_mediagallery_gallery is not documented
(#110) Function restore_mediagallery_activity_structure_step::process_mediagallery_item is not documented
(#126) Function restore_mediagallery_activity_structure_step::after_execute is not documented
(#32) Class restore_mediagallery_activity_structure_step does not have @copyright tag
(#32) Class restore_mediagallery_activity_structure_step does not have @license tag
mod/mediagallery/classes/base.php
(#21) Package is not specified for class base. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class base is not documented
(#34) Function base::__construct is not documented
(#53) Function base::__get is not documented
(#60) Function base::__isset is not documented
(#82) Function base::delete is not documented
(#90) Function base::get_context is not documented
(#91) Function base::user_can_remove is not documented
(#112) Function base::get_tags_possible is not documented
(#130) Function base::set_tags is not documented
(#148) Function base::set_option is not documented
(#185) Function base::is_thebox_creator_or_agent is not documented
(#30) Variable base::$options is not documented
(#31) Variable base::$record is not documented
(#32) Variable base::$table is not documented
(#23) Constant base::POS_BOTTOM is not documented
(#24) Constant base::POS_TOP is not documented
(#25) Constant base::TYPE_AUDIO is not documented
(#26) Constant base::TYPE_IMAGE is not documented
(#27) Constant base::TYPE_VIDEO is not documented
(#28) Constant base::TYPE_ALL is not documented
(#64) Phpdocs for function base::create has incomplete parameters list
(#155) Phpdocs for function base::update has incomplete parameters list
(#96) Invalid phpdocs tag @returns used
(#105) Not recommended phpdocs tag @access used
(#211) Not recommended phpdocs tag @static used
(#212) Not recommended phpdocs tag @access used
mod/mediagallery/classes/collection.php
(#21) Package is not specified for class collection. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#37) Function collection::__construct is not documented
(#65) Function collection::delete is not documented
(#109) Function collection::get_context is not documented
(#113) Function collection::get_my_galleries is not documented
(#235) Function collection::count_galleries is not documented
(#262) Function collection::get_public_galleries_by_contextid is not documented
(#299) Function collection::get_my_galleries_by_contextid is not documented
(#441) Function collection::was_deleted is not documented
(#445) Function collection::sync is not documented
(#494) Function collection::user_can_remove is not documented
(#547) Function collection::get_group_gallery_counts is not documented
(#27) Variable collection::$cm is not documented
(#28) Variable collection::$context is not documented
(#29) Variable collection::$options is not documented
(#32) Variable collection::$record is not documented
(#33) Variable collection::$submitted is not documented
(#34) Variable collection::$table is not documented
(#35) Variable collection::$deleted is not documented
(#21) No one-line description found in phpdocs for class collection
(#51) Phpdocs for function collection::create has incomplete parameters list
(#244) Phpdocs for function collection::get_galleries has incomplete parameters list
(#455) Phpdocs for function collection::get_userid_from_logs has incomplete parameters list
(#21) Class collection does not have @copyright tag
(#21) Class collection does not have @license tag
(#243) Not recommended phpdocs tag @access used
(#348) Not recommended phpdocs tag @access used
(#381) Not recommended phpdocs tag @access used
(#400) Not recommended phpdocs tag @access used
(#413) Not recommended phpdocs tag @access used
(#457) Not recommended phpdocs tag @access used
(#511) Not recommended phpdocs tag @access used
mod/mediagallery/classes/event/collection_deleted.php
(#55) Function collection_deleted::get_description is not documented
(#60) Function collection_deleted::get_name is not documented
mod/mediagallery/classes/event/gallery_created.php
(#55) Function gallery_created::get_description is not documented
(#60) Function gallery_created::get_name is not documented
mod/mediagallery/classes/event/gallery_updated.php
(#55) Function gallery_updated::get_description is not documented
(#60) Function gallery_updated::get_name is not documented
mod/mediagallery/classes/event/gallery_viewed.php
(#55) Function gallery_viewed::get_description is not documented
(#60) Function gallery_viewed::get_name is not documented
mod/mediagallery/classes/event/item_created.php
(#55) Function item_created::get_description is not documented
(#60) Function item_created::get_name is not documented
mod/mediagallery/classes/event/item_deleted.php
(#55) Function item_deleted::get_description is not documented
(#60) Function item_deleted::get_name is not documented
mod/mediagallery/classes/event/item_updated.php
(#55) Function item_updated::get_description is not documented
(#60) Function item_updated::get_name is not documented
mod/mediagallery/classes/export_form.php
(#32) Class export_form is not documented
mod/mediagallery/classes/file_info.php
(#113) Phpdocs for function mod_mediagallery_file_info::get_filtered_children has incomplete parameters list
(#145) Phpdocs for function mod_mediagallery_file_info::get_non_empty_children has incomplete parameters list
(#156) Phpdocs for function mod_mediagallery_file_info::count_non_empty_children has incomplete parameters list
mod/mediagallery/classes/file_info_area_gallery.php
(#38) Function mod_mediagallery_file_info_area_gallery::__construct is not documented
(#36) Variable mod_mediagallery_file_info_area_gallery::$gallery is not documented
(#68) Phpdocs for function mod_mediagallery_file_info_area_gallery::get_non_empty_children has incomplete parameters list
mod/mediagallery/classes/form/search.php
(#23) Package is not specified for class search. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#23) Class search is not documented
(#24) Function search::definition is not documented
mod/mediagallery/classes/gallery.php
(#23) Package is not specified for class gallery. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#23) Class gallery is not documented
(#33) Function gallery::__construct is not documented
(#41) Function gallery::can_comment is not documented
(#51) Function gallery::can_like is not documented
(#59) Function gallery::copy is not documented
(#87) Function gallery::create is not documented
(#112) Function gallery::delete is not documented
(#174) Function gallery::get_collection is not documented
(#181) Function gallery::get_context is not documented
(#211) Function gallery::get_items is not documented
(#294) Function gallery::get_metainfo is not documented
(#299) Function gallery::has_items is not documented
(#337) Function gallery::moral_rights_asserted is not documented
(#354) Function gallery::sync is not documented
(#358) Function gallery::update_sortorder is not documented
(#395) Function gallery::user_can_contribute is not documented
(#452) Function gallery::user_can_remove is not documented
(#466) Function gallery::user_can_view is not documented
(#28) Variable gallery::$collection is not documented
(#29) Variable gallery::$context is not documented
(#30) Variable gallery::$items is not documented
(#31) Variable gallery::$table is not documented
(#25) Constant gallery::VIEW_CAROUSEL is not documented
(#26) Constant gallery::VIEW_GRID is not documented
(#137) There is no description in phpdocs for function download_items
(#138) Phpdocs for function gallery::download_items has incomplete parameters list
(#414) Phpdocs for function gallery::user_can_edit has incomplete parameters list
mod/mediagallery/classes/imagehelper.php
(#21) Package is not specified for class imagehelper. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class imagehelper is not documented
(#47) Function imagehelper::mirror is not documented
(#28) Not recommended phpdocs tag @static used
(#29) Not recommended phpdocs tag @access used
mod/mediagallery/classes/item.php
(#21) Package is not specified for class item. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class item is not documented
(#40) Function item::__construct is not documented
(#62) Function item::copy is not documented
(#94) Function item::create is not documented
(#127) Function item::create_from_archive is not documented
(#226) Function item::delete_all_by_gallery is not documented
(#254) Function item::generate_thumbnail is not documented
(#258) Function item::generate_image_by_type is not documented
(#303) Function item::get_image_resized is not documented
(#435) Function item::get_context is not documented
(#448) Function item::get_embed_url is not documented
(#465) Function item::get_file is not documented
(#480) Function item::get_stored_file_by_type is not documented
(#498) Function item::get_metainfo is not documented
(#516) Function item::get_structured_metainfo is not documented
(#569) Function item::get_youtube_videoid is not documented
(#584) Function item::get_source is not documented
(#594) Function item::get_image_url is not documented
(#636) Function item::get_box_url is not documented
(#640) Function item::get_image_url_by_type is not documented
(#697) Function item::get_like_count is not documented
(#706) Function item::get_socialinfo is not documented
(#743) Function item::get_userfeedback is not documented
(#748) Function item::file_icon is not documented
(#760) Function item::like is not documented
(#829) Function item::unlike is not documented
(#846) Function item::update is not documented
(#863) Function item::user_can_edit is not documented
(#889) Function item::user_can_remove is not documented
(#902) Function item::thebox_processed is not documented
(#23) Variable item::$context is not documented
(#24) Variable item::$gallery is not documented
(#25) Variable item::$table is not documented
(#31) Variable item::$lowres is not documented
(#32) Variable item::$thumbnail is not documented
(#33) Variable item::$defaultvalues is not documented
(#198) Phpdocs for function item::delete has incomplete parameters list
(#27) Phpdocs for variable item::$file does not contain @var or incorrect
mod/mediagallery/classes/mcsearch.php
(#42) Function mcsearch::__construct is not documented
(#46) Function mcsearch::get_results is not documented
(#39) Variable mcsearch::$params is not documented
(#40) Variable mcsearch::$results is not documented
(#156) Not recommended phpdocs tag @access used
(#184) Not recommended phpdocs tag @access used
(#215) Not recommended phpdocs tag @access used
mod/mediagallery/classes/output/collection/renderable.php
(#21) Package is not specified for class renderable. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class renderable is not documented
(#44) Function renderable::__construct is not documented
(#23) Variable renderable::$collection is not documented
(#24) Variable renderable::$galleries is not documented
(#25) Variable renderable::$maxreached is not documented
(#26) Variable renderable::$normallycanadd is not documented
(#27) Variable renderable::$readonly is not documented
(#28) Variable renderable::$tags is not documented
(#29) Variable renderable::$timestamp is not documented
(#32) Variable renderable::$hassubmitted is not documented
(#33) Variable renderable::$isassessable is not documented
(#34) Variable renderable::$linkedassigncmid is not documented
(#35) Variable renderable::$submissionsopen is not documented
(#36) Variable renderable::$userorgrouphasgallery is not documented
(#39) Variable renderable::$id is not documented
(#40) Variable renderable::$mode is not documented
(#41) Variable renderable::$thumbnailsperpage is not documented
(#42) Variable renderable::$thumbnailsperrow is not documented
mod/mediagallery/classes/output/gallery/renderable.php
(#21) Package is not specified for class renderable. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class renderable is not documented
(#39) Function renderable::__construct is not documented
(#26) Variable renderable::$gallery is not documented
(#28) Variable renderable::$editing is not documented
(#29) Variable renderable::$page is not documented
(#30) Variable renderable::$mediasize is not documented
(#31) Variable renderable::$mediasizeclass is not documented
(#32) Variable renderable::$comments is not documented
(#33) Variable renderable::$syncstamp is not documented
(#34) Variable renderable::$options is not documented
(#35) Variable renderable::$nosample is not documented
(#36) Variable renderable::$focus is not documented
(#37) Variable renderable::$galleryview is not documented
(#22) Constant renderable::MEDIASIZE_SM is not documented
(#23) Constant renderable::MEDIASIZE_MD is not documented
(#24) Constant renderable::MEDIASIZE_LG is not documented
mod/mediagallery/classes/output/searchresults/renderable.php
(#21) Package is not specified for class renderable. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class renderable is not documented
(#29) Function renderable::__construct is not documented
(#23) Variable renderable::$results is not documented
(#24) Variable renderable::$pageurl is not documented
(#25) Variable renderable::$totalcount is not documented
(#26) Variable renderable::$page is not documented
(#27) Variable renderable::$perpage is not documented
mod/mediagallery/classes/quickform/limitedurl.php
(#21) Package is not specified for class MoodleQuickForm_limitedurl. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class MoodleQuickForm_limitedurl is not documented
(#23) Variable MoodleQuickForm_limitedurl::$_helpbutton is not documented
(#26) Variable MoodleQuickForm_limitedurl::$_hiddenLabel is not documented
mod/mediagallery/classes/quickform/uploader.php
(#21) Package is not specified for class MoodleQuickForm_uploader. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class MoodleQuickForm_uploader is not documented
(#27) Function MoodleQuickForm_uploader::__construct is not documented
(#47) Function MoodleQuickForm_uploader::toHtml is not documented
(#23) Variable MoodleQuickForm_uploader::$_helpbutton is not documented
(#25) Variable MoodleQuickForm_uploader::$repo is not documented
mod/mediagallery/classes/quickform/uploader_standard.php
(#21) Package is not specified for class MoodleQuickForm_uploader_standard. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class MoodleQuickForm_uploader_standard is not documented
(#27) Function MoodleQuickForm_uploader_standard::toHtml is not documented
(#23) Variable MoodleQuickForm_uploader_standard::$_helpbutton is not documented
(#25) Variable MoodleQuickForm_uploader_standard::$repo is not documented
mod/mediagallery/classes/search_form.php
(#30) Class search_form is not documented
mod/mediagallery/classes/viewcontroller.php
(#22) Package is not specified for class viewcontroller. It is also not specified in file-level phpdocs
(#18) File-level phpdocs block is not found
(#22) Class viewcontroller is not documented
(#33) Function viewcontroller::__construct is not documented
(#45) Function viewcontroller::header is not documented
(#75) Function viewcontroller::action_search is not documented
(#113) Function viewcontroller::action_viewcollection is not documented
(#137) Function viewcontroller::action_viewgallery is not documented
(#24) Variable viewcontroller::$cm is not documented
(#25) Variable viewcontroller::$context is not documented
(#26) Variable viewcontroller::$course is not documented
(#27) Variable viewcontroller::$collection is not documented
(#28) Variable viewcontroller::$gallery is not documented
(#29) Variable viewcontroller::$options is not documented
(#30) Variable viewcontroller::$pageurl is not documented
(#31) Variable viewcontroller::$renderer is not documented
(#53) Not recommended phpdocs tag @access used
mod/mediagallery/db/install.php
(#17) No one-line description found in phpdocs for file
mod/mediagallery/db/log.php
(#24) Package mod is not valid
mod/mediagallery/db/upgrade.php
(#17) No one-line description found in phpdocs for file
mod/mediagallery/export.php
(#17) No one-line description found in phpdocs for file

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]

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

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]