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

(135 errors, 48 warnings)

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

admin/tool/copy_courses/classes/form/form_copy_courses.php
(#1) Moodle boilerplate not found
(#17) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#20) Missing docblock for class form_copy_courses
(#21) Opening brace should be on the same line as the declaration for class form_copy_courses
(#22) Missing member variable doc comment
(#22) Member variable "types_separator" must not contain underscores.
(#25) Invalid docblock tag "@inheritDoc".
(#27) No one-line description found in phpdocs for docblock of function definition
(#28) Opening brace should be on the same line as the declaration
(#31) Line exceeds 132 characters; contains 140 characters
(#56) Opening brace should be on the same line as the declaration
(#61) File must end with a newline character
admin/tool/copy_courses/classes/managment_copy_courses.class.php
(#1) Moodle boilerplate not found
(#15) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#19) Missing docblock for class managment_copy_courses
(#20) Opening brace should be on the same line as the declaration for class managment_copy_courses
(#21) Missing member variable doc comment
(#22) Missing member variable doc comment
(#23) Missing member variable doc comment
(#24) Missing member variable doc comment
(#25) Missing member variable doc comment
(#26) Missing member variable doc comment
(#27) Missing member variable doc comment
(#28) Missing member variable doc comment
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#32) Missing member variable doc comment
(#35) There should be a comma after the last array item in a multi-line array.
(#38) Missing docblock for function __construct
(#39) Opening brace should be on the same line as the declaration
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) No space found before comment text; expected "// Valores default" but found "//Valores default"
(#63) Opening brace should be on the same line as the declaration
(#77) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#82) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) No space found before comment text; expected "// Campos para la nueva tarea" but found "//Campos para la nueva tarea"
(#93) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#102) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#111) Public method name "managment_copy_courses::toStdClass" must be in lower-case letters only
(#112) Opening brace should be on the same line as the declaration
(#138) Opening brace should be on the same line as the declaration
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) No space found before comment text; expected "// Comprobar que el campo cat sea numerico" but found "//Comprobar que el campo cat sea numerico"
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#148) No space found before comment text; expected "// Comprobar que la categoria exista" but found "//Comprobar que la categoria exista"
(#150) Short array syntax must be used to define arrays
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) No space found before comment text; expected "// Comprobar que el campo copyshortname pasado exista el curso" but found "//Comprobar que el campo copyshortname pasado exista el curso"
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) No space found before comment text; expected "// Comprobar el enddate, sea valido" but found "//Comprobar el enddate, sea valido"
(#162) Variable "timestamp_enddate" must not contain underscores.
(#163) Variable "timestamp_enddate" must not contain underscores.
(#167) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) No space found before comment text; expected "// Comprobar que el fullname no este vacio" but found "//Comprobar que el fullname no este vacio"
(#172) Inline comments must end in full-stops, exclamation marks, or question marks
(#172) No space found before comment text; expected "// Comprobar que el shortname de curso, no existe" but found "//Comprobar que el shortname de curso, no existe"
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) No space found before comment text; expected "// Comprobar el startdate, sea valido" but found "//Comprobar el startdate, sea valido"
(#178) Variable "timestamp_startdate" must not contain underscores.
(#179) Variable "timestamp_startdate" must not contain underscores.
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#183) No space found before comment text; expected "// Comprobar que visible, sea 0 o 1" but found "//Comprobar que visible, sea 0 o 1"
(#188) Inline comments must end in full-stops, exclamation marks, or question marks
(#188) No space found before comment text; expected "// Comprobar que el enddate y el startdate, sean validos" but found "//Comprobar que el enddate y el startdate, sean validos"
(#189) Variable "timestamp_enddate" must not contain underscores.
(#189) Variable "timestamp_startdate" must not contain underscores.
(#189) Variable "timestamp_enddate" must not contain underscores.
(#189) Variable "timestamp_startdate" must not contain underscores.
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) No space found before comment text; expected "// Comprobar que no se hubiera enviado más de un shortname igual" but found "//Comprobar que no se hubiera enviado más de un shortname igual"
(#212) Opening brace should be on the same line as the declaration
(#214) Short array syntax must be used to define arrays
(#223) File must end with a newline character
admin/tool/copy_courses/classes/privacy/provider.php
(#1) Moodle boilerplate not found
(#14) Missing docblock for class provider
(#15) Opening brace should be on the same line as the declaration for class provider
(#18) Invalid docblock tag "@inheritDoc".
(#20) No one-line description found in phpdocs for docblock of function get_reason
(#21) Opening brace should be on the same line as the declaration
(#24) File must end with a newline character
admin/tool/copy_courses/classes/task/copy_course_task.php
(#1) Moodle boilerplate not found
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) Missing docblock for class copy_course_task
(#19) Opening brace should be on the same line as the declaration for class copy_course_task
(#20) Missing docblock for function execute
(#21) Opening brace should be on the same line as the declaration
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) Short array syntax must be used to define arrays
(#35) File must end with a newline character
admin/tool/copy_courses/db/access.php
(#1) Moodle boilerplate not found
(#19) Expected 1 space before "=>"; 0 found
(#19) Expected 1 space after "=>"; 0 found
(#20) Expected 1 space before "=>"; 0 found
(#20) Expected 1 space after "=>"; 0 found
(#21) Expected 1 space before "=>"; 0 found
(#21) Expected 1 space after "=>"; 0 found
(#22) Expected 1 space before "=>"; 0 found
(#22) Expected 1 space after "=>"; 0 found
(#22) There should be a comma after the last array item in a multi-line array.
admin/tool/copy_courses/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/copy_courses/db/uninstall.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/copy_courses/index.php
(#1) Moodle boilerplate not found
(#43) There should be a comma after the last array item in a multi-line array.
(#70) Variable "data_template" must not contain underscores.
(#81) Variable "data_template" must not contain underscores.
(#85) File must end with a newline character
admin/tool/copy_courses/lang/en/tool_copy_courses.php
(#30) The string key "copy_courses:writeinstance" is not in the correct order, it should be before "titlepage"
(#32) The string key "type_csv" is not in the correct order, it should be before "uploadcsv"
(#33) The string key "error_num_columns" is not in the correct order, it should be before "type_csv"
(#34) The string key "error_in_columns" is not in the correct order, it should be before "error_num_columns"
(#36) The string key "cat_no_validate" is not in the correct order, it should be before "nocapability"
(#43) The string key "validate" is not in the correct order, it should be before "visible_no_validate"
(#44) The string key "dates_not_validates" is not in the correct order, it should be before "validate"
(#46) The string key "notification_validate" is not in the correct order, it should be before "shortname_no_duplicate"
(#47) The string key "create_task" is not in the correct order, it should be before "notification_validate"
(#50) The string key "linkfile" is not in the correct order, it should be before "return_site"
(#51) The string key "indications" is not in the correct order, it should be before "linkfile"
(#52) The string key "copyshortname" is not in the correct order, it should be before "indications"
(#55) The string key "category" is not in the correct order, it should be before "shortname"
(#57) The string key "startdate" is not in the correct order, it should be before "visible"
(#58) The string key "enddate" is not in the correct order, it should be before "startdate"
admin/tool/copy_courses/lang/es/tool_copy_courses.php
(#30) The string key "copy_courses:writeinstance" is not in the correct order, it should be before "titlepage"
(#32) The string key "type_csv" is not in the correct order, it should be before "uploadcsv"
(#33) The string key "error_num_columns" is not in the correct order, it should be before "type_csv"
(#34) The string key "error_in_columns" is not in the correct order, it should be before "error_num_columns"
(#36) The string key "cat_no_validate" is not in the correct order, it should be before "nocapability"
(#43) The string key "validate" is not in the correct order, it should be before "visible_no_validate"
(#44) The string key "dates_not_validates" is not in the correct order, it should be before "validate"
(#46) The string key "notification_validate" is not in the correct order, it should be before "shortname_no_duplicate"
(#47) The string key "create_task" is not in the correct order, it should be before "notification_validate"
(#50) The string key "linkfile" is not in the correct order, it should be before "return_site"
(#51) The string key "indications" is not in the correct order, it should be before "linkfile"
(#52) The string key "copyshortname" is not in the correct order, it should be before "indications"
(#55) The string key "category" is not in the correct order, it should be before "shortname"
(#57) The string key "startdate" is not in the correct order, it should be before "visible"
(#58) Unexpected string end, it should be a line feed after a semicolon
(#58) File must end with a newline character
admin/tool/copy_courses/lib.php
(#1) Moodle boilerplate not found
(#36) Opening brace should be on the same line as the declaration
(#44) Variable "sorted_columns" must not contain underscores.
(#45) Variable "sorted_columns" must not contain underscores.
(#46) The use of function sizeof() is forbidden; use count() instead
(#46) Variable "sorted_columns" must not contain underscores.
(#46) The use of function sizeof() is forbidden; use count() instead
(#49) Variable "sorted_columns" must not contain underscores.
(#52) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#54) Variable "column_map" must not contain underscores.
(#57) Variable "sorted_columns" must not contain underscores.
(#62) Variable "sorted_row" must not contain underscores.
(#63) Variable "sorted_columns" must not contain underscores.
(#64) Variable "sorted_row" must not contain underscores.
(#64) Variable "column_map" must not contain underscores.
(#66) Variable "sorted_row" must not contain underscores.
(#69) Variable "sorted_row" must not contain underscores.
(#74) Variable "sorted_row" must not contain underscores.
(#75) Variable "sorted_row" must not contain underscores.
(#90) Opening brace should be on the same line as the declaration
(#112) Opening brace should be on the same line as the declaration
(#118) Variable "file_storage" must not contain underscores.
(#120) Variable "file_record" must not contain underscores.
(#129) Variable "file_storage" must not contain underscores.
(#129) Variable "file_record" must not contain underscores.
(#139) Opening brace should be on the same line as the declaration
(#141) Variable "file_storage" must not contain underscores.
(#143) Variable "file_record" must not contain underscores.
(#152) Variable "file_storage" must not contain underscores.
(#153) Variable "file_record" must not contain underscores.
(#154) Variable "file_record" must not contain underscores.
(#155) Variable "file_record" must not contain underscores.
(#156) Variable "file_record" must not contain underscores.
(#161) Variable "file_record" must not contain underscores.
(#176) Opening brace should be on the same line as the declaration
(#178) Variable "file_storage" must not contain underscores.
(#180) Variable "file_record" must not contain underscores.
(#188) Variable "file_storage" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Variable "file_record" must not contain underscores.
(#188) Line exceeds maximum limit of 180 characters; contains 192 characters

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

(0 errors, 0 warnings)

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


PHPDocs style problems

(5 errors, 0 warnings)

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

admin/tool/copy_courses/classes/form/form_copy_courses.php
(#52) Phpdocs for function form_copy_courses::get_separator has incomplete parameters list
admin/tool/copy_courses/classes/managment_copy_courses.class.php
(#131) Phpdocs for function managment_copy_courses::verified_copy_data has incomplete parameters list
(#207) Phpdocs for function managment_copy_courses::get_course_by_shortname has incomplete parameters list
admin/tool/copy_courses/lib.php
(#31) Phpdocs for function tool_copy_courses_validate_file has incomplete parameters list
(#105) Phpdocs for function tool_copy_courses_save_file 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, 2 warnings)

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

admin/tool/copy_courses/templates/index.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 2: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (ad><body><hr/><p cl)
admin/tool/copy_courses/templates/indications.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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