Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

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


PHP coding style problems

(30 errors, 65 warnings)

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

mod/ubicast/backup/moodle2/backup_ubicast_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#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
(#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.
(#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.
(#54) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
mod/ubicast/classes/output/mobile.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#45) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
mod/ubicast/classes/privacy/provider.php
(#27) Missing docblock for class provider
(#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
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
(#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
(#102) Short array syntax must be used to define arrays
mod/ubicast/launch.php
(#34) Short array syntax must be used to define arrays
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
(#111) Missing docblock for function ubicast_display_media
mod/ubicast/lti.php
(#32) Short array syntax must be used to define arrays
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
(#66) Line exceeds 132 characters; contains 167 characters
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

(0 errors, 0 warnings)

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


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]