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

(8 errors, 45 warnings)

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

local/sync_service/db/services.php
(#26) Short array syntax must be used to define arrays
(#27) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#61) 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
(#70) 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
(#79) There should be a comma after the last array item in a multi-line array.
(#80) There should be a comma after the last array item in a multi-line array.
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#98) There should be a comma after the last array item in a multi-line array.
(#104) There should be a comma after the last array item in a multi-line array.
(#105) There should be a comma after the last array item in a multi-line array.
local/sync_service/externallib.php
(#18) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#40) Short array syntax must be used to define arrays
(#53) Line exceeds 132 characters; contains 136 characters
(#61) 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
(#96) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#134) Declaring an optional parameter before a required parameter is deprecated since PHP 8.0. Parameter $time is optional, while parameter $visible is required. The $time parameter is implicitly treated as a required parameter.
(#134) Line exceeds 132 characters; contains 156 characters
(#141) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#175) Line exceeds 132 characters; contains 159 characters
(#198) Short array syntax must be used to define arrays
(#211) Short array syntax must be used to define arrays
(#235) Declaring an optional parameter before a required parameter is deprecated since PHP 8.0. Parameter $time is optional, while parameter $visible is required. The $time parameter is implicitly treated as a required parameter.
(#235) Line exceeds 132 characters; contains 168 characters
(#243) Short array syntax must be used to define arrays
(#265) Short array syntax must be used to define arrays
(#268) Line exceeds 132 characters; contains 159 characters
(#300) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
(#356) Short array syntax must be used to define arrays
(#372) Short array syntax must be used to define arrays
(#373) There should be a comma after the last array item in a multi-line array.
(#384) Short array syntax must be used to define arrays
(#408) Declaring an optional parameter before a required parameter is deprecated since PHP 8.0. Parameter $time is optional, while parameter $visible is required. The $time parameter is implicitly treated as a required parameter.
(#408) Line exceeds 132 characters; contains 169 characters
(#415) Short array syntax must be used to define arrays
(#437) Short array syntax must be used to define arrays
(#440) Line exceeds 132 characters; contains 159 characters
(#471) Short array syntax must be used to define arrays
(#484) Short array syntax must be used to define arrays
(#507) Short array syntax must be used to define arrays
(#535) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(6 errors, 0 warnings)

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

local/sync_service/externallib.php
(#51) Phpdocs for function local_sync_service_external::local_sync_service_add_new_section has incomplete parameters list
(#125) Phpdocs for function local_sync_service_external::local_sync_service_add_new_course_module_url has incomplete parameters list
(#226) Phpdocs for function local_sync_service_external::local_sync_service_add_new_course_module_resource has incomplete parameters list
(#324) Phpdocs for function local_sync_service_external::local_sync_service_move_module_to_specific_position has incomplete parameters list
(#399) Phpdocs for function local_sync_service_external::local_sync_service_add_new_course_module_directory has incomplete parameters list
(#495) Phpdocs for function local_sync_service_external::local_sync_service_add_files_to_directory 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, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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