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

(55 errors, 0 warnings)

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

mod/pandavideo/backup/moodle2/backup_pandavideo_activity_task.class.php
(#38) Opening brace must not be followed by a blank line
mod/pandavideo/backup/moodle2/backup_pandavideo_stepslib.php
(#34) Opening brace must not be followed by a blank line
(#47) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Only one argument is allowed per line in a multi-line function call
(#48) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#48) Closing parenthesis of a multi-line function call must be on a line by itself
mod/pandavideo/backup/moodle2/restore_pandavideo_activity_task.class.php
(#40) Opening brace must not be followed by a blank line
(#81) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/pandavideo/backup/moodle2/restore_pandavideo_stepslib.php
(#34) Opening brace must not be followed by a blank line
mod/pandavideo/classes/analytics/pandavideo_view.php
(#30) Opening brace must not be followed by a blank line
mod/pandavideo/classes/completion/completion_util.php
(#35) Opening brace must not be followed by a blank line
(#50) Blank line found at start of control structure
mod/pandavideo/classes/completion/custom_completion.php
(#38) Opening brace must not be followed by a blank line
mod/pandavideo/classes/event/course_module_viewed.php
(#39) Opening brace must not be followed by a blank line
mod/pandavideo/classes/external/progress.php
(#57) Only one argument is allowed per line in a multi-line function call
(#57) Only one argument is allowed per line in a multi-line function call
(#60) Only one argument is allowed per line in a multi-line function call
(#60) Only one argument is allowed per line in a multi-line function call
(#63) Only one argument is allowed per line in a multi-line function call
(#63) Only one argument is allowed per line in a multi-line function call
(#66) Only one argument is allowed per line in a multi-line function call
(#66) Only one argument is allowed per line in a multi-line function call
(#69) Only one argument is allowed per line in a multi-line function call
(#69) Only one argument is allowed per line in a multi-line function call
mod/pandavideo/classes/grade/grades_util.php
(#35) Opening brace must not be followed by a blank line
mod/pandavideo/classes/panda/repository.php
(#35) Opening brace must not be followed by a blank line
mod/pandavideo/classes/privacy/provider.php
(#45) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\core_userlist_provider, \core_privacy\local\request\plugin\provider; Found: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider
(#48) Opening brace must not be followed by a blank line
(#71) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#164) Long list syntax is not allowed
(#179) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#234) Long list syntax is not allowed
(#254) Long list syntax is not allowed
(#271) Long list syntax is not allowed
(#299) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#299) Multi-line function declarations must define one parameter per line
(#299) Multi-line function declarations must define one parameter per line
(#300) Multi-line function declaration not indented correctly; expected 8 spaces but found 56
(#300) Multi-line function declarations must define one parameter per line
(#300) The closing parenthesis of a multi-line function declaration must be on a new line
mod/pandavideo/classes/report/pandavideo_view.php
(#37) Opening brace must not be followed by a blank line
(#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 12 spaces but found 16
(#161) Closing parenthesis of a multi-line function call must be on a line by itself
mod/pandavideo/index.php
(#90) Opening parenthesis of a multi-line function call must be the last content on the line
(#91) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#91) Closing parenthesis of a multi-line function call must be on a line by itself
mod/pandavideo/lib.php
(#78) Space after opening parenthesis of function call prohibited
mod/pandavideo/mod_form.php
(#40) Opening brace must not be followed by a blank line
mod/pandavideo/report.php
(#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
mod/pandavideo/settings.php
(#37) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#37) Closing parenthesis of a multi-line function call must be on a line by itself

Javascript coding style problems

(4 errors, 13 warnings)

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

mod/pandavideo/classes/form/pandavideo_filepicker.js
(#1) Identifier 'pandavideo_filepicker' is not in camel case. (camelcase)
(#5) Unexpected space before function parentheses. (space-before-function-paren)
(#6) Unexpected console statement. (no-console)
(#8) ["client_id"] is better written in dot notation. (dot-notation)
(#8) Missing semicolon. (semi)
(#10) Identifier 'element_elementid' is not in camel case. (camelcase)
(#11) Identifier 'element_elementid' is not in camel case. (camelcase)
(#14) Operator '+' must be spaced. (space-infix-ops)
(#20) Unexpected space before function parentheses. (space-before-function-paren)
(#21) Unexpected console statement. (no-console)
(#22) Expected space or tab after '//' in comment. (spaced-comment)
(#25) Expected space or tab after '//' in comment. (spaced-comment)
(#29) Expected space or tab after '//' in comment. (spaced-comment)
(#35) Unexpected space before function parentheses. (space-before-function-paren)
(#35) Identifier 'client_id' is not in camel case. (camelcase)
(#37) Use '===' to compare with null. (no-eq-null)
(#38) Identifier 'client_id' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(26 errors, 0 warnings)

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

mod/pandavideo/backup/moodle2/restore_pandavideo_activity_task.class.php
(#85) 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)]}
(#87) 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)]}
(#101) 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)]}
(#103) 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/pandavideo/backup/moodle2/restore_pandavideo_stepslib.php
(#39) Inline phpdocs tag {@link restore_path_element} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/pandavideo/classes/analytics/pandavideo_view.php
(#35) Phpdocs for function pandavideo_view::create has incomplete parameters list
(#61) Phpdocs for function pandavideo_view::internal_create has incomplete parameters list
(#90) Phpdocs for function pandavideo_view::update has incomplete parameters list
mod/pandavideo/classes/completion/completion_util.php
(#40) Phpdocs for function completion_util::get_completion_state has incomplete parameters list
mod/pandavideo/classes/grade/grades_util.php
(#40) Phpdocs for function grades_util::update has incomplete parameters list
(#82) Phpdocs for function grades_util::grade_item_update has incomplete parameters list
mod/pandavideo/classes/panda/repository.php
(#43) Phpdocs for function repository::oembed has incomplete parameters list
(#74) Phpdocs for function repository::http_get has incomplete parameters list
mod/pandavideo/classes/report/pandavideo_view.php
(#51) Phpdocs for function pandavideo_view::__construct has incomplete parameters list
(#169) Phpdocs for function pandavideo_view::col_currenttime has incomplete parameters list
(#187) Phpdocs for function pandavideo_view::col_duration has incomplete parameters list
(#204) Phpdocs for function pandavideo_view::col_percent has incomplete parameters list
(#214) Phpdocs for function pandavideo_view::col_videomap has incomplete parameters list
(#238) Phpdocs for function pandavideo_view::col_timecreated has incomplete parameters list
(#248) Phpdocs for function pandavideo_view::col_timemodified has incomplete parameters list
(#258) Phpdocs for function pandavideo_view::col_extra has incomplete parameters list
(#287) Phpdocs for function pandavideo_view::query_db_default has incomplete parameters list
(#383) Phpdocs for function pandavideo_view::query_db_postgresql has incomplete parameters list
mod/pandavideo/lib.php
(#31) Phpdocs for function pandavideo_supports has incomplete parameters list
(#278) Phpdocs for function pandavideo_format_time has incomplete parameters list
mod/pandavideo/mod_form.php
(#221) Phpdocs for function mod_pandavideo_mod_form::validation 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

(0 errors, 15 warnings)

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

mod/pandavideo/templates/embed.mustache
(#1) HTML validation skipped
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( require(["jquery", "core/ajax"], function ($, Ajax) {
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( init: function () {
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( window.addEventListener("message", function (event) {
(#1) ESLint warning [consistent-return]: Expected to return a value at the end of method '_saveprogress'. ( _saveprogress: function (currenttime, duration) {
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( _saveprogress: function (currenttime, duration) {
(#1) ESLint warning [consistent-return]: Method '_saveprogress' expected a return value. ( return;
(#1) ESLint warning [consistent-return]: Method '_saveprogress' expected a return value. ( return;
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( _progresscreate: function (duration) {
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( .click(function () {
(#1) ESLint warning [comma-spacing]: A space is required after ','. ( let pandavideoviewmaps = [1,0,0,0,0];
(#1) ESLint warning [comma-spacing]: A space is required after ','. ( let pandavideoviewmaps = [1,0,0,0,0];
(#1) ESLint warning [comma-spacing]: A space is required after ','. ( let pandavideoviewmaps = [1,0,0,0,0];
(#1) ESLint warning [comma-spacing]: A space is required after ','. ( let pandavideoviewmaps = [1,0,0,0,0];
(#1) ESLint error [no-console]: Unexpected console statement. ( console.error(e);
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( _setcurrenttime: function (currenttime) {

Gherkin .feature problems

(0 errors, 0 warnings)

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