Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


PHP lint problems

(0 errors, 0 warnings)

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


PHP coding style problems

(220 errors, 24 warnings)

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

mod/ubicast/backup/moodle2/backup_ubicast_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
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
(#32) Missing docblock for function define_structure
(#38) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
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
(#25) Expected at least 1 space before "."; 0 found
(#25) Expected at least 1 space after "."; 0 found
(#31) Opening brace must not be followed by a blank line
(#52) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
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
mod/ubicast/classes/event/course_module_instance_list_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
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
mod/ubicast/classes/output/mobile.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#45) Short array syntax must be used to define arrays
(#53) Expected at least 1 space before "."; 0 found
(#53) Expected at least 1 space after "."; 0 found
(#53) Expected at least 1 space before "."; 0 found
(#53) Expected at least 1 space after "."; 0 found
(#58) There should be a comma after the last array item in a multi-line array.
(#70) The closing brace for the class must go on the next line after the body
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
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.
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
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
mod/ubicast/db/mobile.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#25) Short array syntax must be used to define arrays
(#26) Short array syntax must be used to define arrays
(#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
(#36) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#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.
(#46) There should be a comma after the last array item in a multi-line array.
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
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
(#48) Expected at least 1 space before "."; 0 found
(#48) Expected at least 1 space after "."; 0 found
(#48) Expected at least 1 space before "."; 0 found
(#48) Expected at least 1 space after "."; 0 found
(#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
(#99) Expected at least 1 space before "."; 0 found
(#99) Expected at least 1 space after "."; 0 found
(#99) Expected at least 1 space before "."; 0 found
(#99) Expected at least 1 space after "."; 0 found
(#99) Expected at least 1 space before "."; 0 found
(#99) Expected at least 1 space after "."; 0 found
(#99) Expected at least 1 space before "."; 0 found
(#99) 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
(#104) Expected at least 1 space before "."; 0 found
(#104) Expected at least 1 space after "."; 0 found
(#104) Expected at least 1 space before "."; 0 found
(#104) Expected at least 1 space after "."; 0 found
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"
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"
mod/ubicast/launch.php
(#26) Expected at least 1 space before "."; 0 found
(#26) Expected at least 1 space after "."; 0 found
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#34) Short array syntax must be used to define arrays
(#41) Expected at least 1 space before "."; 0 found
(#41) Expected at least 1 space after "."; 0 found
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
mod/ubicast/locallib.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#30) Expected at least 1 space before "."; 0 found
(#30) Expected at least 1 space after "."; 0 found
(#68) Expected at least 1 space before "."; 0 found
(#68) Expected at least 1 space after "."; 0 found
(#68) Expected at least 1 space before "."; 0 found
(#68) Expected at least 1 space after "."; 0 found
(#78) Expected at least 1 space before "."; 0 found
(#78) Expected at least 1 space after "."; 0 found
(#99) Blank line found at end of control structure
(#111) Missing docblock for function ubicast_display_media
(#117) Expected at least 1 space before "."; 0 found
(#117) Expected at least 1 space after "."; 0 found
(#117) Expected at least 1 space before "."; 0 found
(#117) Expected at least 1 space after "."; 0 found
(#127) Expected at least 1 space before "."; 0 found
(#127) Expected at least 1 space after "."; 0 found
(#127) Expected at least 1 space before "."; 0 found
(#127) Expected at least 1 space after "."; 0 found
(#127) Expected at least 1 space before "."; 0 found
(#127) Expected at least 1 space after "."; 0 found
(#127) Expected at least 1 space before "."; 0 found
(#127) Expected at least 1 space after "."; 0 found
(#129) Expected at least 1 space before "."; 0 found
(#129) Expected at least 1 space after "."; 0 found
(#129) Expected at least 1 space before "."; 0 found
(#129) Expected at least 1 space after "."; 0 found
(#129) Expected at least 1 space before "."; 0 found
(#129) Expected at least 1 space after "."; 0 found
(#133) Expected at least 1 space before "."; 0 found
(#133) Expected at least 1 space after "."; 0 found
(#133) Expected at least 1 space before "."; 0 found
(#133) Expected at least 1 space after "."; 0 found
(#135) Expected at least 1 space before "."; 0 found
(#135) Expected at least 1 space after "."; 0 found
(#135) Expected at least 1 space before "."; 0 found
(#135) Expected at least 1 space after "."; 0 found
mod/ubicast/lti.php
(#26) Expected at least 1 space before "."; 0 found
(#26) Expected at least 1 space after "."; 0 found
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#32) Short array syntax must be used to define arrays
(#39) Expected at least 1 space before "."; 0 found
(#39) Expected at least 1 space after "."; 0 found
mod/ubicast/mod_form.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#28) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 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
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#60) Expected at least 1 space before "."; 0 found
(#60) Expected at least 1 space after "."; 0 found
(#60) Expected at least 1 space before "."; 0 found
(#60) Expected at least 1 space after "."; 0 found
(#61) Expected at least 1 space before "."; 0 found
(#61) Expected at least 1 space after "."; 0 found
(#61) Expected at least 1 space before "."; 0 found
(#61) Expected at least 1 space after "."; 0 found
(#65) Opening parenthesis of a multi-line function call must be the last content on the line
(#65) Only one argument is allowed per line in a multi-line function call
(#65) Only one argument is allowed per line in a multi-line function call
(#66) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#66) Closing parenthesis of a multi-line function call must be on a line by itself
(#66) Line exceeds 132 characters; contains 167 characters
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
mod/ubicast/view.php
(#32) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#34) Short array syntax must be used to define arrays
(#35) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#37) Short array syntax must be used to define arrays
(#38) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#46) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays

Javascript coding style problems

(1 errors, 0 warnings)

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

mod/ubicast/statics/iframe_manager.js
(#17) Unnecessary semicolon. (no-extra-semi)

CSS problems

(3 errors, 0 warnings)

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

mod/ubicast/css/style_app.css
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)

PHPDocs style problems

(6 errors, 0 warnings)

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

mod/ubicast/backup/moodle2/backup_ubicast_activity_task.class.php
(#47) Phpdocs for function backup_ubicast_activity_task::encode_content_links has incomplete parameters list
mod/ubicast/backup/moodle2/restore_ubicast_activity_task.class.php
(#73) 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)]}
(#75) 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)]}
(#89) 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)]}
(#91) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/ubicast/locallib.php
(#36) Phpdocs for function ubicast_launch_tool has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(1 errors, 0 warnings)

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

mod/ubicast/templates/mobile_view_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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