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

(121 errors, 21 warnings)

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

public/mod/ubicast/backup/moodle2/backup_ubicast_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
public/mod/ubicast/backup/moodle2/backup_ubicast_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Opening brace must not be followed by a blank line
(#42) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
public/mod/ubicast/backup/moodle2/restore_ubicast_activity_task.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_ubicast_activity_task.class.php
(#31) Opening brace must not be followed by a blank line
(#54) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
public/mod/ubicast/backup/moodle2/restore_ubicast_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file restore_ubicast_stepslib.php
(#23) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Opening brace must not be followed by a blank line
(#34) Missing docblock for function define_structure
(#36) Short array syntax must be used to define arrays
(#43) Missing docblock for function process_ubicast
(#56) Missing docblock for function after_execute
public/mod/ubicast/classes/event/course_module_instance_list_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
public/mod/ubicast/classes/event/course_module_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace must not be followed by a blank line
public/mod/ubicast/classes/output/mobile.php
(#47) Short array syntax must be used to define arrays
(#55) Expected at least 1 space before "."; 0 found
(#55) Expected at least 1 space after "."; 0 found
(#55) Expected at least 1 space before "."; 0 found
(#55) Expected at least 1 space after "."; 0 found
(#60) There should be a comma after the last array item in a multi-line array.
(#72) The closing brace for the class must go on the next line after the body
public/mod/ubicast/classes/privacy/provider.php
(#27) Missing docblock for class provider
(#29) Opening brace must not be followed by a blank line
(#37) There must not be a space before the colon in a return type declaration
public/mod/ubicast/db/access.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#34) There should be a comma after the last array item in a multi-line array.
(#37) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#43) There should be a comma after the last array item in a multi-line array.
(#45) There should be a comma after the last array item in a multi-line array.
public/mod/ubicast/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for function xmldb_ubicast_install
public/mod/ubicast/db/log.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
public/mod/ubicast/db/mobile.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#43) 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.
(#46) Short array syntax must be used to define arrays
(#47) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
public/mod/ubicast/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for function xmldb_ubicast_upgrade
(#32) Blank line found at start of control structure
public/mod/ubicast/index.php
(#29) Short array syntax must be used to define arrays
(#34) 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.
(#47) Short array syntax must be used to define arrays
(#65) Expected at least 1 space before "."; 0 found
(#65) Expected at least 1 space after "."; 0 found
(#66) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#89) Expected at least 1 space before "."; 0 found
(#89) Expected at least 1 space after "."; 0 found
(#89) Expected at least 1 space before "."; 0 found
(#89) Expected at least 1 space after "."; 0 found
(#102) Short array syntax must be used to define arrays
(#104) Expected at least 1 space before "."; 0 found
(#104) Expected at least 1 space after "."; 0 found
public/mod/ubicast/lang/en/ubicast.php
(#27) Unexpected comment found. Auto-fixing will not work after this comment
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "form_resource_header" is not in the correct order, it should be before "ubicast:view"
(#40) The string key "form_resource" is not in the correct order, it should be before "form_resource_header"
(#43) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "settings_ltikey" is not in the correct order, it should be before "settings_url_help"
public/mod/ubicast/lang/fr/ubicast.php
(#27) Unexpected comment found. Auto-fixing will not work after this comment
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "form_resource_header" is not in the correct order, it should be before "ubicast:view"
(#40) The string key "form_resource" is not in the correct order, it should be before "form_resource_header"
(#43) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "settings_ltikey" is not in the correct order, it should be before "settings_url_help"
public/mod/ubicast/launch.php
(#34) Short array syntax must be used to define arrays
public/mod/ubicast/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Missing docblock for function ubicast_supports
(#69) Missing docblock for function ubicast_get_extra_capabilities
(#70) Short array syntax must be used to define arrays
(#74) Missing docblock for function ubicast_reset_userdata
(#75) Short array syntax must be used to define arrays
(#79) Missing docblock for function ubicast_get_view_actions
(#80) Short array syntax must be used to define arrays
(#84) Missing docblock for function ubicast_get_post_actions
(#85) Short array syntax must be used to define arrays
(#89) Missing docblock for function ubicast_add_instance
(#102) Missing docblock for function ubicast_update_instance
(#117) Missing docblock for function ubicast_delete_instance
(#120) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
public/mod/ubicast/locallib.php
(#79) Expected at least 1 space before "."; 0 found
(#79) Expected at least 1 space after "."; 0 found
(#100) Blank line found at end of control structure
(#112) Missing docblock for function ubicast_display_media
public/mod/ubicast/lti.php
(#32) Short array syntax must be used to define arrays
public/mod/ubicast/mod_form.php
(#28) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#30) Missing docblock for class mod_ubicast_mod_form
(#31) Missing docblock for function definition
(#40) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Only one argument is allowed per line in a multi-line function call
(#41) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#41) Closing parenthesis of a multi-line function call must be on a line by itself
(#67) Line exceeds 132 characters; contains 147 characters
(#67) There should be a comma after the last array item in a multi-line array.
public/mod/ubicast/settings.php
(#30) Opening parenthesis of a multi-line function call must be the last content on the line
(#32) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#32) Only one argument is allowed per line in a multi-line function call
(#32) Closing parenthesis of a multi-line function call must be on a line by itself
(#34) Opening parenthesis of a multi-line function call must be the last content on the line
(#36) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#36) Only one argument is allowed per line in a multi-line function call
(#36) Closing parenthesis of a multi-line function call must be on a line by itself
(#38) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
(#42) Opening parenthesis of a multi-line function call must be the last content on the line
(#44) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#44) Only one argument is allowed per line in a multi-line function call
(#44) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/ubicast/view.php
(#34) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(1 errors, 0 warnings)

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

public/mod/ubicast/css/style_app.css
(#2) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)

PHPDocs style problems

(4 errors, 0 warnings)

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

public/mod/ubicast/backup/moodle2/restore_ubicast_activity_task.class.php
(#77) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#79) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#95) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#97) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 1 warnings)

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

public/mod/ubicast/templates/mobile_view_page.mustache
(#1) HTML Validation error, line 5: Bad value “Direct url to ubicast resource” for attribute “href” on element “a”: Illegal character in path segment: space is not allowed. (rt> <a id="ubicast_endpoint" href="Direct url to ubicast resource" style="color: inherit;text-decoration: inherit;"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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