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

(403 errors, 419 warnings)

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

blocks/my_external_backup_restore_courses/admin/index.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#18) Incorrect @package tag for file index.php. Expected block_my_external_backup_restore_courses, found 2025 Université de Strasbourg {@link http://unistra.fr}.
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) No space found before comment text; expected "// TODO breadcrumb" but found "//TODO breadcrumb"
(#31) Short array syntax must be used to define arrays
(#32) Commas (,) must be followed by white space.
(#32) Short array syntax must be used to define arrays
blocks/my_external_backup_restore_courses/admin/restorecourseforuser.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file restorecourseforuser.php
(#1) Moodle boilerplate not found
(#16) Short array syntax must be used to define arrays
(#17) Commas (,) must be followed by white space.
(#17) Short array syntax must be used to define arrays
(#20) Expected 1 space before "="; 0 found
(#23) Commas (,) must be followed by white space.
(#32) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#47) File must end with a newline character
blocks/my_external_backup_restore_courses/admin/restorecourseforuser_form.php
(#1) Moodle boilerplate not found
(#6) Incorrect @package tag for file restorecourseforuser_form.php. Expected block_my_external_backup_restore_courses, found 2023 unistra {@link http://unistra.fr}.
(#15) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) Missing docblock for class restorecourseforuser_form
(#19) Missing docblock for function definition
(#19) Visibility must be declared on method "definition"
(#23) Short array syntax must be used to define arrays
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Expected 1 space before ">"; 0 found
(#30) Expected 1 space after ">"; 0 found
(#31) Short array syntax must be used to define arrays
(#32) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#37) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#72) File must end with a newline character
blocks/my_external_backup_restore_courses/backup_external_courses_helper.class.php
(#20) Incorrect @package tag for file backup_external_courses_helper.class.php. Expected block_my_external_backup_restore_courses, found 2013 unistra {@link http://unistra.fr}.
(#31) Missing docblock for class backup_external_courses_helper
(#48) Missing member variable doc comment
(#49) Missing member variable doc comment
(#50) Missing member variable doc comment
(#51) Missing member variable doc comment
(#52) Missing member variable doc comment
(#52) Short array syntax must be used to define arrays
(#64) Missing member variable doc comment
(#64) Short array syntax must be used to define arrays
(#80) There should be a comma after the last array item in a multi-line array.
(#87) Docblock tag "@global" is not recommended.
(#97) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#109) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#115) There should be a comma after the last array item in a multi-line array.
(#124) No one-line description found in phpdocs for docblock of function launch_automated_backup_delete
(#132) Spaces must be used to indent lines; tabs are not allowed
(#132) Tab found within whitespace
(#132) Line indented incorrectly; expected at least 8 spaces, found 1
(#135) Expected 1 space before "?"; 0 found
(#146) The use of function error_log() is forbidden; use debugging() instead
blocks/my_external_backup_restore_courses/block_my_external_backup_restore_courses.php
(#20) Incorrect @package tag for file block_my_external_backup_restore_courses.php. Expected block_my_external_backup_restore_courses, found 2013 unistra {@link http://unistra.fr}.
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Missing docblock for class block_my_external_backup_restore_courses
(#32) Missing docblock for function init
(#36) Missing docblock for function has_config
(#40) Missing docblock for function get_content
(#41) global $PAGE cannot be used in block classes. Use $this->page.
(#42) global $PAGE cannot be used in block classes. Use $this->page.
(#53) Logical operator "or" is prohibited; use "||" instead
(#53) Logical operator "or" is prohibited; use "||" instead
(#60) Missing docblock for function applicable_formats
(#61) Short array syntax must be used to define arrays
blocks/my_external_backup_restore_courses/classes/privacy/provider.php
(#36) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#52) Opening brace should be on the same line as the declaration for class provider
(#59) There must not be a space before the colon in a return type declaration
(#64) There should be a comma after the last array item in a multi-line array.
(#90) There should be a comma after the last array item in a multi-line array.
(#104) There must not be a space before the colon in a return type declaration
(#115) There should be a comma after the last array item in a multi-line array.
(#129) Logical operator "or" is prohibited; use "||" instead
(#133) There should be a comma after the last array item in a multi-line array.
(#141) There should be a comma after the last array item in a multi-line array.
(#160) Short array syntax must be used to define arrays
(#164) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#169) There should be a comma after the last array item in a multi-line array.
(#176) There should be a comma after the last array item in a multi-line array.
(#197) Short array syntax must be used to define arrays
(#198) There should be a comma after the last array item in a multi-line array.
(#204) Short array syntax must be used to define arrays
(#205) There should be a comma after the last array item in a multi-line array.
(#226) Short array syntax must be used to define arrays
(#227) There should be a comma after the last array item in a multi-line array.
(#233) Short array syntax must be used to define arrays
(#234) There should be a comma after the last array item in a multi-line array.
(#255) Short array syntax must be used to define arrays
(#261) Short array syntax must be used to define arrays
blocks/my_external_backup_restore_courses/classes/reportbuilder/local/entities/course_restoration_task.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#18) Incorrect @package tag for file course_restoration_task.php. Expected block_my_external_backup_restore_courses, found 2025 Université de Strasbourg {@link http://unistra.fr}.
(#42) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Missing docblock for class course_restoration_task
(#44) Missing docblock for function get_default_tables
(#50) Missing docblock for function get_default_entity_title
(#51) Opening brace should be on the same line as the declaration
(#55) Missing docblock for function initialise
(#56) Opening brace should be on the same line as the declaration
(#71) Missing docblock for function get_all_columns
(#72) Opening brace should be on the same line as the declaration
(#84) Whitespace found at end of line within string
(#155) Short array syntax must be used to define arrays
(#159) Commas (,) must be followed by white space.
(#160) Commas (,) must be followed by white space.
(#167) Line exceeds 132 characters; contains 145 characters
(#177) Commas (,) must be followed by white space.
(#184) Line exceeds 132 characters; contains 141 characters
(#204) There should be a comma after the last array item in a multi-line array.
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) This comment is 75% valid code; is this commented out code?
(#207) No space found before comment text; expected "// return $edittext;" but found "//return $edittext;"
(#222) Line exceeds 132 characters; contains 139 characters
(#229) Line exceeds 132 characters; contains 137 characters
(#242) There should be a comma after the last array item in a multi-line array.
(#245) Inline comments must start with a capital letter, digit or 3-dots sequence
(#245) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) This comment is 75% valid code; is this commented out code?
(#245) No space found before comment text; expected "// return $edittext;" but found "//return $edittext;"
(#271) Line exceeds 132 characters; contains 133 characters
(#281) Line exceeds 132 characters; contains 151 characters
(#292) Missing docblock for function get_all_filters
(#325) There must be a single space between the colon and type in a return type declaration
(#350) There must be a single space between the colon and type in a return type declaration
(#400) There must be a single space between the colon and type in a return type declaration
blocks/my_external_backup_restore_courses/classes/reportbuilder/local/systemreports/course_restoration_tasks.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#18) Incorrect @package tag for file course_restoration_tasks.php. Expected block_my_external_backup_restore_courses, found 2025 Université de Strasbourg {@link http://unistra.fr}.
(#31) Missing docblock for class course_restoration_tasks
(#32) Missing member variable doc comment
(#33) Missing docblock for function initialise
(#34) Opening brace should be on the same line as the declaration
(#44) Missing docblock for function can_view
(#47) Missing docblock for function add_columns
(#48) Opening brace should be on the same line as the declaration
(#70) Missing docblock for function add_filters
(#89) File must end with a newline character
blocks/my_external_backup_restore_courses/classes/task/backup_restore_task.php
(#20) Incorrect @package tag for file backup_restore_task.php. Expected block_my_external_backup_restore_courses, found 2012 unistra {@link http://unistra.fr}.
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for class backup_restore_task
(#31) Missing docblock for function get_name
(#36) Missing docblock for function execute
blocks/my_external_backup_restore_courses/cli/add_task.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#18) Incorrect @package tag for file add_task.php. Expected block_my_external_backup_restore_courses, found 2025 Université de Strasbourg {@link http://unistra.fr}.
(#31) Short array syntax must be used to define arrays
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) There should be a comma after the last array item in a multi-line array.
(#45) Short array syntax must be used to define arrays
(#49) Expected 1 space before "=>"; 0 found
(#56) There should be a comma after the last array item in a multi-line array.
(#66) Line exceeds 132 characters; contains 148 characters
(#80) Whitespace found at end of line within string
(#86) Whitespace found at end of line within string
(#88) Line exceeds maximum limit of 180 characters; contains 239 characters
(#92) Line exceeds maximum limit of 180 characters; contains 257 characters
(#92) Whitespace found at end of line within string
(#115) Expected "try {\n...} catch (...) {\n"; found "try{\n...} catch(...) {\n"
blocks/my_external_backup_restore_courses/cli/install_server.php
(#16) Missing @copyright tag
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#37) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#46) Line exceeds 132 characters; contains 147 characters
blocks/my_external_backup_restore_courses/db/access.php
(#20) Incorrect @package tag for file access.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#33) 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.
(#38) 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.
(#46) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#52) There should be a comma after the last array item in a multi-line array.
(#55) Short array syntax must be used to define arrays
(#59) 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.
(#63) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#68) There should be a comma after the last array item in a multi-line array.
(#72) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#80) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#85) There should be a comma after the last array item in a multi-line array.
(#88) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#111) File must end with a newline character
blocks/my_external_backup_restore_courses/db/messages.php
(#20) Incorrect @package tag for file messages.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#28) 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
(#33) There should be a comma after the last array item in a multi-line array.
(#34) There should be a comma after the last array item in a multi-line array.
(#38) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#42) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
blocks/my_external_backup_restore_courses/db/services.php
(#20) Incorrect @package tag for file services.php. Expected block_my_external_backup_restore_courses, found 2014 unistra {@link http://unistra.fr}.
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#76) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#81) There should be a comma after the last array item in a multi-line array.
(#87) There should be a comma after the last array item in a multi-line array.
(#88) There should be a comma after the last array item in a multi-line array.
(#89) File must end with a newline character
blocks/my_external_backup_restore_courses/db/tasks.php
(#20) Incorrect @package tag for file tasks.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
(#38) File must end with a newline character
blocks/my_external_backup_restore_courses/db/upgrade.php
(#20) Incorrect @package tag for file upgrade.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Missing docblock for function xmldb_block_my_external_backup_restore_courses_upgrade
(#41) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#46) Expected "if (...) {\n"; found "if(...){\n"
(#54) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#56) Whitespace found at end of line
(#59) Expected "if (...) {\n"; found "if(...){\n"
(#62) Commas (,) must be followed by white space.
(#83) Short array syntax must be used to define arrays
(#94) Expected "if (...) {\n"; found "if(...) {\n"
(#98) Inline comments must start with a capital letter, digit or 3-dots sequence
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/my_external_backup_restore_courses/externallib.php
(#20) Incorrect @package tag for file externallib.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#32) Import statements must not begin with a leading backslash
(#33) Import statements must not begin with a leading backslash
(#36) Missing docblock for class block_my_external_backup_restore_courses_external
(#37) Missing docblock for function get_courses_zip
(#44) Short array syntax must be used to define arrays
(#59) 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
(#86) Short array syntax must be used to define arrays
(#89) Missing docblock for function get_courses_zip_parameters
(#91) Short array syntax must be used to define arrays
(#95) Line exceeds 132 characters; contains 145 characters
(#96) Line exceeds 132 characters; contains 138 characters
(#101) Missing docblock for function get_courses_zip_returns
(#103) Short array syntax must be used to define arrays
(#110) Missing docblock for function get_courses
(#116) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#147) Commas (,) must be followed by white space.
(#147) Line exceeds 132 characters; contains 139 characters
(#148) Commas (,) must be followed by white space.
(#155) Missing docblock for function get_courses_parameters
(#157) Short array syntax must be used to define arrays
(#160) Line exceeds 132 characters; contains 145 characters
(#165) Missing docblock for function get_courses_returns
(#168) Short array syntax must be used to define arrays
(#187) Missing docblock for function change_task_status_parameters
(#194) Missing docblock for function change_task_status
(#195) Opening brace should be on the same line as the declaration
(#203) Expected 1 space before "=>"; 0 found
(#206) Missing docblock for function change_task_status_returns
(#212) Missing docblock for function change_internalcategory_id_parameters
(#219) Missing docblock for function change_internalcategory_id
(#220) Opening brace should be on the same line as the declaration
(#231) Expected 1 space before "=>"; 0 found
(#234) Missing docblock for function change_internalcategory_id_returns
(#240) Missing docblock for function change_userid_parameters
(#247) Missing docblock for function change_userid
(#248) Opening brace should be on the same line as the declaration
(#259) Expected 1 space before "=>"; 0 found
(#262) Missing docblock for function change_userid_returns
blocks/my_external_backup_restore_courses/get_user_backup_course_webservice.php
(#20) Incorrect @package tag for file get_user_backup_course_webservice.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
blocks/my_external_backup_restore_courses/index.php
(#20) Incorrect @package tag for file index.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#53) Short array syntax must be used to define arrays
(#68) This comment is 47% valid code; is this commented out code?
(#69) Short array syntax must be used to define arrays
(#72) There should be a comma after the last array item in a multi-line array.
(#99) Short array syntax must be used to define arrays
(#143) Inline comments must start with a capital letter, digit or 3-dots sequence
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) Short array syntax must be used to define arrays
(#164) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#248) Short array syntax must be used to define arrays
(#249) Short array syntax must be used to define arrays
(#249) Short array syntax must be used to define arrays
(#253) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
(#260) Short array syntax must be used to define arrays
(#265) Commas (,) must be followed by white space.
(#268) Commas (,) must be followed by white space.
(#288) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#321) Short array syntax must be used to define arrays
(#323) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#333) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#399) Short array syntax must be used to define arrays
(#408) Short array syntax must be used to define arrays
(#412) Commas (,) must be followed by white space.
(#418) Commas (,) must be followed by white space.
(#424) Commas (,) must be followed by white space.
(#435) Expected "if (...) {\n"; found "if(...) {\n"
(#441) Short array syntax must be used to define arrays
(#443) There should be a comma after the last array item in a multi-line array.
(#448) Expected "if (...) {\n"; found "if(...) {\n"
(#462) Short array syntax must be used to define arrays
(#465) Short array syntax must be used to define arrays
(#470) Line exceeds maximum limit of 180 characters; contains 183 characters
(#471) Commas (,) must be followed by white space.
(#472) Commas (,) must be followed by white space.
(#490) Short array syntax must be used to define arrays
(#521) Short array syntax must be used to define arrays
(#525) Short array syntax must be used to define arrays
(#531) Short array syntax must be used to define arrays
(#537) Expected "if (...) {\n"; found "if (...){\n"
(#616) Short array syntax must be used to define arrays
(#651) Inline comments must end in full-stops, exclamation marks, or question marks
(#652) Short array syntax must be used to define arrays
(#654) Short array syntax must be used to define arrays
(#656) Short array syntax must be used to define arrays
(#666) Short array syntax must be used to define arrays
(#695) Short array syntax must be used to define arrays
(#718) Short array syntax must be used to define arrays
(#736) Short array syntax must be used to define arrays
(#741) Short array syntax must be used to define arrays
blocks/my_external_backup_restore_courses/lang/en/block_my_external_backup_restore_courses.php
(#20) Incorrect @package tag for file block_my_external_backup_restore_courses.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#30) The string key "external_moodle" is not in the correct order, it should be before "roles_included_in_external_courses_search_Desc"
(#34) The string key "my_external_backup_restore_courses:can_retrieve_courses" is not in the correct order, it should be before "my_external_backup_restore_courses:can_see_backup_courses"
(#36) The string key "my_external_backup_restore_courses:can_see_external_course_link" is not in the correct order, it should be before "my_external_backup_restore_courses:myaddinstance"
(#37) The string key "my_external_backup_restore_courses:can_restore_user_datas" is not in the correct order, it should be before "my_external_backup_restore_courses:can_see_external_course_link"
(#39) The string key "externalmoodlecourselist" is not in the correct order, it should be before "noexternalmoodleconnected"
(#49) The string key "choose_to_restore" is not in the correct order, it should be before "restorecourses"
(#53) The string key "defaultcategorychecked" is not in the correct order, it should be before "restorecourseinoriginalcategory_desc"
(#55) The string key "categorytable" is not in the correct order, it should be before "defaultcategorychecked_desc"
(#59) The string key "categorytable_categoryfield" is not in the correct order, it should be before "categorytable_foreignkey_desc"
(#67) The string key "status_-1" is not in the correct order, it should be before "status_2"
(#71) The string key "status_-1_byuser" is not in the correct order, it should be before "status_2_byuser"
(#72) The string key "my_external_backup_restore_courses_task" is not in the correct order, it should be before "status_-1_byuser"
(#73) The string key "error_msg_admin" is not in the correct order, it should be before "my_external_backup_restore_courses_task"
(#75) The string key "messageprovider:restorationfailed" is not in the correct order, it should be before "messageprovider:restorationsuccess"
(#76) The string key "error_mail_subject" is not in the correct order, it should be before "messageprovider:restorationfailed"
(#77) The string key "error_mail_main_message" is not in the correct order, it should be before "error_mail_subject"
(#81) The string key "success_mail_main_message" is not in the correct order, it should be before "success_mail_subject"
(#83) The string key "cantrestorecourseincategorycontext" is not in the correct order, it should be before "success_mail_main_message_withuserdatas"
(#86) The string key "cantrestorecourseindefaultcategorycontext" is duplicated
(#87) The string key "my_external_backup_restore_courses:view" is not in the correct order, it should be before "notexistinginternalcategory"
(#89) The string key "executiontimemixed" is not in the correct order, it should be before "nextruntime"
(#93) The string key "includeexternalurlinmail" is not in the correct order, it should be before "warningstoowner_desc"
(#96) The string key "mailexternalmoodleinfo" is not in the correct order, it should be before "maillocalmoodleinfo"
(#97) The string key "NA" is not in the correct order, it should be before "mailexternalmoodleinfo"
(#103) The string key "courselabel" is not in the correct order, it should be before "onlyoneremoteinstance_desc"
(#108) The string key "enrollbuttonlabel" is not in the correct order, it should be before "enrollrole_desc"
(#110) The string key "cantenrollocourserolex" is not in the correct order, it should be before "enrollbuttonlabelcoursexuserx"
(#113) The string key "alreadyenrolledincoursexuserx" is not in the correct order, it should be before "nomanualenrol"
(#115) The string key "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle:externalcourseid"
(#116) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:userid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle"
(#117) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:externalcourseid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:userid"
(#122) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:courseid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:status"
(#126) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:timescheduleprocessed"
(#128) The string key "checkrequestercapascoursecreate" is not in the correct order, it should be before "privacy:metadata:core_enrol"
(#130) The string key "adminpage" is not in the correct order, it should be before "checkrequestercapascoursecreate_desc"
(#132) The string key "noscheduledtasks" is not in the correct order, it should be before "scheduledtasklist"
(#133) The string key "externalmoodleadminhelpsection" is not in the correct order, it should be before "noscheduledtasks"
(#133) Expected 1 space before "="; 0 found
(#133) Expected 1 space after "="; 0 found
(#134) The string key "defaultcategoryx" is not in the correct order, it should be before "externalmoodleadminhelpsection"
(#136) The string key "courseoruserfilter" is not in the correct order, it should be before "entriesperpage"
(#137) The string key "courseidfilter" is not in the correct order, it should be before "courseoruserfilter"
(#139) The string key "filter" is not in the correct order, it should be before "useridfilter"
(#142) The string key "enrolmentmodeheadtable" is not in the correct order, it should be before "withuserdatasheadtable"
(#143) The string key "adminrestorecourseforuser" is not in the correct order, it should be before "enrolmentmodeheadtable"
(#145) The string key "enrolmentmode" is not in the correct order, it should be before "withuserdatas"
(#148) The string key "planifyrestore" is duplicated
(#150) The string key "externalmoodleurl" is not in the correct order, it should be before "userid"
(#153) The string key "courseidXbutdeleted" is not in the correct order, it should be before "nomoreexistingrestoredcourse"
(#155) The string key "autoenrol_requester" is not in the correct order, it should be before "notcourseowner"
(#159) The string key "courseclient" is not in the correct order, it should be before "moodle_role_desc"
(#161) The string key "bothclientserver" is not in the correct order, it should be before "courseserver"
(#163) The string key "course_restoration_task" is not in the correct order, it should be before "source"
(#165) The string key "my_external_backup_restore_courses:change_internalcategory_id" is not in the correct order, it should be before "my_external_backup_restore_courses:change_status"
(#167) The string key "courseid" is not in the correct order, it should be before "my_external_backup_restore_courses:change_userid"
(#169) The string key "externalcourseid" is not in the correct order, it should be before "externalcoursename"
(#170) The string key "userid" is duplicated
(#171) The string key "externalmoodleurl" is duplicated
(#176) The string key "scheduledstatus" is not in the correct order, it should be before "timescheduleprocessed"
(#177) The string key "inprogressstatus" is not in the correct order, it should be before "scheduledstatus"
(#179) The string key "errorstatus" is not in the correct order, it should be before "performedstatus"
(#182) The string key "id" is not in the correct order, it should be before "status"
(#185) Unexpected string end, it should be a line feed after a semicolon
(#185) File must end with a newline character
blocks/my_external_backup_restore_courses/lang/fr/block_my_external_backup_restore_courses.php
(#20) Incorrect @package tag for file block_my_external_backup_restore_courses.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#30) The string key "external_moodle" is not in the correct order, it should be before "roles_included_in_external_courses_search_Desc"
(#34) The string key "my_external_backup_restore_courses:can_retrieve_courses" is not in the correct order, it should be before "my_external_backup_restore_courses:can_see_backup_courses"
(#36) The string key "my_external_backup_restore_courses:can_see_external_course_link" is not in the correct order, it should be before "my_external_backup_restore_courses:myaddinstance"
(#37) The string key "my_external_backup_restore_courses:can_restore_user_datas" is not in the correct order, it should be before "my_external_backup_restore_courses:can_see_external_course_link"
(#39) The string key "externalmoodlecourselist" is not in the correct order, it should be before "noexternalmoodleconnected"
(#49) The string key "choose_to_restore" is not in the correct order, it should be before "restorecourses"
(#53) The string key "defaultcategorychecked" is not in the correct order, it should be before "restorecourseinoriginalcategory_desc"
(#55) The string key "categorytable" is not in the correct order, it should be before "defaultcategorychecked_desc"
(#59) The string key "categorytable_categoryfield" is not in the correct order, it should be before "categorytable_foreignkey_desc"
(#67) The string key "status_-1" is not in the correct order, it should be before "status_2"
(#71) The string key "status_-1_byuser" is not in the correct order, it should be before "status_2_byuser"
(#72) The string key "my_external_backup_restore_courses_task" is not in the correct order, it should be before "status_-1_byuser"
(#73) The string key "error_msg_admin" is not in the correct order, it should be before "my_external_backup_restore_courses_task"
(#75) The string key "messageprovider:restorationfailed" is not in the correct order, it should be before "messageprovider:restorationsuccess"
(#76) The string key "error_mail_subject" is not in the correct order, it should be before "messageprovider:restorationfailed"
(#77) The string key "error_mail_main_message" is not in the correct order, it should be before "error_mail_subject"
(#81) The string key "success_mail_main_message" is not in the correct order, it should be before "success_mail_subject"
(#83) The string key "cantrestorecourseincategorycontext" is not in the correct order, it should be before "success_mail_main_message_withuserdatas"
(#86) The string key "my_external_backup_restore_courses:view" is not in the correct order, it should be before "notexistinginternalcategory"
(#88) The string key "executiontimemixed" is not in the correct order, it should be before "nextruntime"
(#92) The string key "includeexternalurlinmail" is not in the correct order, it should be before "warningstoowner_desc"
(#95) The string key "mailexternalmoodleinfo" is not in the correct order, it should be before "maillocalmoodleinfo"
(#96) The string key "NA" is not in the correct order, it should be before "mailexternalmoodleinfo"
(#102) The string key "courselabel" is not in the correct order, it should be before "onlyoneremoteinstance_desc"
(#107) The string key "enrollbuttonlabel" is not in the correct order, it should be before "enrollrole_desc"
(#109) The string key "cantenrollocourserolex" is not in the correct order, it should be before "enrollbuttonlabelcoursexuserx"
(#112) The string key "alreadyenrolledincoursexuserx" is not in the correct order, it should be before "nomanualenrol"
(#115) The string key "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle:externalmoodleurl"
(#116) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:userid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:remote_moodle"
(#117) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:externalcourseid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:userid"
(#122) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:courseid" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:status"
(#126) The string key "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore" is not in the correct order, it should be before "privacy:metadata:block_my_external_backup_restore_courses:block_external_backuprestore:timescheduleprocessed"
(#128) The string key "checkrequestercapascoursecreate" is not in the correct order, it should be before "privacy:metadata:core_enrol"
(#130) The string key "adminpage" is not in the correct order, it should be before "checkrequestercapascoursecreate_desc"
(#130) Expected 1 space before "="; 0 found
(#130) Expected 1 space after "="; 0 found
(#132) The string key "noscheduledtasks" is not in the correct order, it should be before "scheduledtasklist"
(#133) The string key "externalmoodleadminhelpsection" is not in the correct order, it should be before "noscheduledtasks"
(#133) Expected 1 space before "="; 0 found
(#133) Expected 1 space after "="; 0 found
(#134) The string key "defaultcategoryx" is not in the correct order, it should be before "externalmoodleadminhelpsection"
(#136) The string key "courseoruserfilter" is not in the correct order, it should be before "entriesperpage"
(#137) The string key "courseidfilter" is not in the correct order, it should be before "courseoruserfilter"
(#139) The string key "filter" is not in the correct order, it should be before "useridfilter"
(#142) The string key "enrolmentmodeheadtable" is not in the correct order, it should be before "withuserdatasheadtable"
(#143) The string key "adminrestorecourseforuser" is not in the correct order, it should be before "enrolmentmodeheadtable"
(#145) The string key "enrolmentmode" is not in the correct order, it should be before "withuserdatas"
(#148) The string key "externalcourseid" is not in the correct order, it should be before "settings"
(#149) The string key "planifyrestore" is duplicated
(#151) The string key "externalmoodleurl" is not in the correct order, it should be before "userid"
(#154) The string key "courseidXbutdeleted" is not in the correct order, it should be before "nomoreexistingrestoredcourse"
(#156) The string key "autoenrol_requester" is not in the correct order, it should be before "notcourseowner"
(#160) The string key "courseclient" is not in the correct order, it should be before "moodle_role_desc"
(#162) The string key "bothclientserver" is not in the correct order, it should be before "courseserver"
(#164) The string key "course_restoration_task" is not in the correct order, it should be before "source"
(#166) The string key "my_external_backup_restore_courses:change_internalcategory_id" is not in the correct order, it should be before "my_external_backup_restore_courses:change_status"
(#168) The string key "courseid" is not in the correct order, it should be before "my_external_backup_restore_courses:change_userid"
(#170) The string key "externalcourseid" is duplicated
(#171) The string key "userid" is duplicated
(#172) The string key "externalmoodleurl" is duplicated
(#177) The string key "scheduledstatus" is not in the correct order, it should be before "timescheduleprocessed"
(#178) The string key "inprogressstatus" is not in the correct order, it should be before "scheduledstatus"
(#180) The string key "errorstatus" is not in the correct order, it should be before "performedstatus"
(#183) The string key "id" is not in the correct order, it should be before "status"
(#186) Unexpected string end, it should be a line feed after a semicolon
(#186) File must end with a newline character
blocks/my_external_backup_restore_courses/lib.php
(#16) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#18) Inline doc block comments are not allowed; use "// Comment." instead
(#20) Incorrect @package tag for file lib.php. Expected block_my_external_backup_restore_courses, found 2025 Université de Strasbourg {@link http://unistra.fr}.
(#39) Missing docblock for function block_my_external_backup_restore_courses_inplace_editable
(#67) File must end with a newline character
blocks/my_external_backup_restore_courses/locallib.php
(#20) Incorrect @package tag for file locallib.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#32) Missing docblock for class block_my_external_backup_restore_courses_tools
(#33) Missing docblock for constant block_my_external_backup_restore_courses_tools::STATUS_SCHEDULED
(#34) Missing docblock for constant block_my_external_backup_restore_courses_tools::STATUS_INPROGRESS
(#35) Missing docblock for constant block_my_external_backup_restore_courses_tools::STATUS_PERFORMED
(#36) Missing docblock for constant block_my_external_backup_restore_courses_tools::STATUS_ERROR
(#37) Missing docblock for constant block_my_external_backup_restore_courses_tools::SOURCE_INTERNAL
(#38) Missing docblock for constant block_my_external_backup_restore_courses_tools::SOURCE_CLI
(#39) Missing docblock for constant block_my_external_backup_restore_courses_tools::BLOCK_MY_EXTERNAL_BACKUP_RESTORE_COURSES_ROLE
(#40) Missing docblock for constant block_my_external_backup_restore_courses_tools::BLOCK_MY_EXTERNAL_BACKUP_RESTORE_COURSES_DEFAULT_USER
(#42) Missing docblock for function del_tree
(#42) Expected 1 space after "function"; 2 found
(#42) Expected 0 spaces after "del_tree"; 3 found
(#43) Short array syntax must be used to define arrays
(#50) Missing docblock for function enrol_get_courses_with_role
(#62) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#73) Missing docblock for function external_backup_course_sitename
(#87) Missing docblock for function external_backup_course_name
(#91) Short array syntax must be used to define arrays
(#95) Expected 1 space after "=="; 0 found
(#102) Missing docblock for function get_all_users_courses
(#102) Line exceeds 132 characters; contains 134 characters
(#122) Short array syntax must be used to define arrays
(#129) Logical operator "or" is prohibited; use "||" instead
(#130) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#151) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Short array syntax must be used to define arrays
(#192) Whitespace found at end of line within string
(#219) Missing docblock for function print_content
(#234) Missing docblock for function rest_call_external_courses_client
(#234) Short array syntax must be used to define arrays
(#267) Missing docblock for function get_formatted_concerned_roles_shortname
(#269) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
(#279) Missing docblock for function get_search_roles_shortname
(#283) Short array syntax must be used to define arrays
(#286) Missing docblock for function format_string_list_for_sql
(#294) Missing docblock for function external_course_restored_or_on_way_by_other_users
(#296) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) Short array syntax must be used to define arrays
(#308) Missing docblock for function array_contains_object_with_properties
(#317) Missing docblock for function install_webservice_moodle_server
(#321) Short array syntax must be used to define arrays
(#342) Short array syntax must be used to define arrays
(#343) Short array syntax must be used to define arrays
(#349) Expected 1 space before "="; 0 found
(#349) Expected 1 space after "="; 0 found
(#355) Short array syntax must be used to define arrays
(#363) Short array syntax must be used to define arrays
(#365) There should be a comma after the last array item in a multi-line array.
(#374) Missing docblock for function get_external_moodles_url_token
(#374) Expected 1 space before opening brace; found 0
(#376) Short array syntax must be used to define arrays
(#382) Expected "if (...) {\n"; found "if(...){\n"
(#394) Missing docblock for function get_external_moodle_token
(#394) Expected 1 space before opening brace; found 0
(#398) Missing docblock for function admin_any_entries
(#400) Inline comments must start with a capital letter, digit or 3-dots sequence
(#400) Inline comments must end in full-stops, exclamation marks, or question marks
(#400) No space found before comment text; expected "// troubles with moodle get_count" but found "//troubles with moodle get_count"
(#401) Expected 1 space before ":"; 0 found
(#401) Expected 1 space after ":"; 0 found
(#401) Expected 1 space before ">"; 0 found
(#401) Expected 1 space after ">"; 0 found
(#404) Missing docblock for function update_status
(#406) Short array syntax must be used to define arrays
(#414) Missing docblock for function update_userid
(#416) Short array syntax must be used to define arrays
(#420) Short array syntax must be used to define arrays
(#428) Missing docblock for function update_internalcategory
(#430) Short array syntax must be used to define arrays
(#434) Inline comments must end in full-stops, exclamation marks, or question marks
(#434) No space found before comment text; expected "// Check that this category exists" but found "//Check that this category exists"
(#435) Short array syntax must be used to define arrays
(#436) Line indented incorrectly; expected at least 12 spaces, found 11
(#443) Missing docblock for class block_my_external_backup_restore_courses_invalid_username_exception
(#453) Missing docblock for class block_my_external_backup_restore_courses_task_helper
(#453) Expected 1 space before opening brace; found 0
(#454) Missing docblock for constant block_my_external_backup_restore_courses_task_helper::BACKUP_FILENAME
(#455) Missing docblock for constant block_my_external_backup_restore_courses_task_helper::BACKUP_TEMPDIRNAME
(#456) Missing docblock for function run_automated_backup_restore
(#471) Short array syntax must be used to define arrays
(#474) Line exceeds 132 characters; contains 156 characters
(#480) Short array syntax must be used to define arrays
(#494) Short array syntax must be used to define arrays
(#510) Short array syntax must be used to define arrays
(#577) Missing docblock for function retrieve_tasks
(#581) Line exceeds 132 characters; contains 159 characters
(#588) Short array syntax must be used to define arrays
(#591) Missing docblock for class block_my_external_backup_restore_courses_task
(#591) Expected 1 space before opening brace; found 0
(#592) Missing member variable doc comment
(#593) Missing member variable doc comment
(#593) Short array syntax must be used to define arrays
(#594) Missing docblock for function __construct
(#598) Missing docblock for function enrol_requester_if_any
(#603) Short array syntax must be used to define arrays
(#608) Missing docblock for function retrieve_external_moodle_name
(#611) Short array syntax must be used to define arrays
(#623) Missing docblock for function download_external_backup_courses
(#629) Short array syntax must be used to define arrays
(#645) Expected "if (...) {\n"; found "if(...){\n"
(#654) Missing docblock for function restore_course_from_backup_file
(#707) Expected 1 space before "?"; 0 found
(#715) The use of function error_log() is forbidden; use debugging() instead
(#759) Short array syntax must be used to define arrays
(#777) Missing docblock for function download_backup_course
(#818) Missing docblock for function change_task_status
(#825) Missing docblock for function set_local_courseid
(#831) Missing docblock for function get_username
(#833) Short array syntax must be used to define arrays
(#839) Missing docblock for function get_user
(#841) Short array syntax must be used to define arrays
(#844) Missing docblock for function get_manual_enrol
(#846) Short array syntax must be used to define arrays
(#847) Short array syntax must be used to define arrays
(#851) Short array syntax must be used to define arrays
(#857) There should be a comma after the last array item in a multi-line array.
(#860) Short array syntax must be used to define arrays
(#864) Missing docblock for function enrol_user
(#867) Missing docblock for function get_errors
(#870) Missing docblock for function get_lang_object
(#898) Missing docblock for function notify_success
(#912) Expected 1 space before "?"; 0 found
(#948) Missing docblock for function add_error
(#952) Missing docblock for function create_task
(#954) Commas (,) must be followed by white space.
(#960) Expected "if (...) {\n"; found "if (...){\n"
(#960) Short array syntax must be used to define arrays
(#960) Expected 1 space before "=>"; 0 found
(#960) Expected 1 space after "=>"; 0 found
(#963) Short array syntax must be used to define arrays
(#963) Expected 1 space before "=>"; 0 found
(#963) Expected 1 space after "=>"; 0 found
(#981) Missing docblock for class block_my_external_backup_restore_courses_task_error
(#981) Expected 1 space before opening brace; found 0
(#983) Missing member variable doc comment
(#984) Missing member variable doc comment
(#985) Missing member variable doc comment
(#986) Missing member variable doc comment
(#987) Missing member variable doc comment
(#988) Missing member variable doc comment
(#989) Missing member variable doc comment
(#990) Missing member variable doc comment
(#991) Missing member variable doc comment
(#992) Missing member variable doc comment
(#994) Method name "_get" should not be prefixed with an underscore to indicate visibility
(#994) Missing docblock for function _get
(#998) Missing docblock for function __construct
(#999) Expected "if (...) {\n"; found "if(...) {\n"
(#1007) Line exceeds 132 characters; contains 139 characters
(#1010) Expected 1 space before "?"; 0 found
(#1014) Missing docblock for function get_user
(#1018) Short array syntax must be used to define arrays
(#1020) Short array syntax must be used to define arrays
(#1026) Missing docblock for function get_lang_object
(#1056) Missing docblock for class block_my_external_backup_restore_courses_task_error_list
(#1058) Missing member variable doc comment
(#1058) Short array syntax must be used to define arrays
(#1059) Missing docblock for function add_error
(#1062) Missing docblock for function add_errors
(#1065) Missing docblock for function has_errors
(#1068) Missing docblock for function format_error_for_admin
(#1074) Short array syntax must be used to define arrays
(#1083) Missing docblock for function notify_errors
blocks/my_external_backup_restore_courses/settings.php
(#20) Incorrect @package tag for file settings.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Commas (,) must be followed by white space.
(#66) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#209) File must end with a newline character
blocks/my_external_backup_restore_courses/tests/behat/behat_block_my_external_backup_restore_courses.php
(#29) Missing docblock for constant behat_block_my_external_backup_restore_courses::BLOCK_MY_EXTERNAL_BACKUP_RESTORE_COURSES_ROLE
(#30) Missing docblock for constant behat_block_my_external_backup_restore_courses::BLOCK_MY_EXTERNAL_BACKUP_RESTORE_COURSES_DEFAULT_USER
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Expected 1 space after "="; 2 found
(#49) Missing docblock for function install_webservice_moodle_server
(#53) 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
(#82) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) There should be a comma after the last array item in a multi-line array.
(#111) Short array syntax must be used to define arrays
(#111) Commas (,) must be followed by white space.
(#112) Functions must not contain multiple empty lines in a row; found 2 empty lines
blocks/my_external_backup_restore_courses/tests/externallib_test.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#39) Import statements must not begin with a leading backslash
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) This comment is 64% valid code; is this commented out code?
(#50) No space found before comment text; expected "// require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');" but found "//require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');"
(#56) Unit test externallib_test should be declared as final.
(#56) No one-line description found in phpdocs for docblock of class externallib_test
(#57) Missing member variable doc comment
(#58) Missing member variable doc comment
(#59) Missing member variable doc comment
(#60) Missing member variable doc comment
(#61) Missing member variable doc comment
(#62) Missing member variable doc comment
(#63) Missing member variable doc comment
(#64) Missing member variable doc comment
(#65) Missing member variable doc comment
(#66) Missing member variable doc comment
(#67) Missing member variable doc comment
(#68) Missing docblock for constant externallib_test::EDITING_TEACHER_USERNAME
(#69) Missing docblock for constant externallib_test::CATEGORY_MANAGER_USERNAME
(#70) Missing docblock for constant externallib_test::CATEGORY_MANAGER_ROLE
(#76) Test method test_get_courses() is missing any coverage information, own or at class level
(#76) No one-line description found in phpdocs for docblock of function test_get_courses
(#76) Test method test_get_courses() is missing a return type
(#76) Expected 1 space before opening brace; found 0
(#92) Test method test_get_courses_zip() is missing any coverage information, own or at class level
(#92) No one-line description found in phpdocs for docblock of function test_get_courses_zip
(#92) Test method test_get_courses_zip() is missing a return type
(#92) Expected 1 space before opening brace; found 0
(#117) Test method test_get_courses_zip_withuserdatas() is missing any coverage information, own or at class level
(#117) Test method test_get_courses_zip_withuserdatas() is missing a return type
(#117) Expected 1 space before opening brace; found 0
(#139) Test method test_restore_course_in_categories() is missing any coverage information, own or at class level
(#139) Test method test_restore_course_in_categories() is missing a return type
(#160) Test method test_restore_course_withoutuserdatas() is missing any coverage information, own or at class level
(#160) No one-line description found in phpdocs for docblock of function test_restore_course_withoutuserdatas
(#160) Test method test_restore_course_withoutuserdatas() is missing a return type
(#160) Expected 1 space before opening brace; found 0
(#169) Expected "if (...) {\n"; found "if(...) {\n"
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) Line exceeds 132 characters; contains 134 characters
(#180) Short array syntax must be used to define arrays
(#182) Expected "if (...) {\n"; found "if(...) {\n"
(#188) Inline comments must start with a capital letter, digit or 3-dots sequence
(#188) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) Expected "if (...) {\n"; found "if(...) {\n"
(#210) Test method test_restore_course_without_requester_autoenrol() is missing any coverage information, own or at class level
(#210) Test method test_restore_course_without_requester_autoenrol() is missing a return type
(#210) Expected 1 space before opening brace; found 0
(#219) Inline comments must end in full-stops, exclamation marks, or question marks
(#226) Test method test_restore_course_withuserdatas() is missing any coverage information, own or at class level
(#226) Test method test_restore_course_withuserdatas() is missing a return type
(#226) Expected 1 space before opening brace; found 0
(#253) Line exceeds 132 characters; contains 134 characters
(#254) Short array syntax must be used to define arrays
(#259) Commas (,) must be followed by white space.
(#260) Commas (,) must be followed by white space.
(#279) Missing docblock for function set_comptencies in testcase
(#281) Expected "if (...) {\n"; found "if(...){\n"
(#287) Short array syntax must be used to define arrays
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) Commas (,) must be followed by white space.
(#294) Commas (,) must be followed by white space.
(#294) Line exceeds 132 characters; contains 134 characters
(#302) Missing docblock for function check_competencies in testcase
(#306) Commas (,) must be followed by white space.
(#306) Line exceeds 132 characters; contains 134 characters
(#314) There must not be a space before the colon in a return type declaration
(#322) Short array syntax must be used to define arrays
(#323) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#333) Short array syntax must be used to define arrays
(#343) Inline comments must end in full-stops, exclamation marks, or question marks
(#353) Short array syntax must be used to define arrays
(#356) Expected 1 space before "="; 0 found
(#356) Expected 1 space after "="; 0 found
(#361) Expected 1 space before "="; 0 found
(#361) Expected 1 space after "="; 0 found
(#363) Inline comments must end in full-stops, exclamation marks, or question marks
(#370) Short array syntax must be used to define arrays
(#380) Short array syntax must be used to define arrays
(#380) Commas (,) must be followed by white space.
(#381) Short array syntax must be used to define arrays
(#384) Inline comments must start with a capital letter, digit or 3-dots sequence
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#388) Inline comments must end in full-stops, exclamation marks, or question marks
(#394) Inline comments must end in full-stops, exclamation marks, or question marks
(#413) No one-line description found in phpdocs for docblock of function restore_course
(#413) Commas (,) must be followed by white space.
(#415) Inline comments must end in full-stops, exclamation marks, or question marks
(#428) Inline comments must start with a capital letter, digit or 3-dots sequence
(#428) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) Line exceeds 132 characters; contains 161 characters
(#446) Line exceeds 132 characters; contains 133 characters
(#447) Short array syntax must be used to define arrays
(#454) No one-line description found in phpdocs for docblock of function emulate_user_activites
(#455) Inline comments must end in full-stops, exclamation marks, or question marks
(#458) Short array syntax must be used to define arrays
(#462) There should be a comma after the last array item in a multi-line array.
(#475) Missing docblock for function enrolmode_withuserdatas_competencies_provider in testcase
(#475) Data provider method "enrolmode_withuserdatas_competencies_provider" will need to be converted to static in future.
(#486) Missing docblock for function enrolmode_withoutuserdatas_competencies_provider in testcase
(#486) Data provider method "enrolmode_withoutuserdatas_competencies_provider" will need to be converted to static in future.
(#496) Missing docblock for function username_provider in testcase
(#496) Data provider method "username_provider" will need to be converted to static in future.
(#496) Data provider method "username_provider" will need to be converted to static in future.
(#503) Missing docblock for function username_role_provider in testcase
(#503) Data provider method "username_role_provider" will need to be converted to static in future.
blocks/my_external_backup_restore_courses/tests/generator/lib.php
(#20) Incorrect @package tag for file lib.php. Expected block_my_external_backup_restore_courses, found block_user_session.
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for class block_my_external_backup_restore_courses_generator
(#32) Missing docblock for function create_backup_restore_entry
(#50) Missing docblock for function update_backup_restore_entry
blocks/my_external_backup_restore_courses/tests/privacy_provider_test.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#47) Unit test privacy_provider_test should be declared as final.
(#54) Test method test_user_contextlist() is missing any coverage information, own or at class level
(#54) Test method test_user_contextlist() is missing a return type
(#76) Test method test_export_context_data_for_user() is missing any coverage information, own or at class level
(#76) Test method test_export_context_data_for_user() is missing a return type
(#87) Line indented incorrectly; expected at least 8 spaces, found 0
(#100) Line indented incorrectly; expected at least 8 spaces, found 0
(#113) Test method test_export_all_data_for_user() is missing any coverage information, own or at class level
(#113) Test method test_export_all_data_for_user() is missing a return type
(#124) Line indented incorrectly; expected at least 8 spaces, found 0
(#138) Line indented incorrectly; expected at least 8 spaces, found 0
(#151) Test method test_delete_data_for_all_users_in_context() is missing any coverage information, own or at class level
(#151) Test method test_delete_data_for_all_users_in_context() is missing a return type
(#184) Test method test_delete_data_for_all_users() is missing any coverage information, own or at class level
(#184) Test method test_delete_data_for_all_users() is missing a return type
(#221) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#221) Test method test_delete_data_for_user() is missing a return type
(#257) Expected 0 spaces after "("; 1 found
(#277) Short array syntax must be used to define arrays
blocks/my_external_backup_restore_courses/tests/task_test.php
(#28) Unit test task_test should be declared as final.
(#28) Missing docblock for class task_test
(#30) There must not be a space before the colon in a return type declaration
(#40) Test method test_task_without_default_category() is missing any coverage information, own or at class level
(#40) No one-line description found in phpdocs for docblock of function test_task_without_default_category
(#40) Test method test_task_without_default_category() is missing a return type
(#40) Expected 1 space before opening brace; found 0
(#55) Missing docblock for function category_provider in testcase
(#55) Data provider method "category_provider" will need to be converted to static in future.
(#61) File must end with a newline character
blocks/my_external_backup_restore_courses/version.php
(#20) Incorrect @package tag for file version.php. Expected block_my_external_backup_restore_courses, found 2015 unistra {@link http://unistra.fr}.

Javascript coding style problems

(10 errors, 16 warnings)

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

blocks/my_external_backup_restore_courses/amd/src/changetaskfields.js
(#4) Comments should not begin with a lowercase character. (capitalized-comments)
(#9) Unexpected space before function parentheses. (space-before-function-paren)
(#10) Expected space or tab after '//' in comment. (spaced-comment)
(#11) Operator '+' must be spaced. (space-infix-ops)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#30) Expected space or tab after '//' in comment. (spaced-comment)
(#31) Operator '+' must be spaced. (space-infix-ops)
(#49) Unexpected space before function parentheses. (space-before-function-paren)
(#50) Expected space or tab after '//' in comment. (spaced-comment)
(#51) Operator '+' must be spaced. (space-infix-ops)
blocks/my_external_backup_restore_courses/module.js
(#2) A space is required after ','. (comma-spacing)
(#4) Missing space before opening brace. (space-before-blocks)
(#5) Operator '>' must be spaced. (space-infix-ops)
(#6) 'enrolmentModeList' is not defined. (no-undef)
(#6) Operator '+' must be spaced. (space-infix-ops)
(#7) 'withuserdatas' is not defined. (no-undef)
(#7) Operator '+' must be spaced. (space-infix-ops)
(#9) 'enrolmentModeList' is not defined. (no-undef)
(#10) 'withuserdatas' is not defined. (no-undef)
(#12) 'withuserdatas' is not defined. (no-undef)
(#13) 'enrolmentModeList' is not defined. (no-undef)
(#15) 'enrolmentModeList' is not defined. (no-undef)
(#20) 'checkboxs' is not defined. (no-undef)
(#21) 'checkboxs' is not defined. (no-undef)
(#22) Expected space(s) after "if". (keyword-spacing)
(#23) 'id' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(10 errors, 0 warnings)

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

blocks/my_external_backup_restore_courses/backup_external_courses_helper.class.php
(#84) Phpdocs for function backup_external_courses_helper::run_external_backup has incomplete parameters list
(#120) Phpdocs for function backup_external_courses_helper::launch_automated_backup_delete has incomplete parameters list
(#180) Inline phpdocs tag {@link self::BACKUP_STATUS_OK} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
blocks/my_external_backup_restore_courses/classes/privacy/provider.php
(#269) Phpdocs for function provider::validate_contextlist_contexts has incomplete parameters list
blocks/my_external_backup_restore_courses/tests/externallib_test.php
(#73) Phpdocs for function externallib_test::test_get_courses has incomplete parameters list
(#89) Phpdocs for function externallib_test::test_get_courses_zip has incomplete parameters list
(#157) Phpdocs for function externallib_test::test_restore_course_withoutuserdatas has incomplete parameters list
(#407) Phpdocs for function externallib_test::restore_course has incomplete parameters list
blocks/my_external_backup_restore_courses/tests/privacy_provider_test.php
(#18) Inline phpdocs tag {@link workshopform_accumulative_privacy_provider_testcase} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
blocks/my_external_backup_restore_courses/tests/task_test.php
(#37) Phpdocs for function task_test::test_task_without_default_category has incomplete parameters list

Update savepoints problems

(0 errors, 1 warnings)

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

blocks/my_external_backup_restore_courses/db/upgrade.php
Detected fewer 'if' blocks (1) than 'savepoint' calls (3). Repeated savepoints?

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

(1 errors, 1 warnings)

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

Problems running grunt
Task "gherkinlint" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(32 errors, 0 warnings)

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

blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature
(#3) Missing Feature name
(#40) Multiple empty lines are not allowed
blocks/my_external_backup_restore_courses/tests/behat/multipleinstances.feature
(#3) Feature name is already used in: blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature
(#3) Missing Feature name
(#43) Multiple empty lines are not allowed
(#84) Multiple empty lines are not allowed
(#85) Multiple empty lines are not allowed
(#86) Multiple empty lines are not allowed
(#87) Multiple empty lines are not allowed
(#88) Multiple empty lines are not allowed
(#89) Multiple empty lines are not allowed
blocks/my_external_backup_restore_courses/tests/behat/myexternalbackuprestorecoursesstep.feature
(#3) Feature name is already used in: blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature, blocks/my_external_backup_restore_courses/tests/behat/multipleinstances.feature
(#3) Missing Feature name
blocks/my_external_backup_restore_courses/tests/behat/restorecourseforuser.feature
(#3) Feature name is already used in: blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature, blocks/my_external_backup_restore_courses/tests/behat/multipleinstances.feature, blocks/my_external_backup_restore_courses/tests/behat/myexternalbackuprestorecoursesstep.feature
(#3) Missing Feature name
(#29) Multiple empty lines are not allowed
(#30) Multiple empty lines are not allowed
blocks/my_external_backup_restore_courses/tests/behat/onlyoneinstance.feature
(#3) Feature name is already used in: blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature, blocks/my_external_backup_restore_courses/tests/behat/multipleinstances.feature, blocks/my_external_backup_restore_courses/tests/behat/myexternalbackuprestorecoursesstep.feature, blocks/my_external_backup_restore_courses/tests/behat/restorecourseforuser.feature
(#3) Missing Feature name
(#43) Multiple empty lines are not allowed
(#84) Multiple empty lines are not allowed
(#85) Multiple empty lines are not allowed
(#86) Multiple empty lines are not allowed
(#87) Multiple empty lines are not allowed
(#88) Multiple empty lines are not allowed
(#89) Multiple empty lines are not allowed
blocks/my_external_backup_restore_courses/tests/behat/restorecourseforuser_enrolmentmode.feature
(#3) Feature name is already used in: blocks/my_external_backup_restore_courses/tests/behat/enrolmentmethod.feature, blocks/my_external_backup_restore_courses/tests/behat/multipleinstances.feature, blocks/my_external_backup_restore_courses/tests/behat/myexternalbackuprestorecoursesstep.feature, blocks/my_external_backup_restore_courses/tests/behat/restorecourseforuser.feature, blocks/my_external_backup_restore_courses/tests/behat/onlyoneinstance.feature
(#3) Missing Feature name
(#37) Multiple empty lines are not allowed
(#38) Multiple empty lines are not allowed
(#150) Multiple empty lines are not allowed
(#151) Multiple empty lines are not allowed