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

(1231 errors, 187 warnings)

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

public/blocks/stash/backup/moodle2/backup_stash_block_task.class.php
(#36) Opening brace must not be followed by a blank line
(#56) Short array syntax must be used to define arrays
public/blocks/stash/backup/moodle2/backup_stash_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Opening brace must not be followed by a blank line
(#55) Line exceeds 132 characters; contains 139 characters
(#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
(#99) 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
public/blocks/stash/backup/moodle2/restore_stash_block_task.class.php
(#38) Opening brace must not be followed by a blank line
(#66) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#88) Expected 1 space after FUNCTION keyword; 0 found
(#106) The closing brace for the class must go on the next line after the body
public/blocks/stash/backup/moodle2/restore_stash_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Opening brace must not be followed by a blank line
(#66) Short array syntax must be used to define arrays
(#78) Line exceeds 132 characters; contains 134 characters
(#201) Missing docblock for function process_block_stash_removal
(#213) Missing docblock for function process_block_stash_remove_items
(#231) Missing docblock for function after_restore
(#248) Inline comments must start with a capital letter, digit or 3-dots sequence
(#248) Inline comments must end in full-stops, exclamation marks, or question marks
public/blocks/stash/block_stash.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Opening brace must not be followed by a blank line
(#76) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#78) Missing docblock for function specialization
(#94) Missing docblock for function instance_delete
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must start with a capital letter, digit or 3-dots sequence
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/drop.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#46) Missing docblock for constant drop::TABLE
(#48) Missing docblock for function define_properties
(#51) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
(#59) There should be a comma after the last array item in a multi-line array.
(#63) There should be a comma after the last array item in a multi-line array.
(#67) Expected 1 space after FUNCTION keyword; 0 found
(#69) There should be a comma after the last array item in a multi-line array.
(#70) There should be a comma after the last array item in a multi-line array.
(#89) Blank line found at end of control structure
(#122) There should be a comma after the last array item in a multi-line array.
(#253) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/drop_pickup.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant drop_pickup::TABLE
(#41) Missing docblock for function define_properties
(#44) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
(#51) There should be a comma after the last array item in a multi-line array.
(#56) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
(#81) Missing docblock for function detele_drop_for_user_item
public/blocks/stash/classes/drop_snippet_restore_decode_rule.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Opening brace must not be followed by a blank line
(#38) Short array syntax must be used to define arrays
(#118) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/event/item_acquired.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
public/blocks/stash/classes/event/swap_accepted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for function init
(#45) Missing docblock for function get_name
(#49) Missing docblock for function get_description
(#54) Missing docblock for function get_url
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/event/swap_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for function init
(#45) Missing docblock for function get_name
(#49) Missing docblock for function get_description
(#54) Missing docblock for function get_url
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external.php
(#56) Opening brace must not be followed by a blank line
(#157) There should be a comma after the last array item in a multi-line array.
(#176) There should be a comma after the last array item in a multi-line array.
(#210) Short array syntax must be used to define arrays
(#213) Opening parenthesis of a multi-line function call must be the last content on the line
(#213) Only one argument is allowed per line in a multi-line function call
(#213) Only one argument is allowed per line in a multi-line function call
(#214) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#214) Only one argument is allowed per line in a multi-line function call
(#214) Only one argument is allowed per line in a multi-line function call
(#214) Closing parenthesis of a multi-line function call must be on a line by itself
(#235) There should be a comma after the last array item in a multi-line array.
(#293) There should be a comma after the last array item in a multi-line array.
(#330) Short array syntax must be used to define arrays
(#405) Opening parenthesis of a multi-line function call must be the last content on the line
(#406) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#406) Closing parenthesis of a multi-line function call must be on a line by itself
(#418) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#440) Missing docblock for function get_stash_for_user
(#479) Missing docblock for function create_swap_request_parameters
(#484) Space before opening parenthesis of function call prohibited
(#488) There should be a comma after the last array item in a multi-line array.
(#492) Space before opening parenthesis of function call prohibited
(#496) There should be a comma after the last array item in a multi-line array.
(#499) There should be a comma after the last array item in a multi-line array.
(#503) Missing docblock for function create_swap_request
(#504) Opening parenthesis of a multi-line function call must be the last content on the line
(#505) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#505) Closing parenthesis of a multi-line function call must be on a line by itself
(#522) Missing docblock for function create_swap_request_returns
(#526) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/add_drop.php
(#20) Incorrect @package tag for file add_drop.php. Expected block_stash, found block_stash\external.
(#29) Missing docblock for class add_drop
(#29) Opening brace must not be followed by a blank line
(#31) Missing docblock for function execute_parameters
(#41) Missing docblock for function execute
(#42) Opening parenthesis of a multi-line function call must be the last content on the line
(#43) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#43) Closing parenthesis of a multi-line function call must be on a line by itself
(#58) Missing docblock for function execute_returns
public/blocks/stash/classes/external/add_item.php
(#20) Incorrect @package tag for file add_item.php. Expected block_stash, found block_stash\external.
(#31) Missing docblock for class add_item
(#31) Opening brace must not be followed by a blank line
(#33) Missing docblock for function execute_parameters
(#45) Missing docblock for function execute
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#49) Closing parenthesis of a multi-line function call must be on a line by itself
(#69) Short array syntax must be used to define arrays
(#72) Opening parenthesis of a multi-line function call must be the last content on the line
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Only one argument is allowed per line in a multi-line function call
(#73) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#73) Only one argument is allowed per line in a multi-line function call
(#73) Only one argument is allowed per line in a multi-line function call
(#73) Closing parenthesis of a multi-line function call must be on a line by itself
(#78) Missing docblock for function execute_returns
public/blocks/stash/classes/external/add_user_item.php
(#20) Incorrect @package tag for file add_user_item.php. Expected block_stash, found block_stash\external.
(#27) Missing docblock for class add_user_item
(#27) Opening brace must not be followed by a blank line
(#51) PHP4 style constructors are not allowed; use "__construct()" instead
public/blocks/stash/classes/external/create_trade.php
(#20) Incorrect @package tag for file create_trade.php. Expected block_stash, found block_stash\external.
(#30) Missing docblock for class create_trade
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for function execute_parameters
(#40) Space before opening parenthesis of function call prohibited
(#44) There should be a comma after the last array item in a multi-line array.
(#48) Space before opening parenthesis of function call prohibited
(#52) There should be a comma after the last array item in a multi-line array.
(#72) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#72) Multi-line function declarations must define one parameter per line
(#72) Multi-line function declarations must define one parameter per line
(#72) Multi-line function declarations must define one parameter per line
(#72) Multi-line function declarations must define one parameter per line
(#72) Multi-line function declarations must define one parameter per line
(#73) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#73) Multi-line function declarations must define one parameter per line
(#73) The closing parenthesis of a multi-line function declaration must be on a new line
(#74) Opening parenthesis of a multi-line function call must be the last content on the line
(#75) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'stashid'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'hashcode'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'title'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'gain'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'loss'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'additems'". Found: no spaces
(#75) No space found after comma in argument list
(#75) Commas (,) must be followed by white space.
(#75) Expected 1 space between the comma and "'lossitems'". Found: no spaces
(#75) Closing parenthesis of a multi-line function call must be on a line by itself
(#83) Space found before semicolon; expected ");" but found ") ;"
(#84) Space found before semicolon; expected ");" but found ") ;"
(#111) Missing docblock for function execute_returns
public/blocks/stash/classes/external/delete_removal.php
(#20) Incorrect @package tag for file delete_removal.php. Expected block_stash, found block_stash\external.
(#30) Missing docblock for class delete_removal
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for function execute_parameters
(#39) Missing docblock for function execute
(#55) Missing docblock for function execute_returns
public/blocks/stash/classes/external/drop_exporter.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Opening brace must not be followed by a blank line
(#41) Missing docblock for function define_class
(#45) Missing docblock for function define_related
(#46) Short array syntax must be used to define arrays
(#49) Missing docblock for function define_other_properties
(#52) There should be a comma after the last array item in a multi-line array.
(#55) There should be a comma after the last array item in a multi-line array.
(#58) There should be a comma after the last array item in a multi-line array.
(#63) Missing docblock for function get_other_values
(#75) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/dropwidget_select_data.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#55) Opening brace must not be followed by a blank line
(#64) There should be a comma after the last array item in a multi-line array.
(#68) Missing docblock for function get_all_drop_data
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) This comment is 78% valid code; is this commented out code?
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) This comment is 63% valid code; is this commented out code?
(#90) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#91) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#96) Missing docblock for function get_all_drop_data_returns
(#105) There should be a comma after the last array item in a multi-line array.
(#115) Space before opening parenthesis of function call prohibited
(#119) There should be a comma after the last array item in a multi-line array.
(#123) Space before opening parenthesis of function call prohibited
(#127) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/external/exporter.php
(#50) Missing docblock for class exporter
(#50) Opening brace must not be followed by a blank line
(#53) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#87) Blank line found at end of control structure
(#99) Blank line found at end of control structure
(#166) Long list syntax is not allowed
(#169) Blank line found at end of control structure
(#217) Short array syntax must be used to define arrays
(#297) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#333) Short array syntax must be used to define arrays
(#349) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#350) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#378) Short array syntax must be used to define arrays
(#384) Blank line found at end of control structure
(#405) Blank line found at end of control structure
(#407) Opening parenthesis of a multi-line function call must be the last content on the line
(#407) Only one argument is allowed per line in a multi-line function call
(#407) Only one argument is allowed per line in a multi-line function call
(#407) Only one argument is allowed per line in a multi-line function call
(#408) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#408) Closing parenthesis of a multi-line function call must be on a line by itself
(#415) Opening parenthesis of a multi-line function call must be the last content on the line
(#416) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#416) Only one argument is allowed per line in a multi-line function call
(#416) Closing parenthesis of a multi-line function call must be on a line by itself
(#443) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#443) Multi-line function declarations must define one parameter per line
(#444) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#444) The closing parenthesis of a multi-line function declaration must be on a new line
(#445) Short array syntax must be used to define arrays
(#502) Short array syntax must be used to define arrays
(#522) Blank line found at end of control structure
(#531) Opening parenthesis of a multi-line function call must be the last content on the line
(#532) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#532) Only one argument is allowed per line in a multi-line function call
(#532) Closing parenthesis of a multi-line function call must be on a line by itself
(#540) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/external_api.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for class external_api
(#32) Duplicate class name "block_stash\external\external_api" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_api.php on line 28
(#32) Missing docblock for class external_api
(#32) Each class must be in a file by itself
public/blocks/stash/classes/external/external_function_parameters.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for class external_function_parameters
(#32) Duplicate class name "block_stash\external\external_function_parameters" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_function_parameters.php on line 28
(#32) Missing docblock for class external_function_parameters
(#32) Each class must be in a file by itself
public/blocks/stash/classes/external/external_multiple_structure.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for class external_multiple_structure
(#32) Duplicate class name "block_stash\external\external_multiple_structure" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_multiple_structure.php on line 28
(#32) Missing docblock for class external_multiple_structure
(#32) Each class must be in a file by itself
public/blocks/stash/classes/external/external_single_structure.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for class external_single_structure
(#32) Duplicate class name "block_stash\external\external_single_structure" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_single_structure.php on line 28
(#32) Missing docblock for class external_single_structure
(#32) Each class must be in a file by itself
public/blocks/stash/classes/external/external_value.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for class external_value
(#32) Duplicate class name "block_stash\external\external_value" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_value.php on line 28
(#32) Missing docblock for class external_value
(#32) Each class must be in a file by itself
public/blocks/stash/classes/external/external_warnings.php
(#30) Missing docblock for class external_warnings
(#34) Duplicate class name "block_stash\external\external_warnings" found; first defined in /var/lib/jenkins/git_repositories/prechecker/public/blocks/stash/classes/external/external_warnings.php on line 30
(#34) Missing docblock for class external_warnings
(#34) Each class must be in a file by itself
public/blocks/stash/classes/external/item_exporter.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Opening brace must not be followed by a blank line
(#40) Missing docblock for function define_class
(#44) Missing docblock for function define_related
(#45) Short array syntax must be used to define arrays
(#48) Missing docblock for function define_other_properties
(#51) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
(#55) There should be a comma after the last array item in a multi-line array.
(#59) Missing docblock for function update_values
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Only one argument is allowed per line in a multi-line function call
(#62) Only one argument is allowed per line in a multi-line function call
(#62) Only one argument is allowed per line in a multi-line function call
(#63) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#63) Only one argument is allowed per line in a multi-line function call
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#67) Missing docblock for function get_other_values
(#80) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/itemlist.php
(#37) Space before opening parenthesis of function call prohibited
(#39) There should be a comma after the last array item in a multi-line array.
(#66) Expected 1 space after FUNCTION keyword; 0 found
(#72) There should be a comma after the last array item in a multi-line array.
(#98) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/external/items_exporter.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Opening brace must not be followed by a blank line
(#42) Missing docblock for function define_related
(#48) Missing docblock for function define_properties
(#57) Missing docblock for function get_other_values
(#66) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/leaderboard_settings.php
(#20) Incorrect @package tag for file leaderboard_settings.php. Expected block_stash, found block_stash\external.
(#30) Missing docblock for class leaderboard_settings
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for function update_block_setting_parameters
(#40) Missing docblock for function update_block_setting
(#41) Opening parenthesis of a multi-line function call must be the last content on the line
(#42) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#42) Closing parenthesis of a multi-line function call must be on a line by itself
(#51) Missing docblock for function update_block_setting_returns
(#55) Missing docblock for function update_leaderboard_setting_parameters
(#66) Missing docblock for function update_leaderboard_setting
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#68) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#84) There should be a comma after the last array item in a multi-line array.
(#92) Missing docblock for function update_leaderboard_setting_returns
(#96) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/persistent_exporter.php
(#40) Opening brace must not be followed by a blank line
(#51) The final declaration must precede the visibility declaration
(#51) Short array syntax must be used to define arrays
(#72) The final declaration must precede the visibility declaration
(#86) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/removal_activities.php
(#20) Incorrect @package tag for file removal_activities.php. Expected block_stash, found block_stash\external.
(#30) Missing docblock for class removal_activities
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for function execute_parameters
(#38) Missing docblock for function execute
(#61) Missing docblock for function execute_returns
public/blocks/stash/classes/external/save_removal.php
(#20) Incorrect @package tag for file save_removal.php. Expected block_stash, found block_stash\external.
(#30) Missing docblock for class save_removal
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for function execute_parameters
(#42) There should be a comma after the last array item in a multi-line array.
(#46) Missing docblock for function execute
(#60) There should be a comma after the last array item in a multi-line array.
(#69) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#71) Missing docblock for function execute_returns
public/blocks/stash/classes/external/trade_exporter.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Opening brace must not be followed by a blank line
(#40) Missing docblock for function define_class
(#44) Missing docblock for function define_related
(#45) Short array syntax must be used to define arrays
(#48) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/trade_items_exporter.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Opening brace must not be followed by a blank line
(#42) Missing docblock for function define_class
(#46) Missing docblock for function define_related
(#50) There should be a comma after the last array item in a multi-line array.
(#54) Missing docblock for function define_other_properties
(#57) There should be a comma after the last array item in a multi-line array.
(#60) There should be a comma after the last array item in a multi-line array.
(#63) There should be a comma after the last array item in a multi-line array.
(#66) There should be a comma after the last array item in a multi-line array.
(#69) There should be a comma after the last array item in a multi-line array.
(#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.
(#77) Missing docblock for function get_other_values
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Only one argument is allowed per line in a multi-line function call
(#80) Only one argument is allowed per line in a multi-line function call
(#81) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#81) Only one argument is allowed per line in a multi-line function call
(#81) Only one argument is allowed per line in a multi-line function call
(#81) Closing parenthesis of a multi-line function call must be on a line by itself
(#87) Expected 1 space after "!=="; 2 found
(#98) There should be a comma after the last array item in a multi-line array.
(#102) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/trade_summary_exporter.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
(#45) Missing docblock for function define_related
(#53) Missing docblock for function define_properties
(#66) Missing docblock for function get_other_values
(#85) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/user_item_exporter.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Opening brace must not be followed by a blank line
(#40) Missing docblock for function define_class
(#44) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/user_item_summary_exporter.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
(#45) Missing docblock for function define_related
(#53) Missing docblock for function define_properties
(#56) There should be a comma after the last array item in a multi-line array.
(#59) There should be a comma after the last array item in a multi-line array.
(#64) Missing docblock for function get_other_values
(#73) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/user_stash_exporter.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Opening brace must not be followed by a blank line
(#44) Missing docblock for function define_related
(#51) Missing docblock for function define_properties
(#55) There should be a comma after the last array item in a multi-line array.
(#60) Missing docblock for function get_other_values
(#62) Spaces must be used to indent lines; tabs are not allowed
(#71) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/external/userlist.php
(#20) Inline comments must start with a capital letter, digit or 3-dots sequence
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#20) This comment is 50% valid code; is this commented out code?
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#24) Expected at least 1 space before "."; 0 found
(#24) Expected at least 1 space after "."; 0 found
(#40) Space before opening parenthesis of function call prohibited
(#42) There should be a comma after the last array item in a multi-line array.
(#55) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#71) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#96) There should be a comma after the last array item in a multi-line array.
(#122) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/form/drop.php
(#41) Opening brace must not be followed by a blank line
(#43) Missing member variable doc comment
(#45) Missing member variable doc comment
(#45) Short array syntax must be used to define arrays
(#47) Missing member variable doc comment
(#47) Short array syntax must be used to define arrays
(#49) Missing docblock for function definition
(#67) Blank line found at end of control structure
(#83) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#84) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#84) Closing parenthesis of a multi-line function call must be on a line by itself
(#104) Opening parenthesis of a multi-line function call must be the last content on the line
(#104) Only one argument is allowed per line in a multi-line function call
(#104) Only one argument is allowed per line in a multi-line function call
(#105) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
(#112) Short array syntax must be used to define arrays
(#116) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/form/integer.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#43) Opening brace must not be followed by a blank line
(#52) Short array syntax must be used to define arrays
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Short array syntax must be used to define arrays
(#79) Visibility must be declared on method "_createElements"
(#79) Method name "_createElements" must not be prefixed with an underscore to indicate visibility
(#79) method name "block_stash_form_integer::_createElements" must be in lower-case letters only
(#111) Visibility must be declared on method "exportValue"
(#111) method name "block_stash_form_integer::exportValue" must be in lower-case letters only
(#111) Variable "submitValues" must be all lower-case
(#113) Variable "submitValues" must be all lower-case
(#117) Variable "submitValues" must be all lower-case
(#128) Visibility must be declared on method "onQuickFormEvent"
(#128) method name "block_stash_form_integer::onQuickFormEvent" must be in lower-case letters only
(#149) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/form/item.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#28) Missing @copyright tag
(#28) Missing @license tag
(#28) Missing docblock for class item
(#28) Opening brace must not be followed by a blank line
(#30) Missing member variable doc comment
(#32) Missing member variable doc comment
(#32) Short array syntax must be used to define arrays
(#34) Missing member variable doc comment
(#34) Short array syntax must be used to define arrays
(#61) Line exceeds 132 characters; contains 149 characters
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Short array syntax must be used to define arrays
(#78) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#88) Opening parenthesis of a multi-line function call must be the last content on the line
(#88) Only one argument is allowed per line in a multi-line function call
(#88) Only one argument is allowed per line in a multi-line function call
(#88) Only one argument is allowed per line in a multi-line function call
(#88) Short array syntax must be used to define arrays
(#89) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#89) Closing parenthesis of a multi-line function call must be on a line by itself
(#102) Opening parenthesis of a multi-line function call must be the last content on the line
(#102) Only one argument is allowed per line in a multi-line function call
(#102) Only one argument is allowed per line in a multi-line function call
(#103) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#103) Closing parenthesis of a multi-line function call must be on a line by itself
(#110) Short array syntax must be used to define arrays
(#114) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/form/persistent.php
(#20) Incorrect @package tag for file persistent.php. Expected block_stash, found tool_lp.
(#32) Expected at least 1 space before "."; 0 found
(#32) Expected at least 1 space after "."; 0 found
(#40) Opening brace must not be followed by a blank line
(#46) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#70) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#70) Multi-line function declarations must define one parameter per line
(#70) Multi-line function declarations must define one parameter per line
(#70) Multi-line function declarations must define one parameter per line
(#71) Multi-line function declaration not indented correctly; expected 8 spaces but found 32
(#71) Multi-line function declarations must define one parameter per line
(#71) The closing parenthesis of a multi-line function declaration must be on a new line
(#143) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#179) There should be a comma after the last array item in a multi-line array.
(#245) The final declaration must precede the visibility declaration
public/blocks/stash/classes/form/removal.php
(#41) Opening brace must not be followed by a blank line
(#44) Missing member variable doc comment
(#45) Missing member variable doc comment
(#47) Missing docblock for function definition
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#84) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#84) Closing parenthesis of a multi-line function call must be on a line by itself
(#90) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) This comment is 62% valid code; is this commented out code?
(#98) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#100) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Short array syntax must be used to define arrays
(#109) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/form/trade.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#26) Missing @copyright tag
(#26) Missing @license tag
(#26) Missing docblock for class trade
(#26) Opening brace must not be followed by a blank line
(#28) Missing member variable doc comment
(#30) Missing member variable doc comment
(#30) Short array syntax must be used to define arrays
(#32) Missing member variable doc comment
(#32) Short array syntax must be used to define arrays
(#84) Opening parenthesis of a multi-line function call must be the last content on the line
(#84) Only one argument is allowed per line in a multi-line function call
(#84) Only one argument is allowed per line in a multi-line function call
(#85) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#85) Closing parenthesis of a multi-line function call must be on a line by itself
(#92) Short array syntax must be used to define arrays
(#96) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/form/tradeitem.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#26) Missing @copyright tag
(#26) Missing @license tag
(#26) Missing docblock for class tradeitem
(#26) Opening brace must not be followed by a blank line
(#28) Missing member variable doc comment
(#30) Missing member variable doc comment
(#30) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#74) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/helper.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Opening brace must not be followed by a blank line
(#112) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/item.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant item::TABLE
(#41) Missing docblock for function define_properties
(#52) There should be a comma after the last array item in a multi-line array.
(#57) 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.
(#67) There should be a comma after the last array item in a multi-line array.
(#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.
(#151) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/local/leaderboard_base.php
(#24) Missing @copyright tag
(#24) Missing @license tag
(#24) Missing docblock for class leaderboard_base
(#24) Opening brace must not be followed by a blank line
(#26) Missing member variable doc comment
(#27) Missing member variable doc comment
(#29) Missing docblock for function __construct
(#41) Missing docblock for function get_settings
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space between the comma and "''". Found: no spaces
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space between the comma and "[". Found: no spaces
(#103) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#103) Expected 1 space after FOREACH keyword; 0 found
(#106) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/local/leaderboards/most_items.php
(#25) Missing @copyright tag
(#25) Missing @license tag
(#25) Missing docblock for class most_items
(#25) Opening brace must not be followed by a blank line
(#27) Missing docblock for function get_title
(#31) Missing docblock for function get_leaderboard_data
public/blocks/stash/classes/local/leaderboards/most_singular_item.php
(#26) Missing @copyright tag
(#26) Missing @license tag
(#26) Missing docblock for class most_singular_item
(#27) Missing member variable doc comment
(#29) Missing docblock for function set_itemid
(#33) Missing docblock for function get_title
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Missing docblock for function get_leaderboard_data
(#63) Missing docblock for function options_html
public/blocks/stash/classes/local/leaderboards/most_unique_items.php
(#25) Missing @copyright tag
(#25) Missing @license tag
(#25) Missing docblock for class most_unique_items
(#25) Opening brace must not be followed by a blank line
(#27) Missing docblock for function get_title
(#31) Missing docblock for function get_leaderboard_data
(#50) Function closing brace must go on the next line following the body; found 1 blank lines before brace
public/blocks/stash/classes/local/stash_elements/removal_helper.php
(#20) Incorrect @package tag for file removal_helper.php. Expected block_stash, found block_stash\local\stash_elements.
(#31) Missing docblock for class removal_helper
(#31) Opening brace must not be followed by a blank line
(#33) Missing member variable doc comment
(#35) Missing docblock for function __construct
(#39) Missing docblock for function handle_form_data
(#50) There should be a comma after the last array item in a multi-line array.
(#66) There should be a comma after the last array item in a multi-line array.
(#74) Missing docblock for function get_all_removals
(#80) Missing docblock for function get_full_removal_details
(#90) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#93) Missing docblock for function get_removal_details
(#117) Missing docblock for function can_user_lose_removal_items
(#126) Missing docblock for function remove_user_item
(#137) Empty IF statement detected
(#139) Expected "} else if (...) {\n"; found "} else if (...) {\n"
(#139) Expected 1 space after ELSE keyword; 2 found
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#181) Missing docblock for function get_quizzes_for_course
(#186) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#186) Expected 1 space after FOREACH keyword; 0 found
(#214) Missing docblock for function delete_removal_configuration
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#222) Inline comments must start with a capital letter, digit or 3-dots sequence
(#222) Inline comments must end in full-stops, exclamation marks, or question marks
(#226) Missing docblock for function delete_all_instance_data
(#228) Inline comments must end in full-stops, exclamation marks, or question marks
public/blocks/stash/classes/manager.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
(#67) Missing @var tag in member variable comment
(#154) Space found before comma in argument list
(#154) Expected no space between "'detail'" and the comma. Found: a new line
(#164) Blank line found at start of control structure
(#195) Blank line found at end of control structure
(#588) There should be a comma after the last array item in a multi-line array.
(#594) Missing docblock for function set_enabled
(#688) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#755) Short array syntax must be used to define arrays
(#761) Short array syntax must be used to define arrays
(#761) There should be a comma after the last array item in a multi-line array.
(#763) Expected 0 spaces before closing parenthesis; newline found
(#858) There should be a comma after the last array item in a multi-line array.
(#860) Expected 0 spaces before closing parenthesis; newline found
(#975) Missing docblock for function get_all_trade_data
(#987) Inline comments must start with a capital letter, digit or 3-dots sequence
(#987) Inline comments must end in full-stops, exclamation marks, or question marks
(#987) This comment is 80% valid code; is this commented out code?
(#998) There should be a comma after the last array item in a multi-line array.
(#1004) There should be a comma after the last array item in a multi-line array.
(#1009) There should be a comma after the last array item in a multi-line array.
(#1012) Blank line found at end of control structure
(#1033) Blank line found at end of control structure
(#1065) Missing docblock for function get_trade_item
(#1071) Missing docblock for function get_trade_items
(#1077) Missing docblock for function get_full_trade_items_data
(#1092) Opening parenthesis of a multi-line function call must be the last content on the line
(#1092) Only one argument is allowed per line in a multi-line function call
(#1092) Only one argument is allowed per line in a multi-line function call
(#1093) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#1093) Only one argument is allowed per line in a multi-line function call
(#1093) Only one argument is allowed per line in a multi-line function call
(#1093) There should be a comma after the last array item in a multi-line array.
(#1093) Closing parenthesis of a multi-line function call must be on a line by itself
(#1101) Opening parenthesis of a multi-line function call must be the last content on the line
(#1101) Only one argument is allowed per line in a multi-line function call
(#1101) Only one argument is allowed per line in a multi-line function call
(#1102) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#1102) Only one argument is allowed per line in a multi-line function call
(#1102) Only one argument is allowed per line in a multi-line function call
(#1102) There should be a comma after the last array item in a multi-line array.
(#1102) Closing parenthesis of a multi-line function call must be on a line by itself
(#1110) Missing docblock for function do_trade
(#1144) There should be a comma after the last array item in a multi-line array.
(#1148) Missing docblock for function user_has_item_to_trade
(#1192) Missing docblock for function get_drops_for_items_and_trade
(#1217) Opening parenthesis of a multi-line function call must be the last content on the line
(#1217) Only one argument is allowed per line in a multi-line function call
(#1218) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#1218) Only one argument is allowed per line in a multi-line function call
(#1218) Closing parenthesis of a multi-line function call must be on a line by itself
(#1234) Opening parenthesis of a multi-line function call must be the last content on the line
(#1234) Only one argument is allowed per line in a multi-line function call
(#1235) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#1235) Only one argument is allowed per line in a multi-line function call
(#1235) Closing parenthesis of a multi-line function call must be on a line by itself
(#1241) Missing docblock for function set_config_entry
(#1244) Opening parenthesis of a multi-line function call must be the last content on the line
(#1244) Only one argument is allowed per line in a multi-line function call
(#1245) Multi-line function call not indented correctly; expected 12 spaces but found 24
(#1245) Only one argument is allowed per line in a multi-line function call
(#1245) Closing parenthesis of a multi-line function call must be on a line by itself
(#1371) Missing docblock for function delete_all_instance_data
(#1373) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1374) Inline comments must end in full-stops, exclamation marks, or question marks
(#1378) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1378) Inline comments must end in full-stops, exclamation marks, or question marks
(#1381) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1382) Inline comments must end in full-stops, exclamation marks, or question marks
(#1391) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1391) Inline comments must end in full-stops, exclamation marks, or question marks
(#1399) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1402) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1402) Inline comments must end in full-stops, exclamation marks, or question marks
(#1406) Missing docblock for function delete_all_users_items
(#1409) Inline comments must end in full-stops, exclamation marks, or question marks
(#1416) Inline comments must end in full-stops, exclamation marks, or question marks
(#1426) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1426) Expected 1 space after FOREACH keyword; 0 found
public/blocks/stash/classes/observer.php
(#32) Opening brace must not be followed by a blank line
(#55) Expected 1 space after FUNCTION keyword; 0 found
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Missing docblock for function quiz_module_viewed
public/blocks/stash/classes/output/block_content.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Missing docblock for class block_content
(#35) Opening brace must not be followed by a blank line
(#37) Missing member variable doc comment
(#39) Missing member variable doc comment
(#41) Missing docblock for function __construct
(#46) Missing docblock for function export_for_template
(#48) Short array syntax must be used to define arrays
(#51) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#73) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#76) Line exceeds 132 characters; contains 135 characters
(#77) Short array syntax must be used to define arrays
(#99) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/drop.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Opening brace must not be followed by a blank line
(#82) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/drop_image.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
(#79) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/drop_text.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Opening brace must not be followed by a blank line
(#56) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/drops_table.php
(#48) Opening brace must not be followed by a blank line
(#69) Short array syntax must be used to define arrays
(#74) 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
(#81) There should be a comma after the last array item in a multi-line array.
(#85) Each PHP statement must be on a line by itself
(#86) Expected at least 1 space after "."; 0 found
(#115) Opening parenthesis of a multi-line function call must be the last content on the line
(#116) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#116) Closing parenthesis of a multi-line function call must be on a line by itself
(#122) Opening parenthesis of a multi-line function call must be the last content on the line
(#123) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#123) Closing parenthesis of a multi-line function call must be on a line by itself
(#197) Blank line found at end of control structure
(#202) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#204) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/fulltrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#49) Missing member variable doc comment
(#51) Missing member variable doc comment
(#53) Missing member variable doc comment
(#55) Missing member variable doc comment
(#57) Missing member variable doc comment
(#59) Missing member variable doc comment
(#72) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $trade.
(#72) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $tradeitems.
(#72) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $courseid.
(#142) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/item.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace must not be followed by a blank line
(#73) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/item_edit_form.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) Expected at least 1 space before "."; 0 found
(#30) Expected at least 1 space after "."; 0 found
(#41) Opening brace must not be followed by a blank line
(#46) Expected "function abc(...)"; found "function abc (...)"
(#46) Expected 0 spaces after "definition"; 1 found
(#46) Expected 0 spaces before opening parenthesis; 1 found
public/blocks/stash/classes/output/items_table.php
(#48) Opening brace must not be followed by a blank line
(#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.
(#74) 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.
(#82) There should be a comma after the last array item in a multi-line array.
(#112) Opening parenthesis of a multi-line function call must be the last content on the line
(#113) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#113) Closing parenthesis of a multi-line function call must be on a line by itself
(#118) Opening parenthesis of a multi-line function call must be the last content on the line
(#119) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#119) Closing parenthesis of a multi-line function call must be on a line by itself
(#125) Opening parenthesis of a multi-line function call must be the last content on the line
(#126) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#126) Closing parenthesis of a multi-line function call must be on a line by itself
(#158) There should be a comma after the last array item in a multi-line array.
(#224) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/local/configuration/removals.php
(#35) Missing docblock for class removals
(#35) Opening brace must not be followed by a blank line
(#37) Missing member variable doc comment
(#39) Missing docblock for function __construct
(#39) Visibility must be declared on method "__construct"
(#43) Missing docblock for function add_to_jsondata
(#69) No space found after comma in argument list
(#69) Commas (,) must be followed by white space.
(#69) Expected 1 space between the comma and "$action". Found: no spaces
(#71) Line exceeds 132 characters; contains 142 characters
(#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) There should be a comma after the last array item in a multi-line array.
(#94) Line exceeds 132 characters; contains 138 characters
(#101) There should be a comma after the last array item in a multi-line array.
(#105) Blank line found at end of control structure
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) This comment is 67% valid code; is this commented out code?
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/local/main_pages/leaderboard_content.php
(#20) Incorrect @package tag for file leaderboard_content.php. Expected block_stash, found block_stash\output\local\main_pages.
(#32) Missing docblock for class leaderboard_content
(#32) Opening brace must not be followed by a blank line
(#34) Missing member variable doc comment
(#36) Missing docblock for function __construct
(#40) Missing docblock for function export_for_template
(#49) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#49) Expected 1 space after FOREACH keyword; 0 found
(#52) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#52) Expected 1 space after FOREACH keyword; 0 found
(#65) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/output/local/main_pages/settings_page.php
(#20) Incorrect @package tag for file settings_page.php. Expected block_stash, found block_stash\output\local\main_pages.
(#35) Missing docblock for class settings_page
(#35) Opening brace must not be followed by a blank line
(#37) Missing member variable doc comment
(#39) Missing docblock for function __construct
(#43) Line indented incorrectly; expected 4 spaces, found 5
(#43) Missing docblock for function export_for_template
(#51) There should be a comma after the last array item in a multi-line array.
(#53) Line indented incorrectly; expected 4 spaces, found 5
(#55) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/renderer.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) Opening brace must not be followed by a blank line
(#65) Long list syntax is not allowed
(#196) Missing docblock for function render_block_content
(#201) Missing docblock for function render_profile_content
(#206) Missing docblock for function render_drop_image
(#211) Missing docblock for function render_drop_text
(#216) Missing docblock for function render_item_xsmall
(#221) Missing docblock for function render_trade
(#226) Missing docblock for function render_settings_page
(#231) Missing docblock for function render_user_inventory
(#236) Missing docblock for function render_trade_form
(#238) Inline comments must start with a capital letter, digit or 3-dots sequence
(#243) Missing docblock for function render_swapdetail
(#248) Missing docblock for function render_swapofferdetail
(#254) Missing docblock for function render_swaprequests
(#259) Missing docblock for function render_leaderboard_settings
(#265) Missing docblock for function render_removals
(#271) Missing docblock for function render_reset_user_button
(#276) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/report_table.php
(#51) Opening brace must not be followed by a blank line
(#74) Short array syntax must be used to define arrays
(#78) There should be a comma after the last array item in a multi-line array.
(#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.
(#89) Short array syntax must be used to define arrays
(#122) Long list syntax is not allowed
(#160) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#161) Closing parenthesis of a multi-line function call must be on a line by itself
(#167) Opening parenthesis of a multi-line function call must be the last content on the line
(#168) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#168) Closing parenthesis of a multi-line function call must be on a line by itself
(#240) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/swap_details.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#52) Missing member variable doc comment
(#54) Missing member variable doc comment
(#56) Missing member variable doc comment
(#70) Commas (,) must be followed by white space.
(#70) Expected 1 space between the comma and "'courseid'". Found: no spaces
(#75) Missing docblock for function get_user_details
(#83) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#83) Expected 1 space after FOREACH keyword; 0 found
(#94) Missing docblock for function get_my_items
(#98) Missing docblock for function get_their_items
(#102) Missing docblock for function get_items
(#105) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) This comment is 80% valid code; is this commented out code?
(#111) Opening parenthesis of a multi-line function call must be the last content on the line
(#111) Only one argument is allowed per line in a multi-line function call
(#111) Only one argument is allowed per line in a multi-line function call
(#111) Only one argument is allowed per line in a multi-line function call
(#112) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#112) Only one argument is allowed per line in a multi-line function call
(#112) Closing parenthesis of a multi-line function call must be on a line by itself
(#119) Missing docblock for function use_offer_decline_url
(#120) Commas (,) must be followed by white space.
(#120) Expected 1 space between the comma and "'courseid'". Found: no spaces
(#140) Commas (,) must be followed by white space.
(#140) Expected 1 space between the comma and "'courseid'". Found: no spaces
(#149) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/swap_requests.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#52) Missing member variable doc comment
(#65) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#67) Missing docblock for function get_status_string
(#87) Expected 1 space after FUNCTION keyword; 0 found
(#93) There should be a comma after the last array item in a multi-line array.
(#96) Opening parenthesis of a multi-line function call must be the last content on the line
(#96) Only one argument is allowed per line in a multi-line function call
(#96) Only one argument is allowed per line in a multi-line function call
(#96) Only one argument is allowed per line in a multi-line function call
(#97) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#97) Closing parenthesis of a multi-line function call must be on a line by itself
(#126) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/trade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#92) Expected 1 newline at end of file; 0 found
(#92) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/output/trades_table.php
(#47) Opening brace must not be followed by a blank line
(#68) Short array syntax must be used to define arrays
(#70) There should be a comma after the last array item in a multi-line array.
(#72) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#78) There should be a comma after the last array item in a multi-line array.
(#107) Opening parenthesis of a multi-line function call must be the last content on the line
(#108) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#108) Closing parenthesis of a multi-line function call must be on a line by itself
(#114) Opening parenthesis of a multi-line function call must be the last content on the line
(#115) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#115) Closing parenthesis of a multi-line function call must be on a line by itself
(#134) There should be a comma after the last array item in a multi-line array.
(#183) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/page_helper.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for function setup_for_drop
(#76) Missing docblock for function setup_for_item
(#106) Missing docblock for function setup_for_trade
(#136) Missing docblock for function setup_for_trade_item
(#166) Missing docblock for function setup_for_report
(#196) Missing docblock for function setup_for_reset
(#213) Inline comments must start with a capital letter, digit or 3-dots sequence
(#213) This comment is 75% valid code; is this commented out code?
(#222) Missing docblock for function setup_for_lbsettings
(#243) Missing docblock for function setup_for_removal
(#265) Missing docblock for function setup_for_settings
(#287) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/persistent.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) Opening brace must not be followed by a blank line
(#52) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#57) Expected "bool" but found "boolean" for @var tag in member variable comment
(#66) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $record.
(#109) Expected at least 1 space after "."; 0 found
(#135) Expected at least 1 space after "."; 0 found
(#180) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#206) Short array syntax must be used to define arrays
(#208) There should be a comma after the last array item in a multi-line array.
(#213) Short array syntax must be used to define arrays
(#216) Blank line found at start of control structure
(#227) Blank line found at end of control structure
(#230) Blank line found at end of control structure
(#233) Blank line found at end of control structure
(#251) Short array syntax must be used to define arrays
(#254) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#255) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#368) Short array syntax must be used to define arrays
(#526) Short array syntax must be used to define arrays
(#599) Blank line found at start of control structure
(#601) Short array syntax must be used to define arrays
(#603) Blank line found at start of control structure
(#634) Blank line found at start of control structure
(#640) Expected at least 1 space before "."; 0 found
(#721) Short array syntax must be used to define arrays
(#730) Short array syntax must be used to define arrays
(#745) Short array syntax must be used to define arrays
(#769) Short array syntax must be used to define arrays
(#776) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#790) Short array syntax must be used to define arrays
(#800) Short array syntax must be used to define arrays
(#822) Short array syntax must be used to define arrays
(#851) Short array syntax must be used to define arrays
(#861) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $params.
(#865) Expected 1 blank line at end of file; 2 found
public/blocks/stash/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#52) Opening brace must not be followed by a blank line
(#54) The first trait import statement must be declared on the first non-comment line after the class opening brace
(#62) Method name "_get_metadata" must not be prefixed with an underscore to indicate visibility
(#101) Method name "_get_contexts_for_userid" must not be prefixed with an underscore to indicate visibility
(#157) Method name "_export_user_data" must not be prefixed with an underscore to indicate visibility
(#161) Expected 1 space after FUNCTION keyword; 0 found
(#163) Expected 1 space after FUNCTION keyword; 0 found
(#171) Long list syntax is not allowed
(#199) Expected 1 space after FUNCTION keyword; 0 found
(#206) There should be a comma after the last array item in a multi-line array.
(#217) There should be a comma after the last array item in a multi-line array.
(#223) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#223) Expected 1 space after FUNCTION keyword; 0 found
(#241) Inline comments must start with a capital letter, digit or 3-dots sequence
(#241) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) This comment is 80% valid code; is this commented out code?
(#244) Expected 1 space after FUNCTION keyword; 0 found
(#255) There should be a comma after the last array item in a multi-line array.
(#259) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#261) Function closing brace must go on the next line following the body; found 2 blank lines before brace
(#261) Expected 1 space after FUNCTION keyword; 0 found
(#275) Method name "_delete_data_for_all_users_in_context" must not be prefixed with an underscore to indicate visibility
(#288) Long list syntax is not allowed
(#298) Long list syntax is not allowed
(#307) Long list syntax is not allowed
(#315) Long list syntax is not allowed
(#318) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#325) Method name "_delete_data_for_user" must not be prefixed with an underscore to indicate visibility
(#330) Expected 1 space after FUNCTION keyword; 0 found
(#332) Expected 1 space after FUNCTION keyword; 0 found
(#337) Blank line found at start of control structure
(#340) Long list syntax is not allowed
(#348) Long list syntax is not allowed
(#354) Long list syntax is not allowed
(#392) Long list syntax is not allowed
(#408) Long list syntax is not allowed
(#417) Missing docblock for function get_swap_detail_ids_from_courseids
(#424) Long list syntax is not allowed
(#432) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#434) Missing docblock for function get_stashids_from_courseids
(#441) Long list syntax is not allowed
(#458) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#458) Multi-line function declarations must define one parameter per line
(#458) Multi-line function declarations must define one parameter per line
(#459) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#459) Multi-line function declarations must define one parameter per line
(#459) The closing parenthesis of a multi-line function declaration must be on a new line
(#479) Missing docblock for function transform_swap_status
(#498) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/restore_decode_rule.php
(#43) Opening brace must not be followed by a blank line
(#83) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/shortcodes.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Opening brace must not be followed by a blank line
(#87) Blank line found at end of control structure
(#91) Blank line found at end of control structure
(#144) Blank line found at end of control structure
(#148) Blank line found at end of control structure
(#160) Expected 1 blank line at end of file; 2 found
(#160) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/stash.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant stash::TABLE
(#41) Missing docblock for function define_properties
(#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.
(#80) Blank line found at end of control structure
(#169) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/swap.php
(#34) Opening brace must not be followed by a blank line
(#36) Missing docblock for constant swap::TABLE
(#37) Missing docblock for constant swap::TABLE_DETAIL
(#39) Missing docblock for constant swap::BLOCK_STASH_SWAP_APPROVE
(#40) Missing docblock for constant swap::BLOCK_STASH_SWAP_DECLINE
(#41) Missing docblock for constant swap::BLOCK_STASH_SWAP_COMPLETED
(#42) Missing docblock for constant swap::BLOCK_STASH_SWAP_VIEWED
(#44) Missing member variable doc comment
(#45) Missing member variable doc comment
(#46) Missing member variable doc comment
(#47) Missing member variable doc comment
(#52) Missing member variable doc comment
(#53) Missing member variable doc comment
(#54) Missing member variable doc comment
(#56) Missing docblock for function __construct
(#56) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#56) Multi-line function declarations must define one parameter per line
(#56) Multi-line function declarations must define one parameter per line
(#56) Multi-line function declarations must define one parameter per line
(#56) Multi-line function declarations must define one parameter per line
(#57) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#57) Multi-line function declarations must define one parameter per line
(#57) Multi-line function declarations must define one parameter per line
(#57) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $status.
(#57) The closing parenthesis of a multi-line function declaration must be on a new line
(#73) There must not be a space before the colon in a return type declaration
(#82) There must not be a space before the colon in a return type declaration
(#86) Missing docblock for function get_initiator_items
(#86) There must not be a space before the colon in a return type declaration
(#90) Missing docblock for function get_receiver_items
(#90) There must not be a space before the colon in a return type declaration
(#94) Missing docblock for function get_receiver_id
(#94) There must not be a space before the colon in a return type declaration
(#98) Missing docblock for function get_initiator_id
(#98) There must not be a space before the colon in a return type declaration
(#107) There must not be a space before the colon in a return type declaration
(#117) There should be a comma after the last array item in a multi-line array.
(#133) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#141) There must not be a space before the colon in a return type declaration
(#147) There should be a comma after the last array item in a multi-line array.
(#156) There must not be a space before the colon in a return type declaration
(#170) There must not be a space before the colon in a return type declaration
(#178) Expected at least 1 space before "."; 0 found
(#192) There should be a comma after the last array item in a multi-line array.
(#204) Opening parenthesis of a multi-line function call must be the last content on the line
(#204) Only one argument is allowed per line in a multi-line function call
(#204) Only one argument is allowed per line in a multi-line function call
(#204) Only one argument is allowed per line in a multi-line function call
(#204) Only one argument is allowed per line in a multi-line function call
(#204) Only one argument is allowed per line in a multi-line function call
(#205) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#205) Closing parenthesis of a multi-line function call must be on a line by itself
(#210) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/swap_handler.php
(#30) Missing docblock for class swap_handler
(#30) Opening brace must not be followed by a blank line
(#32) Missing member variable doc comment
(#34) Missing member variable doc comment
(#36) Missing docblock for function __construct
(#41) Missing docblock for function view_swap_invite
(#47) Missing docblock for function decline_swap
(#53) Missing docblock for function delete_swap
(#84) There should be a comma after the last array item in a multi-line array.
(#104) There should be a comma after the last array item in a multi-line array.
(#137) Expected 1 space after FUNCTION keyword; 0 found
(#209) Blank line found at end of control structure
(#216) Opening parenthesis of a multi-line function call must be the last content on the line
(#216) Only one argument is allowed per line in a multi-line function call
(#217) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#217) Closing parenthesis of a multi-line function call must be on a line by itself
(#226) There should be a comma after the last array item in a multi-line array.
(#231) Opening parenthesis of a multi-line function call must be the last content on the line
(#232) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#232) Only one argument is allowed per line in a multi-line function call
(#232) Closing parenthesis of a multi-line function call must be on a line by itself
(#246) Opening parenthesis of a multi-line function call must be the last content on the line
(#246) Only one argument is allowed per line in a multi-line function call
(#247) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#247) Closing parenthesis of a multi-line function call must be on a line by itself
(#256) There should be a comma after the last array item in a multi-line array.
(#261) Opening parenthesis of a multi-line function call must be the last content on the line
(#262) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#262) Only one argument is allowed per line in a multi-line function call
(#262) Closing parenthesis of a multi-line function call must be on a line by itself
(#269) Expected 1 space after FUNCTION keyword; 0 found
(#272) Expected 1 space after FUNCTION keyword; 0 found
(#293) There should be a comma after the last array item in a multi-line array.
(#295) Expected 0 spaces before closing parenthesis; newline found
(#318) Inline comments must end in full-stops, exclamation marks, or question marks
(#370) Long list syntax is not allowed
(#395) There should be a comma after the last array item in a multi-line array.
(#397) Inline comments must start with a capital letter, digit or 3-dots sequence
(#397) This comment is 77% valid code; is this commented out code?
(#398) Inline comments must end in full-stops, exclamation marks, or question marks
(#406) There should be a comma after the last array item in a multi-line array.
(#408) Inline comments must start with a capital letter, digit or 3-dots sequence
(#408) Inline comments must end in full-stops, exclamation marks, or question marks
(#408) This comment is 75% valid code; is this commented out code?
(#415) There should be a comma after the last array item in a multi-line array.
(#420) Inline comments must start with a capital letter, digit or 3-dots sequence
(#420) Inline comments must end in full-stops, exclamation marks, or question marks
(#420) This comment is 80% valid code; is this commented out code?
(#423) Inline comments must start with a capital letter, digit or 3-dots sequence
(#423) Inline comments must end in full-stops, exclamation marks, or question marks
(#423) This comment is 80% valid code; is this commented out code?
(#429) There should be a comma after the last array item in a multi-line array.
(#431) Inline comments must start with a capital letter, digit or 3-dots sequence
(#431) This comment is 71% valid code; is this commented out code?
(#433) Inline comments must end in full-stops, exclamation marks, or question marks
(#441) There should be a comma after the last array item in a multi-line array.
(#443) Inline comments must start with a capital letter, digit or 3-dots sequence
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
(#443) This comment is 75% valid code; is this commented out code?
(#450) There should be a comma after the last array item in a multi-line array.
(#455) Inline comments must start with a capital letter, digit or 3-dots sequence
(#455) This comment is 67% valid code; is this commented out code?
(#456) Inline comments must end in full-stops, exclamation marks, or question marks
(#475) Inline comments must start with a capital letter, digit or 3-dots sequence
(#496) There should be a comma after the last array item in a multi-line array.
(#504) There should be a comma after the last array item in a multi-line array.
(#517) There should be a comma after the last array item in a multi-line array.
(#519) Expected 0 spaces before closing parenthesis; newline found
(#523) Missing docblock for function check_stash_for_item_and_quantity
(#531) Line indented incorrectly; expected 8 spaces, found 9
(#531) Closing brace indented incorrectly; expected 8 spaces, found 9
(#535) Missing docblock for function merge_items
(#548) Missing docblock for function veryify_my_swap_requests
(#553) Missing docblock for function veryify_my_swap_offers
(#568) Expected 1 space after FUNCTION keyword; 0 found
(#604) Missing docblock for function get_swappable_items
(#617) Missing docblock for function delete_all_instance_data
public/blocks/stash/classes/task/swap_tidy_task.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class swap_tidy_task
(#19) Opening brace must not be followed by a blank line
public/blocks/stash/classes/trade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
(#46) Missing docblock for constant trade::TABLE
(#48) Missing docblock for function define_properties
(#64) Expected 1 space after FUNCTION keyword; 0 found
(#66) There should be a comma after the last array item in a multi-line array.
(#67) 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.
(#163) Missing docblock for function get_full_trade_items_list
(#174) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#176) The closing brace for the class must go on the next line after the body
public/blocks/stash/classes/tradeitems.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant tradeitems::TABLE
(#41) Missing docblock for function define_properties
(#52) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/classes/user_item.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant user_item::TABLE
(#41) Missing docblock for function define_properties
(#52) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
(#109) There should be a comma after the last array item in a multi-line array.
(#138) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#138) Expected 1 space after FOREACH keyword; 0 found
(#141) There should be a comma after the last array item in a multi-line array.
(#198) Blank line found at end of control structure
(#207) Missing docblock for function update_user_items
(#218) There should be a comma after the last array item in a multi-line array.
(#223) The closing brace for the class must go on the next line after the body
public/blocks/stash/db/access.php
(#27) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#33) 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.
(#37) There should be a comma after the last array item in a multi-line array.
(#41) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#50) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#55) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/db/events.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) There should be a comma after the last array item in a multi-line array.
(#34) There should be a comma after the last array item in a multi-line array.
(#35) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/db/services.php
(#35) There should be a comma after the last array item in a multi-line array.
(#44) There should be a comma after the last array item in a multi-line array.
(#53) 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.
(#70) There should be a comma after the last array item in a multi-line array.
(#78) There should be a comma after the last array item in a multi-line array.
(#86) There should be a comma after the last array item in a multi-line array.
(#94) There should be a comma after the last array item in a multi-line array.
(#102) There should be a comma after the last array item in a multi-line array.
(#110) 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.
(#126) There should be a comma after the last array item in a multi-line array.
(#134) There should be a comma after the last array item in a multi-line array.
(#142) There should be a comma after the last array item in a multi-line array.
(#150) There should be a comma after the last array item in a multi-line array.
(#158) There should be a comma after the last array item in a multi-line array.
(#166) There should be a comma after the last array item in a multi-line array.
(#174) There should be a comma after the last array item in a multi-line array.
(#182) There should be a comma after the last array item in a multi-line array.
(#190) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/db/shortcodes.php
(#36) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/db/tasks.php
(#33) There should be a comma after the last array item in a multi-line array.
(#34) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Blank line found at start of control structure
(#49) Short array syntax must be used to define arrays
(#60) Blank line found at start of control structure
(#71) Short array syntax must be used to define arrays
(#82) Blank line found at start of control structure
(#94) Short array syntax must be used to define arrays
(#105) Blank line found at start of control structure
(#122) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#136) Blank line found at start of control structure
(#151) Blank line found at start of control structure
(#164) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#178) Blank line found at start of control structure
(#200) Line indented incorrectly; expected 4 spaces, found 5
(#200) Blank line found at start of control structure
(#217) Short array syntax must be used to define arrays
(#226) Closing brace indented incorrectly; expected 5 spaces, found 4
(#228) Blank line found at start of control structure
(#244) Short array syntax must be used to define arrays
(#255) Blank line found at start of control structure
(#270) Blank line found at start of control structure
(#285) Blank line found at start of control structure
(#300) Blank line found at start of control structure
(#315) Blank line found at start of control structure
(#330) Blank line found at start of control structure
(#345) Blank line found at start of control structure
(#360) Blank line found at start of control structure
(#375) Blank line found at start of control structure
(#390) Blank line found at start of control structure
(#392) No space found after comma in argument list
(#392) Commas (,) must be followed by white space.
(#392) Expected 1 space between the comma and "'parentcontextid'". Found: no spaces
(#403) Blank line found at start of control structure
(#431) Blank line found at start of control structure
(#454) Blank line found at start of control structure
(#469) Blank line found at start of control structure
(#494) Blank line found at start of control structure
public/blocks/stash/drop.php
(#48) Long list syntax is not allowed
(#52) Blank line found at start of control structure
(#69) Blank line found at end of control structure
public/blocks/stash/drop_snippet.php
(#44) Long list syntax is not allowed
public/blocks/stash/drops.php
(#44) Long list syntax is not allowed
(#66) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/edit_form.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Missing docblock for function specific_definition
(#62) Missing docblock for function set_data
public/blocks/stash/item_edit.php
(#37) Short array syntax must be used to define arrays
(#42) Long list syntax is not allowed
(#69) Short array syntax must be used to define arrays
(#71) Blank line found at start of control structure
(#88) Blank line found at end of control structure
public/blocks/stash/item_reset.php
(#45) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#46) Closing parenthesis of a multi-line function call must be on a line by itself
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#49) Closing parenthesis of a multi-line function call must be on a line by itself
(#58) Long list syntax is not allowed
(#58) Opening parenthesis of a multi-line function call must be the last content on the line
(#58) Only one argument is allowed per line in a multi-line function call
(#58) Only one argument is allowed per line in a multi-line function call
(#59) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
(#84) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/items.php
(#37) Short array syntax must be used to define arrays
(#38) Long list syntax is not allowed
(#78) Long list syntax is not allowed
public/blocks/stash/lang/en/block_stash.php
(#31) The string key "addtoinventory" is not in the correct order, it should be before "addtradeitem"
(#43) The string key "completed" is not in the correct order, it should be before "configureremoval"
(#48) The string key "createquizzes" is not in the correct order, it should be before "createtrade"
(#70) Unexpected comment found. Auto-fixing will not work after this comment
(#93) The string key "leaderboard_groups" is not in the correct order, it should be before "leaderboards"
(#94) The string key "image" is not in the correct order, it should be before "leaderboard_groups"
(#101) The string key "itemdeleted" is not in the correct order, it should be before "items"
(#134) The string key "nofilterandnotiny" is not in the correct order, it should be before "none"
(#144) The string key "offerdetail" is not in the correct order, it should be before "offers"
(#150) The string key "pickupa" is not in the correct order, it should be before "previous"
(#162) The string key "privacy:metadata:swap:initiator" is not in the correct order, it should be before "privacy:metadata:swap:stashid"
(#164) The string key "privacy:metadata:swap:message" is not in the correct order, it should be before "privacy:metadata:swap:receiver"
(#169) The string key "privacy:metadata:swap" is not in the correct order, it should be before "privacy:metadata:swap:timemodified"
(#177) Unexpected comment found. Auto-fixing will not work after this comment
(#179) Unexpected comment found. Auto-fixing will not work after this comment
(#195) The string key "requestsent" is not in the correct order, it should be before "requestsforme"
(#208) The string key "selectquiz" is not in the correct order, it should be before "selectquizcheck"
(#212) The string key "settings" is not in the correct order, it should be before "settingupdated"
(#245) The string key "thedrophasbeendeleted" is not in the correct order, it should be before "tradewidget_help"
(#259) The string key "whatsnext" is not in the correct order, it should be before "whatsthis"
(#262) Unexpected comment found. Auto-fixing will not work after this comment
(#263) The string key "filterstashnotactive" is not in the correct order, it should be before "yourinventoryisempty"
public/blocks/stash/lbsettings.php
(#36) Long list syntax is not allowed
public/blocks/stash/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Short array syntax must be used to define arrays
(#51) Expected at least 1 space after "."; 0 found
(#99) Function closing brace must go on the next line following the body; found 1 blank lines before brace
public/blocks/stash/removals.php
(#46) Long list syntax is not allowed
(#55) Opening parenthesis of a multi-line function call must be the last content on the line
(#55) Only one argument is allowed per line in a multi-line function call
(#55) Only one argument is allowed per line in a multi-line function call
(#56) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#56) Closing parenthesis of a multi-line function call must be on a line by itself
(#61) Blank line found at start of control structure
public/blocks/stash/remove.php
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Long list syntax is not allowed
(#67) Line exceeds 132 characters; contains 144 characters
(#67) Expected 1 space before comment text but found 2; use block comment if you need indentation
public/blocks/stash/report.php
(#37) Long list syntax is not allowed
public/blocks/stash/settings.php
(#46) Long list syntax is not allowed
public/blocks/stash/swapdetail.php
(#77) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/swapofferdetail.php
(#66) No space found after comma in argument list
(#66) Commas (,) must be followed by white space.
(#66) Expected 1 space between the comma and "'block_stash'". Found: no spaces
(#68) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/swaprequests.php
(#60) No space found after comma in argument list
(#60) Commas (,) must be followed by white space.
(#60) Expected 1 space between the comma and "'block_stash'". Found: no spaces
(#62) There should be a comma after the last array item in a multi-line array.
public/blocks/stash/tests/generator/lib.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Opening brace must not be followed by a blank line
public/blocks/stash/tests/privacy_test.php
(#49) Testcase block_stash_privacy_testcase should be declared as abstract.
(#49) PHPUnit testcase name "block_stash_privacy_testcase" does not match file name "privacy_test"
(#49) PHPUnit class "block_stash_privacy_testcase" does not have any namespace. It is recommended to add it to the "block_stash" namespace, using more levels if needed, in order to match the code being tested
(#49) Opening brace must not be followed by a blank line
(#61) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#61) Test method test_get_contexts_for_userid() is missing a return type
(#93) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#93) Test method test_delete_data_for_user() is missing a return type
(#141) Test method test_delete_data_for_all_users_in_context() is missing any coverage information, own or at class level
(#141) Test method test_delete_data_for_all_users_in_context() is missing a return type
(#189) Test method test_export_data_for_user() is missing any coverage information, own or at class level
(#189) Test method test_export_data_for_user() is missing a return type
(#225) Expected 1 space after FUNCTION keyword; 0 found
public/blocks/stash/trade.php
(#38) Short array syntax must be used to define arrays
(#39) Long list syntax is not allowed
(#42) Long list syntax is not allowed
public/blocks/stash/trade_edit.php
(#37) Short array syntax must be used to define arrays
(#43) Long list syntax is not allowed
(#55) Blank line found at start of control structure
(#67) Blank line found at end of control structure
public/blocks/stash/trade_edit_new.php
(#45) Short array syntax must be used to define arrays
(#97) Long list syntax is not allowed
public/blocks/stash/tradecenter.php
(#53) Expected 1 space after FUNCTION keyword; 0 found
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) This comment is 73% valid code; is this commented out code?
(#89) There should be a comma after the last array item in a multi-line array.
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) This comment is 78% valid code; is this commented out code?
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
public/blocks/stash/tradeitem.php
(#38) Short array syntax must be used to define arrays
(#48) Long list syntax is not allowed
(#53) There should be a comma after the last array item in a multi-line array.
(#60) Blank line found at start of control structure
(#64) Blank line found at end of control structure

Javascript coding style problems

(0 errors, 51 warnings)

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

public/blocks/stash/amd/src/add-item.js
(#50) Expected catch,fail,always() or return (promise/catch-or-return)
(#51) Each then() should return a value or throw (promise/always-return)
(#82) Multiple spaces found before '//optionelemen...'. (no-multi-spaces)
(#82) Comments should not begin with a lowercase character. (capitalized-comments)
(#82) Expected space or tab after '//' in comment. (spaced-comment)
public/blocks/stash/amd/src/drop-snippet-ui.js
(#122) Statement inside of curly braces should be on next line. (brace-style)
(#122) This line has 3 statements. Maximum allowed is 2. (max-statements-per-line)
(#122) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
public/blocks/stash/amd/src/item-selector-modal.js
(#62) Expected catch,fail,always() or return (promise/catch-or-return)
(#69) Each then() should return a value or throw (promise/always-return)
(#140) Comments should not begin with a lowercase character. (capitalized-comments)
(#164) Comments should not begin with a lowercase character. (capitalized-comments)
public/blocks/stash/amd/src/items.js
(#51) Unnecessary escape character: \/. (no-useless-escape)
public/blocks/stash/amd/src/local/datasources/items-getter.js
(#5) Unexpected space before function parentheses. (space-before-function-paren)
(#14) Unexpected space before function parentheses. (space-before-function-paren)
public/blocks/stash/amd/src/local/leaderboard/settings.js
(#32) Expected catch,fail,always() or return (promise/catch-or-return)
(#33) Each then() should return a value or throw (promise/always-return)
(#53) Expected catch,fail,always() or return (promise/catch-or-return)
(#54) Each then() should return a value or throw (promise/always-return)
(#79) Expected catch,fail,always() or return (promise/catch-or-return)
(#82) Each then() should return a value or throw (promise/always-return)
(#101) Expected catch,fail,always() or return (promise/catch-or-return)
(#103) Each then() should return a value or throw (promise/always-return)
public/blocks/stash/amd/src/local/removals/main.js
(#21) ["selected"] is better written in dot notation. (dot-notation)
(#24) ["selected"] is better written in dot notation. (dot-notation)
(#43) ["additems"] is better written in dot notation. (dot-notation)
(#44) ["removalid"] is better written in dot notation. (dot-notation)
(#72) Unexpected space before function parentheses. (space-before-function-paren)
(#72) Expected to return a value at the end of async arrow function. (consistent-return)
(#105) Each then() should return a value or throw (promise/always-return)
(#124) Comments should not begin with a lowercase character. (capitalized-comments)
(#125) Expected catch,fail,always() or return (promise/catch-or-return)
(#126) Each then() should return a value or throw (promise/always-return)
(#147) Expected catch,fail,always() or return (promise/catch-or-return)
(#147) Each then() should return a value or throw (promise/always-return)
public/blocks/stash/amd/src/local/trade_adder/main.js
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#32) Comments should not begin with a lowercase character. (capitalized-comments)
public/blocks/stash/amd/src/stash-area.js
(#64) Multiple spaces found before '// A hacky sep...'. (no-multi-spaces)
(#90) Expected catch,fail,always() or return (promise/catch-or-return)
public/blocks/stash/amd/src/trade.js
(#61) 'index' declared on line 71 column 26 is used outside of binding context. (block-scoped-var)
(#63) 'userItem' declared on line 72 column 25 is used outside of binding context. (block-scoped-var)
(#63) 'index' declared on line 71 column 26 is used outside of binding context. (block-scoped-var)
(#63) 'index' declared on line 71 column 26 is used outside of binding context. (block-scoped-var)
(#67) 'userItem' declared on line 72 column 25 is used outside of binding context. (block-scoped-var)
(#71) 'index' is already defined. (no-redeclare)
(#71) 'index' declared on line 61 column 26 is used outside of binding context. (block-scoped-var)
(#72) 'userItem' is already defined. (no-redeclare)
(#72) 'userItem' declared on line 63 column 25 is used outside of binding context. (block-scoped-var)
(#72) 'index' declared on line 61 column 26 is used outside of binding context. (block-scoped-var)
(#72) 'index' declared on line 61 column 26 is used outside of binding context. (block-scoped-var)
(#76) 'userItem' declared on line 63 column 25 is used outside of binding context. (block-scoped-var)

CSS problems

(5 errors, 0 warnings)

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

public/blocks/stash/styles.css
(#3) Invalid value for "display" (csstree/validator)
(#4) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#5) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#252) Unexpected !important (declaration-no-important)
(#253) Unexpected !important (declaration-no-important)

PHPDocs style problems

(51 errors, 0 warnings)

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

public/blocks/stash/backup/moodle2/backup_stash_block_task.class.php
(#67) Phpdocs for function backup_stash_block_task::encode_content_links has incomplete parameters list
public/blocks/stash/backup/moodle2/restore_stash_stepslib.php
(#88) Phpdocs for function restore_stash_block_structure_step::process_block has incomplete parameters list
(#95) Phpdocs for function restore_stash_block_structure_step::process_block_stash has incomplete parameters list
(#113) Phpdocs for function restore_stash_block_structure_step::process_block_stash_item has incomplete parameters list
(#126) Phpdocs for function restore_stash_block_structure_step::process_block_stash_drop has incomplete parameters list
(#145) Phpdocs for function restore_stash_block_structure_step::process_pickup has incomplete parameters list
(#157) Phpdocs for function restore_stash_block_structure_step::process_useritem has incomplete parameters list
(#169) Phpdocs for function restore_stash_block_structure_step::process_block_stash_trade has incomplete parameters list
(#188) Phpdocs for function restore_stash_block_structure_step::process_block_stash_tradeitems has incomplete parameters list
public/blocks/stash/classes/drop.php
(#80) Inline phpdocs tag {@link drop_pickup::get_relation()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/blocks/stash/classes/drop_snippet_restore_decode_rule.php
(#40) Phpdocs for function drop_snippet_restore_decode_rule::__construct has incomplete parameters list
public/blocks/stash/classes/external/exporter.php
(#208) Inline phpdocs tag {@link self::export()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#211) Inline phpdocs tag {@link self::define_other_properties()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#223) Inline phpdocs tag {@link self::define_other_properties()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#242) Inline phpdocs tag {@link self::read_properties_definition()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#264) Inline phpdocs tag {@link \core_competency\persistent::define_properties()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#286) Inline phpdocs tag {@link self::get_other_values()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#304) Inline phpdocs tag {@link \core_competency\persistent::define_properties()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/blocks/stash/classes/form/integer.php
(#66) Phpdocs for function block_stash_form_integer::block_stash_form_integer has incomplete parameters list
(#107) Phpdocs for function block_stash_form_integer::exportValue has incomplete parameters list
public/blocks/stash/classes/form/persistent.php
(#127) Inline phpdocs tag {@link self::$fieldstoremove} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#128) Inline phpdocs tag {@link self::$foreignfields} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#239) Inline phpdocs tag {@link self::extra_validation()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/blocks/stash/classes/local/stash_elements/removal_helper.php
(#195) Phpdocs for function removal_helper::remove_item has incomplete parameters list
public/blocks/stash/classes/manager.php
(#439) Phpdocs for function manager::get_drop has incomplete parameters list
(#1227) Phpdocs for function manager::get_config_entry has incomplete parameters list
public/blocks/stash/classes/observer.php
(#37) Phpdocs for function observer::quiz_attempt_started has incomplete parameters list
public/blocks/stash/classes/output/drop.php
(#59) Phpdocs for function drop::__construct has incomplete parameters list
public/blocks/stash/classes/output/drop_image.php
(#55) Phpdocs for function drop_image::__construct has incomplete parameters list
public/blocks/stash/classes/output/drops_table.php
(#59) Phpdocs for function drops_table::__construct has incomplete parameters list
public/blocks/stash/classes/output/item.php
(#54) Phpdocs for function item::__construct has incomplete parameters list
public/blocks/stash/classes/output/items_table.php
(#59) Phpdocs for function items_table::__construct has incomplete parameters list
public/blocks/stash/classes/output/renderer.php
(#51) Phpdocs for function renderer::drop_snippet_ui has incomplete parameters list
public/blocks/stash/classes/output/report_table.php
(#62) Phpdocs for function report_table::__construct has incomplete parameters list
public/blocks/stash/classes/output/swap_details.php
(#61) Phpdocs for function swap_details::__construct has incomplete parameters list
public/blocks/stash/classes/output/swap_requests.php
(#57) Phpdocs for function swap_requests::__construct has incomplete parameters list
public/blocks/stash/classes/output/trade.php
(#58) Phpdocs for function trade::__construct has incomplete parameters list
public/blocks/stash/classes/output/trades_table.php
(#58) Phpdocs for function trades_table::__construct has incomplete parameters list
public/blocks/stash/classes/persistent.php
(#64) Inline phpdocs tag {@link self::from_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#96) Inline phpdocs tag {@link self::get()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#98) Inline phpdocs tag {@link self::to_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#99) Inline phpdocs tag {@link self::from_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#121) Inline phpdocs tag {@link self::set()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#123) Inline phpdocs tag {@link self::to_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#124) Inline phpdocs tag {@link self::from_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#684) Inline phpdocs tag {@link self::get_sql_fields()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#782) Inline phpdocs tag {@link self::extract_record()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/blocks/stash/classes/shortcodes.php
(#50) Phpdocs for function shortcodes::drop has incomplete parameters list
(#116) Phpdocs for function shortcodes::trade has incomplete parameters list
public/blocks/stash/classes/stash.php
(#152) Phpdocs for function stash::get_by_tradeid has incomplete parameters list
public/blocks/stash/classes/trade.php
(#112) Phpdocs for function trade::is_trade_in_stash 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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" 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, 126 warnings)

This section shows problems detected in mustache templates [More info]

public/blocks/stash/templates/add_item_detail.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (d><body><tr class="block-stash-item" data-id="" style="width: inherit;"> <)
(#1) HTML Validation error, line 4: Stray start tag “td”. (it;"> <td style="width: 70%;"><div c)
(#1) HTML Validation error, line 9: Stray end tag “td”. (></div> </td> <)
(#1) HTML Validation error, line 10: Stray start tag “td”. (</td> <td style="width: 20%;"> )
(#1) HTML Validation error, line 11: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (> <input class="block-stash-quantity form-control" data-itemid= data-select-type= type=)
(#1) HTML Validation error, line 11: Bad value “” for attribute “max” on element “input”: The empty string is not a valid floating point number. (lect-type= type="number" value="" min="1" max="" /> <)
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (lect-type= type="number" value="" min="1" max="" /> <)
(#1) HTML Validation error, line 12: Stray end tag “td”. ("" /> </td> <)
(#1) HTML Validation error, line 13: Stray start tag “td”. (</td> <td style="width: 10%;"> )
(#1) HTML Validation error, line 15: Stray end tag “td”. (span> </td></tr>)
(#1) HTML Validation error, line 16: Stray end tag “tr”. ( </td></tr></bo)
public/blocks/stash/templates/drop_image.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “” for attribute “id” on element “div”: An ID must not be the empty string. (ad><body><div id="" style="display: inline;"> <)
(#1) ESLint did not run
public/blocks/stash/templates/drop_snippet_dialogue.mustache
(#1) Example context missing (@template section not found.)
(#1) ESLint did not run
public/blocks/stash/templates/drop_snippet_ui.mustache
(#1) Example context missing (@template section not found.)
(#1) ESLint did not run
public/blocks/stash/templates/drop_text.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “” for attribute “id” on element “div”: An ID must not be the empty string. (ad><body><div id="" style="display: inline;"> <)
(#1) ESLint did not run
public/blocks/stash/templates/fullpage_help.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: Empty heading. (> <h3></h3>)
public/blocks/stash/templates/item.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/item_detail.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/item_select_dialogue.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 11: Attribute “size” not allowed on element “input” at this point. ( <input type="number" name="quantity" class="form-control" value="1" min="1" size="5" /> )
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="number" name="quantity" class="form-control" value="1" min="1" size="5" /> )
(#1) HTML Validation info, line 12: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="courseid" value="" /> )
(#1) HTML Validation info, line 13: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="userid" value="" /> )
(#1) HTML Validation info, line 14: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="sesskey" value="" /> )
(#1) HTML Validation info, line 17: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="submit" class="btn btn-primary" value="((additem%2C+block_stash))" /> )
public/blocks/stash/templates/item_selector.mustache
(#1) HTML Validation error, line 4: Element “div” not allowed as child of element “button” in this context. (Suppressing further errors from this subtree.) (> <div class="align-items-center d-flex"> )
public/blocks/stash/templates/item_small.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/item_xsmall.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/local/leaderboard_settings/carousel.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/local/leaderboard_settings/display.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (-4 "> <h6 class="h5"></h6>)
public/blocks/stash/templates/local/leaderboard_settings/leaderboard_cards.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: Empty heading. (> <h4 class="card-title"></h4>)
(#1) HTML Validation info, line 20: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="number" class="block_stash_change_element block_stash-leaderboard-limit form-control" min="1" value="" disabled /> )
public/blocks/stash/templates/local/leaderboard_settings/mainsettings.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/local/removal/main_information.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/local/removal/removal_form.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 6: Attribute value missing. (> <div class="block-stash-item-adder" style="width: 100%;" data-course-id=> )
(#1) HTML Validation info, line 20: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 12: Table column 3 established by element “th” has no cells beginning in it. (ash))</th> <th colspan="2" class=""> )
public/blocks/stash/templates/local/removal/table_row.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (d><body><tr> <)
(#1) HTML Validation error, line 4: Stray start tag “td”. (<tr> <td></td>)
(#1) HTML Validation error, line 4: Stray end tag “td”. (> <td></td> <)
(#1) HTML Validation error, line 5: Stray start tag “td”. (</td> <td> )
(#1) HTML Validation error, line 8: Stray end tag “td”. (</ul> </td> <)
(#1) HTML Validation error, line 9: Stray start tag “td”. (</td> <td> )
(#1) HTML Validation error, line 12: Stray end tag “td”. (tton> </td></tr>)
(#1) HTML Validation error, line 13: Stray end tag “tr”. ( </td></tr></bo)
public/blocks/stash/templates/local/removal/zerostate.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/local/report_table/item_row.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Stray start tag “tr”. (ad><body><tr></tr>)
(#1) HTML Validation error, line 3: Stray end tag “tr”. (ody><tr></tr></bo)
public/blocks/stash/templates/local/settings/reset_users_items.mustache
(#1) Example context missing.
public/blocks/stash/templates/local/swap/swap_details.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 16: Empty heading. ( <h3 class="h4"></h3>)
public/blocks/stash/templates/local/swap/swap_form.mustache
(#1) Example context missing.
(#1) ESLint did not run
public/blocks/stash/templates/local/swap/swap_requests.mustache
(#1) Example context missing.
(#1) Template produced no content
public/blocks/stash/templates/local/swap/swapoffer_details.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 12: Empty heading. ( <h3 class="h4"></h3>)
public/blocks/stash/templates/local/swap/trade_center.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 6: End tag for “body” seen, but there were unclosed elements. (></div></body></html)
(#1) HTML Validation error, line 2: Unclosed element “div”. (ad><body><div class="container-fluid border"> <)
(#1) ESLint did not run
public/blocks/stash/templates/local/tertiary_navigation/swap-nav.mustache
(#1) Example context missing.
public/blocks/stash/templates/local/trade/item_adder_gain.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Attribute value missing. (ad><body><div class="block-stash-item-adder" style="width: 100%;" data-course-id=> <)
(#1) HTML Validation info, line 16: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 8: Table column 3 established by element “th” has no cells beginning in it. (ash))</th> <th colspan="2" class=""> )
public/blocks/stash/templates/local/trade/item_adder_loss.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Attribute value missing. (ad><body><div class="block-stash-item-adder" data-course-id=> <)
(#1) HTML Validation info, line 16: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 8: Table column 3 established by element “th” has no cells beginning in it. (ash))</th> <th colspan="2" class=""> )
public/blocks/stash/templates/local/trade/item_table_data.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Stray start tag “thead”. (ad><body><thead class="thead-light"> <)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (ght"> <tr> )
(#1) HTML Validation error, line 4: Stray start tag “th”. (> <th style="width: 70%;">((item)
(#1) HTML Validation error, line 4: Stray end tag “th”. (ck_stash))</th> )
(#1) HTML Validation error, line 5: Stray start tag “th”. (> <th colspan="2" class=""> )
(#1) HTML Validation info, line 13: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 18: Stray end tag “th”. (> </th> <)
(#1) HTML Validation error, line 19: Stray end tag “tr”. (</th> </tr></the)
(#1) HTML Validation error, line 20: Stray end tag “thead”. ( </tr></thead><tbod)
(#1) HTML Validation error, line 21: Stray start tag “tbody”. (</thead><tbody></tbo)
(#1) HTML Validation error, line 22: Stray end tag “tbody”. (><tbody></tbody></bo)
public/blocks/stash/templates/local/trade/item_table_data_loss.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Stray start tag “thead”. (ad><body><thead class="thead-light"> <)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (ght"> <tr> )
(#1) HTML Validation error, line 4: Stray start tag “th”. (> <th style="width: 70%;">((item)
(#1) HTML Validation error, line 4: Stray end tag “th”. (ck_stash))</th> )
(#1) HTML Validation error, line 5: Stray start tag “th”. (> <th colspan="2" class=""> )
(#1) HTML Validation info, line 13: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 18: Stray end tag “th”. (> </th> <)
(#1) HTML Validation error, line 19: Stray end tag “tr”. (</th> </tr></the)
(#1) HTML Validation error, line 20: Stray end tag “thead”. ( </tr></thead><tbod)
(#1) HTML Validation error, line 21: Stray start tag “tbody”. (</thead><tbody></tbo)
(#1) HTML Validation error, line 22: Stray end tag “tbody”. (><tbody></tbody></bo)
public/blocks/stash/templates/main_content.mustache
(#1) Example context missing (@template section not found.)
(#1) ESLint did not run
public/blocks/stash/templates/profile_content.mustache
(#1) Example context missing (@template section not found.)
(#1) ESLint did not run
public/blocks/stash/templates/trade.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “” for attribute “id” on element “div”: An ID must not be the empty string. (ad><body><div id="" style="display: inline;"> <)
(#1) HTML Validation error, line 17: The “center” element is obsolete. Use CSS instead. ( <center><butto)
(#1) ESLint did not run
public/blocks/stash/templates/trade_add_item_detail.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (d><body><tr class="block-stash-trade-item" data-id=""> <)
(#1) HTML Validation error, line 4: Stray start tag “td”. (d=""> <td style="width: 70%;"><div c)
(#1) HTML Validation error, line 9: Stray end tag “td”. (></div> </td> <)
(#1) HTML Validation error, line 10: Stray start tag “td”. (</td> <td style="width: 20%;"> )
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (> <input class="block-stash-quantity form-control" name="add_item[]" type="number" value="" /> <)
(#1) HTML Validation error, line 12: Stray end tag “td”. ("" /> </td> <)
(#1) HTML Validation error, line 13: Stray start tag “td”. (</td> <td style="width: 10%;"> )
(#1) HTML Validation error, line 15: Stray end tag “td”. (span> </td></tr>)
(#1) HTML Validation error, line 16: Stray end tag “tr”. ( </td></tr></bo)
public/blocks/stash/templates/trade_form.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="text" class="form-control" name="title" value="" placeholder="((tradename%2C+block_stash))" /> )
(#1) HTML Validation error, line 19: Element “legend” not allowed as child of element “div” in this context. (Suppressing further errors from this subtree.) ( <legend>((gain)
(#1) HTML Validation info, line 26: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="text" class="form-control" name="gain" value="" placeholder="((gain%2C+block_stash))" style="width: 100%;" /> )
(#1) HTML Validation error, line 29: Attribute value missing. ( <div class="block-stash-item-adder" style="width: 100%;" data-course-id=> )
(#1) HTML Validation info, line 43: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 35: Table column 3 established by element “th” has no cells beginning in it. (ash))</th> <th colspan="2" class=""> )
(#1) HTML Validation error, line 61: Element “legend” not allowed as child of element “div” in this context. (Suppressing further errors from this subtree.) ( <legend>((loss)
(#1) HTML Validation info, line 68: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="text" class="form-control" name="loss" value="" placeholder="((loss%2C+block_stash))" style="width: 100%;" /> )
(#1) HTML Validation error, line 71: Attribute value missing. ( <div class="block-stash-item-adder" data-course-id=> )
(#1) HTML Validation info, line 85: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="search" placeholder="((searchitems%2C+block_stash))" class="form-control withclear rounded dropdown-search"/> )
(#1) HTML Validation error, line 77: Table column 3 established by element “th” has no cells beginning in it. (ash))</th> <th colspan="2" class=""> )
(#1) HTML Validation error, line 118: Attribute “clas” not allowed on element “div” at this point. ( <div clas="col"> )
(#1) HTML Validation info, line 119: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="courseid" value="" /> )
(#1) HTML Validation info, line 120: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="stashid" value="" /> )
(#1) HTML Validation info, line 121: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="hashcode" value="" /> )
(#1) HTML Validation info, line 122: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="sesskey" value="" /> )
(#1) ESLint did not run
public/blocks/stash/templates/trade_item_picker.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 14: Attribute “size” not allowed on element “input” at this point. ( <input type="number" class="block-stash-quantity form-control" id="amount" min="1" size="5" value="1" /> )
(#1) HTML Validation info, line 14: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="number" class="block-stash-quantity form-control" id="amount" min="1" size="5" value="1" /> )
public/blocks/stash/templates/trade_loss_item_detail.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Stray start tag “tr”. (d><body><tr class="block-stash-trade-item" data-id=""> <)
(#1) HTML Validation error, line 4: Stray start tag “td”. (d=""> <td style="width: 70%;"><div c)
(#1) HTML Validation error, line 9: Stray end tag “td”. (></div> </td> <)
(#1) HTML Validation error, line 10: Stray start tag “td”. (</td> <td style="width: 20%;"> )
(#1) HTML Validation info, line 11: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (> <input class="block-stash-quantity form-control" type="number" name="lose_item[]" value="" /> <)
(#1) HTML Validation error, line 12: Stray end tag “td”. ("" /> </td> <)
(#1) HTML Validation error, line 13: Stray start tag “td”. (</td> <td style="width: 10%;"> )
(#1) HTML Validation error, line 15: Stray end tag “td”. (span> </td></tr>)
(#1) HTML Validation error, line 16: Stray end tag “tr”. ( </td></tr></bo)
public/blocks/stash/templates/trade_snippet_dialogue.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Bad value “” for attribute “id” on element “div”: An ID must not be the empty string. (gue"> <div id="" style="display: inline;"> )
(#1) HTML Validation error, line 19: Stray end tag “div”. ( </div></div> <)
(#1) HTML Validation error, line 29: Stray end tag “div”. ( </div></div></b)
(#1) ESLint did not run
public/blocks/stash/templates/trade_success.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/tradeitem_detail.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/user_item.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content
public/blocks/stash/templates/user_item_reset.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/user_item_small.mustache
(#1) Example context missing (@template section not found.)
public/blocks/stash/templates/user_selector.mustache
(#1) HTML Validation error, line 4: Element “div” not allowed as child of element “button” in this context. (Suppressing further errors from this subtree.) (> <div class="align-items-center d-flex"> )

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]