Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

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


PHP coding style problems

(65 errors, 30 warnings)

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

mod/assign/submission/edusharing/classes/event/assessable_uploaded.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Short array syntax must be used to define arrays
(#62) Line exceeds 132 characters; contains 133 characters
(#71) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
mod/assign/submission/edusharing/classes/event/submission_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#86) Short array syntax must be used to define arrays
mod/assign/submission/edusharing/classes/event/submission_updated.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#86) Short array syntax must be used to define arrays
mod/assign/submission/edusharing/classes/privacy/provider.php
(#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
(#34) Import statements must not begin with a leading backslash
(#114) There should be a comma after the last array item in a multi-line array.
(#152) Line exceeds 132 characters; contains 137 characters
mod/assign/submission/edusharing/db/access.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#25) Short array syntax must be used to define arrays
mod/assign/submission/edusharing/db/install.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Functions must not contain multiple empty lines in a row; found 2 empty lines
mod/assign/submission/edusharing/lib.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#54) Expected 1 space before "=>"; 0 found
(#54) Expected 1 space after "=>"; 0 found
mod/assign/submission/edusharing/locallib.php
(#45) Opening brace should be on the same line as the declaration for class assign_submission_edusharing
(#67) Variable "submissionId" must be all lower-case
(#69) Variable "submissionId" must be all lower-case
(#82) Variable "defaultMaxFileSubmissions" must be all lower-case
(#84) Variable "defaultMaxFileSubmissions" must be all lower-case
(#92) Line exceeds 132 characters; contains 133 characters
(#98) The use of function error_log() is forbidden; use debugging() instead
(#101) Variable "defaultMaxFileSubmissions" must be all lower-case
(#133) Line exceeds 132 characters; contains 158 characters
(#136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Line exceeds 132 characters; contains 173 characters
(#141) Variable "checkExtension" must be all lower-case
(#142) Variable "file_parts" must not contain underscores.
(#143) Variable "file_parts" must not contain underscores.
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) This comment is 80% valid code; is this commented out code?
(#144) No space found before comment text; expected "// error_log('no extension');" but found "//error_log('no extension');"
(#150) Line exceeds maximum limit of 180 characters; contains 183 characters
(#152) Variable "checkExtension" must be all lower-case
(#152) Line exceeds 132 characters; contains 158 characters
(#153) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#155) Variable "repoSearch" must be all lower-case
(#155) Line exceeds 132 characters; contains 167 characters
(#156) Line exceeds 132 characters; contains 178 characters
(#157) Variable "repoOnClick" must be all lower-case
(#163) Whitespace found at end of line within string
(#166) Whitespace found at end of line within string
(#169) Whitespace found at end of line within string
(#180) Whitespace found at end of line within string
(#187) Whitespace found at end of line within string
(#197) Whitespace found at end of line within string
(#213) Whitespace found at end of line within string
(#215) Whitespace found at end of line within string
(#230) Whitespace found at end of line within string
(#236) Whitespace found at end of line within string
(#240) Whitespace found at end of line within string
(#241) Whitespace found at end of line within string
(#244) Whitespace found at end of line within string
(#245) Whitespace found at end of line within string
(#247) Whitespace found at end of line within string
(#250) Whitespace found at end of line within string
(#252) Whitespace found at end of line within string
(#254) Variable "repoSearch" must be all lower-case
(#254) Line exceeds 132 characters; contains 138 characters
(#254) Whitespace found at end of line within string
(#258) Variable "repoOnClick" must be all lower-case
(#258) Line exceeds 132 characters; contains 172 characters
(#267) There should be a comma after the last array item in a multi-line array.
(#307) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#309) Variable "file_url" must not contain underscores.
(#310) Variable "file_url" must not contain underscores.
(#311) Variable "file_url" must not contain underscores.
(#313) Variable "file_url" must not contain underscores.
(#327) Variable "internalUrl" must be all lower-case
(#328) Variable "internalUrl" must be all lower-case
(#329) Variable "file_url" must not contain underscores.
(#329) Variable "internalUrl" must be all lower-case
(#329) Variable "file_url" must not contain underscores.
(#331) Variable "file_url" must not contain underscores.
(#349) There should be a comma after the last array item in a multi-line array.
(#350) There should be a comma after the last array item in a multi-line array.
(#381) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/edusharing/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#12) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) File must end with a newline character
mod/assign/submission/edusharing/version.php
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) No space found before comment text; expected "// YYYYMMDDXX" but found "//YYYYMMDDXX"
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) No space found before comment text; expected "// YYYYMMDDXX" but found "//YYYYMMDDXX"

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, 7 warnings)

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

mod/assign/submission/edusharing/classes/event/assessable_uploaded.php
(#94) Function assessable_uploaded::get_objectid_mapping is not documented
mod/assign/submission/edusharing/classes/event/submission_created.php
(#84) Function submission_created::get_objectid_mapping is not documented
(#38) Package assignsubmission_file is not valid
mod/assign/submission/edusharing/classes/event/submission_updated.php
(#84) Function submission_updated::get_objectid_mapping is not documented
(#20) Package assignsubmission_file is not valid
(#38) Package assignsubmission_file is not valid
mod/assign/submission/edusharing/classes/privacy/provider.php
(#39) Package assignsubmission_file is not valid
mod/assign/submission/edusharing/locallib.php
(#118) Function assign_submission_edusharing::get_form_elements is not documented
(#264) Function assign_submission_edusharing::get_file_options is not documented
(#291) Function assign_submission_edusharing::save is not documented
(#63) Phpdocs for function assign_submission_edusharing::get_file_submission has incomplete parameters list
mod/assign/submission/edusharing/settings.php
(#2) Empty line found after PHP open tag

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]