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

(258 errors, 63 warnings)

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

blocks/download_certificates/block_download_certificates.php
(#42) Opening brace must not be followed by a blank line
(#119) Blank line found at end of control structure
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#149) Only one argument is allowed per line in a multi-line function call
(#150) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
(#156) Opening parenthesis of a multi-line function call must be the last content on the line
(#156) Only one argument is allowed per line in a multi-line function call
(#157) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#157) Closing parenthesis of a multi-line function call must be on a line by itself
(#162) Opening parenthesis of a multi-line function call must be the last content on the line
(#162) Only one argument is allowed per line in a multi-line function call
(#163) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
(#168) Opening parenthesis of a multi-line function call must be the last content on the line
(#168) Only one argument is allowed per line in a multi-line function call
(#169) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#169) Closing parenthesis of a multi-line function call must be on a line by itself
(#188) Opening parenthesis of a multi-line function call must be the last content on the line
(#189) Multi-line function call not indented correctly; expected 16 spaces but found 44
(#189) Closing parenthesis of a multi-line function call must be on a line by itself
(#206) Blank line found at end of control structure
(#237) Opening parenthesis of a multi-line function call must be the last content on the line
(#237) Only one argument is allowed per line in a multi-line function call
(#238) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#238) Closing parenthesis of a multi-line function call must be on a line by itself
(#243) Opening parenthesis of a multi-line function call must be the last content on the line
(#244) Multi-line function call not indented correctly; expected 16 spaces but found 44
(#244) Closing parenthesis of a multi-line function call must be on a line by itself
(#258) Blank line found at end of control structure
(#300) Opening parenthesis of a multi-line function call must be the last content on the line
(#301) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#301) Only one argument is allowed per line in a multi-line function call
(#301) Closing parenthesis of a multi-line function call must be on a line by itself
(#355) Opening parenthesis of a multi-line function call must be the last content on the line
(#356) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#356) Closing parenthesis of a multi-line function call must be on a line by itself
(#430) Opening parenthesis of a multi-line function call must be the last content on the line
(#431) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#431) Only one argument is allowed per line in a multi-line function call
(#431) Closing parenthesis of a multi-line function call must be on a line by itself
(#435) Opening parenthesis of a multi-line function call must be the last content on the line
(#436) Multi-line function call not indented correctly; expected 16 spaces but found 72
(#436) Only one argument is allowed per line in a multi-line function call
(#436) Closing parenthesis of a multi-line function call must be on a line by itself
(#440) Blank line found at end of control structure
(#469) Opening parenthesis of a multi-line function call must be the last content on the line
(#469) Only one argument is allowed per line in a multi-line function call
(#470) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#470) Closing parenthesis of a multi-line function call must be on a line by itself
(#475) Opening parenthesis of a multi-line function call must be the last content on the line
(#475) Only one argument is allowed per line in a multi-line function call
(#476) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#476) Closing parenthesis of a multi-line function call must be on a line by itself
(#481) Opening parenthesis of a multi-line function call must be the last content on the line
(#482) Multi-line function call not indented correctly; expected 16 spaces but found 44
(#482) Closing parenthesis of a multi-line function call must be on a line by itself
(#498) Blank line found at end of control structure
blocks/download_certificates/classes/controller.php
(#36) Opening brace must not be followed by a blank line
(#114) Opening parenthesis of a multi-line function call must be the last content on the line
(#115) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#116) Multi-line function call not indented correctly; expected 16 spaces but found 76
(#116) Closing parenthesis of a multi-line function call must be on a line by itself
(#172) Expected 1 space after FUNCTION keyword; 0 found
(#272) Opening parenthesis of a multi-line function call must be the last content on the line
(#327) Opening parenthesis of a multi-line function call must be the last content on the line
(#378) Opening parenthesis of a multi-line function call must be the last content on the line
(#378) Only one argument is allowed per line in a multi-line function call
(#379) Multi-line function call not indented correctly; expected 20 spaces but found 44
(#379) Only one argument is allowed per line in a multi-line function call
(#380) Multi-line function call not indented correctly; expected 16 spaces but found 44
(#380) Only one argument is allowed per line in a multi-line function call
(#380) Closing parenthesis of a multi-line function call must be on a line by itself
(#390) Blank line found at end of control structure
(#427) Blank line found at end of control structure
(#461) Blank line found at end of control structure
(#495) Blank line found at end of control structure
(#558) Opening parenthesis of a multi-line function call must be the last content on the line
(#559) Multi-line function call not indented correctly; expected 32 spaces but found 48
(#560) Multi-line function call not indented correctly; expected 32 spaces but found 48
(#561) Multi-line function call not indented correctly; expected 32 spaces but found 48
(#562) Multi-line function call not indented correctly; expected 32 spaces but found 48
(#563) Multi-line function call not indented correctly; expected 28 spaces but found 48
(#563) Closing parenthesis of a multi-line function call must be on a line by itself
(#578) Opening parenthesis of a multi-line function call must be the last content on the line
(#579) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#580) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#581) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#582) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#583) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#584) Multi-line function call not indented correctly; expected 20 spaces but found 40
(#584) Closing parenthesis of a multi-line function call must be on a line by itself
(#593) Only one argument is allowed per line in a multi-line function call
(#593) Only one argument is allowed per line in a multi-line function call
(#593) Only one argument is allowed per line in a multi-line function call
(#593) Only one argument is allowed per line in a multi-line function call
(#605) Blank line found at end of control structure
(#636) Blank line found at end of control structure
(#657) Opening parenthesis of a multi-line function call must be the last content on the line
(#659) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#659) Only one argument is allowed per line in a multi-line function call
(#659) Closing parenthesis of a multi-line function call must be on a line by itself
(#681) Opening parenthesis of a multi-line function call must be the last content on the line
(#682) Multi-line function call not indented correctly; expected 16 spaces but found 60
(#683) Multi-line function call not indented correctly; expected 16 spaces but found 60
(#684) Multi-line function call not indented correctly; expected 12 spaces but found 60
(#684) Closing parenthesis of a multi-line function call must be on a line by itself
(#687) Opening parenthesis of a multi-line function call must be the last content on the line
(#687) Only one argument is allowed per line in a multi-line function call
(#687) Only one argument is allowed per line in a multi-line function call
(#688) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#688) Closing parenthesis of a multi-line function call must be on a line by itself
(#694) Blank line found at end of control structure
(#716) Opening parenthesis of a multi-line function call must be the last content on the line
(#718) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#718) Only one argument is allowed per line in a multi-line function call
(#718) Closing parenthesis of a multi-line function call must be on a line by itself
(#734) Opening parenthesis of a multi-line function call must be the last content on the line
(#734) Only one argument is allowed per line in a multi-line function call
(#734) Only one argument is allowed per line in a multi-line function call
(#735) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#735) Closing parenthesis of a multi-line function call must be on a line by itself
(#741) Blank line found at end of control structure
(#763) Opening parenthesis of a multi-line function call must be the last content on the line
(#765) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#765) Only one argument is allowed per line in a multi-line function call
(#765) Closing parenthesis of a multi-line function call must be on a line by itself
(#776) Opening parenthesis of a multi-line function call must be the last content on the line
(#776) Only one argument is allowed per line in a multi-line function call
(#776) Only one argument is allowed per line in a multi-line function call
(#777) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#777) Closing parenthesis of a multi-line function call must be on a line by itself
(#783) Blank line found at end of control structure
(#879) Opening parenthesis of a multi-line function call must be the last content on the line
(#879) Only one argument is allowed per line in a multi-line function call
(#879) Only one argument is allowed per line in a multi-line function call
(#879) Only one argument is allowed per line in a multi-line function call
(#880) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#880) Only one argument is allowed per line in a multi-line function call
(#880) Closing parenthesis of a multi-line function call must be on a line by itself
(#883) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#884) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#893) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#894) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#914) Blank line found at end of control structure
(#1003) Blank line found at end of control structure
(#1147) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1151) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#1231) Opening parenthesis of a multi-line function call must be the last content on the line
(#1232) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#1232) Only one argument is allowed per line in a multi-line function call
(#1232) Only one argument is allowed per line in a multi-line function call
(#1232) Closing parenthesis of a multi-line function call must be on a line by itself
(#1407) Each PHP statement must be on a line by itself
(#1450) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1451) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#1533) Opening parenthesis of a multi-line function call must be the last content on the line
(#1534) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#1534) Only one argument is allowed per line in a multi-line function call
(#1534) Only one argument is allowed per line in a multi-line function call
(#1534) Closing parenthesis of a multi-line function call must be on a line by itself
(#1779) Expected 1 space after FUNCTION keyword; 0 found
(#1894) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1895) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#1920) Blank line found at start of control structure
(#2001) Opening parenthesis of a multi-line function call must be the last content on the line
(#2002) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#2002) Only one argument is allowed per line in a multi-line function call
(#2002) Only one argument is allowed per line in a multi-line function call
(#2002) Closing parenthesis of a multi-line function call must be on a line by itself
(#2174) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#2178) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#2184) Opening parenthesis of a multi-line function call must be the last content on the line
(#2184) Only one argument is allowed per line in a multi-line function call
(#2185) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#2185) Closing parenthesis of a multi-line function call must be on a line by itself
(#2207) Opening parenthesis of a multi-line function call must be the last content on the line
(#2208) Multi-line function call not indented correctly; expected 20 spaces but found 38
(#2208) Only one argument is allowed per line in a multi-line function call
(#2208) Closing parenthesis of a multi-line function call must be on a line by itself
(#2211) Opening parenthesis of a multi-line function call must be the last content on the line
(#2212) Multi-line function call not indented correctly; expected 16 spaces but found 34
(#2212) Only one argument is allowed per line in a multi-line function call
(#2212) Closing parenthesis of a multi-line function call must be on a line by itself
(#2251) Opening parenthesis of a multi-line function call must be the last content on the line
(#2252) Multi-line function call not indented correctly; expected 16 spaces but found 34
(#2252) Only one argument is allowed per line in a multi-line function call
(#2252) Closing parenthesis of a multi-line function call must be on a line by itself
(#2260) Opening parenthesis of a multi-line function call must be the last content on the line
(#2261) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#2262) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#2263) Multi-line function call not indented correctly; expected 16 spaces but found 76
(#2263) Closing parenthesis of a multi-line function call must be on a line by itself
(#2273) Opening parenthesis of a multi-line function call must be the last content on the line
(#2274) Multi-line function call not indented correctly; expected 16 spaces but found 34
(#2274) Only one argument is allowed per line in a multi-line function call
(#2274) Closing parenthesis of a multi-line function call must be on a line by itself
(#2293) Opening parenthesis of a multi-line function call must be the last content on the line
(#2294) Multi-line function call not indented correctly; expected 16 spaces but found 34
(#2294) Only one argument is allowed per line in a multi-line function call
(#2294) Closing parenthesis of a multi-line function call must be on a line by itself
(#2313) Opening parenthesis of a multi-line function call must be the last content on the line
(#2314) Multi-line function call not indented correctly; expected 16 spaces but found 34
(#2314) Only one argument is allowed per line in a multi-line function call
(#2314) Closing parenthesis of a multi-line function call must be on a line by itself
(#2366) Long list syntax is not allowed
(#2456) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#2460) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#2550) Opening parenthesis of a multi-line function call must be the last content on the line
(#2551) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#2552) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#2553) Multi-line function call not indented correctly; expected 16 spaces but found 76
(#2553) Closing parenthesis of a multi-line function call must be on a line by itself
(#2878) Opening parenthesis of a multi-line function call must be the last content on the line
(#2880) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#2880) Only one argument is allowed per line in a multi-line function call
(#2880) Closing parenthesis of a multi-line function call must be on a line by itself
(#2924) Blank line found at end of control structure
(#3276) Expected 1 space after FUNCTION keyword; 0 found
(#3283) The closing brace for the class must go on the next line after the body
blocks/download_certificates/classes/observer.php
(#30) Opening brace must not be followed by a blank line
(#50) Function closing brace must go on the next line following the body; found 1 blank lines before brace
blocks/download_certificates/classes/privacy/provider.php
(#35) Opening brace must not be followed by a blank line
(#46) Expected 1 newline at end of file; 0 found
blocks/download_certificates/download_cohort.php
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#50) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#51) Multi-line function call not indented correctly; expected 4 spaces but found 13
(#51) Closing parenthesis of a multi-line function call must be on a line by itself
(#60) Blank line found at end of control structure
blocks/download_certificates/download_course.php
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#50) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#51) Multi-line function call not indented correctly; expected 4 spaces but found 13
(#51) Closing parenthesis of a multi-line function call must be on a line by itself
(#60) Opening parenthesis of a multi-line function call must be the last content on the line
(#61) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#62) Multi-line function call not indented correctly; expected 8 spaces but found 13
(#63) Multi-line function call not indented correctly; expected 4 spaces but found 13
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
blocks/download_certificates/download_precise.php
(#55) Blank line found at end of control structure
(#62) Blank line found at end of control structure
(#70) Blank line found at end of control structure
(#78) Blank line found at end of control structure
(#86) Blank line found at end of control structure
(#92) Opening parenthesis of a multi-line function call must be the last content on the line
(#92) Only one argument is allowed per line in a multi-line function call
(#92) Only one argument is allowed per line in a multi-line function call
(#93) Multi-line function call not indented correctly; expected 4 spaces but found 36
(#93) Closing parenthesis of a multi-line function call must be on a line by itself
blocks/download_certificates/download_range.php
(#66) Blank line found at end of control structure
(#67) Blank line found at start of control structure
blocks/download_certificates/download_user.php
(#62) Blank line found at end of control structure
(#63) Blank line found at start of control structure
blocks/download_certificates/lang/en/block_download_certificates.php
(#30) The string key "download_certificates:view" is not in the correct order, it should be before "pluginname"
(#31) The string key "download_certificates:manage" is not in the correct order, it should be before "download_certificates:view"
(#32) The string key "download_certificates:addinstance" is not in the correct order, it should be before "download_certificates:manage"
(#36) Unexpected comment found. Auto-fixing will not work after this comment
(#37) The string key "certificate_summary" is not in the correct order, it should be before "downloadcertificate"
(#39) The string key "courses" is not in the correct order, it should be before "total"
(#41) The string key "manage_certificates" is not in the correct order, it should be before "recent_7days"
(#42) The string key "download_all_quick" is not in the correct order, it should be before "manage_certificates"
(#45) Unexpected comment found. Auto-fixing will not work after this comment
(#46) The string key "certificate_management" is not in the correct order, it should be before "error_loading_block"
(#48) The string key "confirm_download_all" is not in the correct order, it should be before "download_all_certificates"
(#50) The string key "template" is not in the correct order, it should be before "total_certificates"
(#51) The string key "code" is not in the correct order, it should be before "template"
(#55) The string key "no_certificates_description" is not in the correct order, it should be before "no_certificates_found"
(#58) Unexpected comment found. Auto-fixing will not work after this comment
(#59) The string key "nocertificates" is not in the correct order, it should be before "unknown"
(#60) The string key "cannotcreatezipfile" is not in the correct order, it should be before "nocertificates"
(#62) The string key "filenotfound" is not in the correct order, it should be before "novalidcertificates"
(#63) The string key "certificatenotfound" is not in the correct order, it should be before "filenotfound"
(#65) Unexpected comment found. Auto-fixing will not work after this comment
(#68) The string key "download_my_certificates" is not in the correct order, it should be before "my_certificates_count"
(#73) Unexpected comment found. Auto-fixing will not work after this comment
(#74) The string key "enable" is not in the correct order, it should be before "novalidcertificatesuser"
(#80) The string key "default_template" is not in the correct order, it should be before "template_desc"
(#93) Unexpected comment found. Auto-fixing will not work after this comment
(#94) The string key "certificate" is not in the correct order, it should be before "managecertificates"
(#96) The string key "certificategenerated" is not in the correct order, it should be before "nocertificate"
(#97) The string key "certificateerror" is not in the correct order, it should be before "certificategenerated"
(#99) Unexpected comment found. Auto-fixing will not work after this comment
(#102) Unexpected comment found. Auto-fixing will not work after this comment
(#103) The string key "download_by_date_range" is not in the correct order, it should be before "privacy:metadata"
(#104) The string key "date_range_help" is not in the correct order, it should be before "download_by_date_range"
(#106) The string key "end_date" is not in the correct order, it should be before "start_date"
(#107) The string key "download_range" is not in the correct order, it should be before "end_date"
(#110) Unexpected comment found. Auto-fixing will not work after this comment
(#111) The string key "download_by_course" is not in the correct order, it should be before "novalidcertificatesinrange"
(#112) The string key "course_download_help" is not in the correct order, it should be before "download_by_course"
(#114) The string key "choose_course" is not in the correct order, it should be before "select_course"
(#117) The string key "certificates" is not in the correct order, it should be before "no_courses_with_certificates"
(#121) The string key "coursenotselected" is not in the correct order, it should be before "novalidcertificatesforcourse"
(#123) Unexpected comment found. Auto-fixing will not work after this comment
(#126) The string key "select_user" is not in the correct order, it should be before "user_download_help"
(#127) The string key "choose_user" is not in the correct order, it should be before "select_user"
(#130) The string key "cannotdownloadusercertificates" is not in the correct order, it should be before "no_users_with_certificates"
(#134) Unexpected comment found. Auto-fixing will not work after this comment
(#135) The string key "download_precise" is not in the correct order, it should be before "novalidcertificatesuser"
(#138) The string key "download_selected" is not in the correct order, it should be before "select_certificates"
(#142) Unexpected comment found. Auto-fixing will not work after this comment
(#143) The string key "invalidaterange" is not in the correct order, it should be before "novalidcertificatesselected"
(#144) The string key "downloadinprogress" is not in the correct order, it should be before "invalidaterange"
(#146) Unexpected comment found. Auto-fixing will not work after this comment
(#147) The string key "download_by_cohort" is not in the correct order, it should be before "downloadinprogress"
(#148) The string key "cohort_download_help" is not in the correct order, it should be before "download_by_cohort"
(#150) The string key "choose_cohort" is not in the correct order, it should be before "select_cohort"
(#152) The string key "download_cohort_certificates" is not in the correct order, it should be before "members"
(#154) The string key "cohortnotselected" is not in the correct order, it should be before "no_cohorts_with_certificates"
(#156) The string key "nocertificatescohort" is not in the correct order, it should be before "nocohortmembers"
(#159) Unexpected comment found. Auto-fixing will not work after this comment
(#160) The string key "customcert_certificate" is not in the correct order, it should be before "novalidcertificatescohort"
(#163) Unexpected comment found. Auto-fixing will not work after this comment
(#164) The string key "cannotdownloadcertificate" is not in the correct order, it should be before "customcert_not_available"
(#166) Unexpected comment found. Auto-fixing will not work after this comment
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/download_certificates/lib.php
(#94) Opening parenthesis of a multi-line function call must be the last content on the line
(#94) Only one argument is allowed per line in a multi-line function call
(#95) Multi-line function call not indented correctly; expected 4 spaces but found 27
(#95) Closing parenthesis of a multi-line function call must be on a line by itself

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

(6 errors, 0 warnings)

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

blocks/download_certificates/styles.css
(#2) Expected single space before "!" (declaration-bang-space-before)
(#2) Unexpected whitespace before ":" (declaration-colon-space-before)
(#2) Unexpected !important (declaration-no-important)
(#7) Expected single space after "," in a single-line function (function-comma-space-after)
(#7) Expected single space after "," in a single-line function (function-comma-space-after)
(#7) Expected single space after "," in a single-line function (function-comma-space-after)

PHPDocs style problems

(0 errors, 0 warnings)

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


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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" 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

(0 errors, 0 warnings)

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