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

(239 errors, 0 warnings)

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

public/mod/coursecertificate/backup/moodle2/backup_coursecertificate_activity_task.class.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#37) Opening brace must not be followed by a blank line
(#52) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#52) Closing parenthesis of a multi-line function call must be on a line by itself
(#53) Expected 0 spaces before closing parenthesis; newline found
(#68) Expected at least 1 space before "."; 0 found
(#68) Expected at least 1 space after "."; 0 found
(#68) Expected at least 1 space before "."; 0 found
(#68) Expected at least 1 space after "."; 0 found
(#72) Expected at least 1 space before "."; 0 found
(#72) Expected at least 1 space after "."; 0 found
(#72) Expected at least 1 space before "."; 0 found
(#72) Expected at least 1 space after "."; 0 found
public/mod/coursecertificate/backup/moodle2/backup_coursecertificate_stepslib.php
(#33) Opening brace must not be followed by a blank line
(#53) Opening parenthesis of a multi-line function call must be the last content on the line
(#53) Only one argument is allowed per line in a multi-line function call
(#54) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#54) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/backup/moodle2/restore_coursecertificate_activity_task.class.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#36) Opening brace must not be followed by a blank line
(#53) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#53) Closing parenthesis of a multi-line function call must be on a line by itself
(#54) Expected 0 spaces before closing parenthesis; newline found
public/mod/coursecertificate/backup/moodle2/restore_coursecertificate_stepslib.php
(#32) Opening brace must not be followed by a blank line
public/mod/coursecertificate/classes/event/course_module_viewed.php
(#34) Opening brace must not be followed by a blank line
(#57) The closing brace for the class must go on the next line after the body
public/mod/coursecertificate/classes/external.php
(#61) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#62) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/classes/helper.php
(#56) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#57) Closing parenthesis of a multi-line function call must be on a line by itself
(#119) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#119) Multi-line function declarations must define one parameter per line
(#120) Multi-line function declaration not indented correctly; expected 8 spaces but found 45
(#120) Multi-line function declarations must define one parameter per line
(#120) The closing parenthesis of a multi-line function declaration must be on a new line
(#171) Opening parenthesis of a multi-line function call must be the last content on the line
(#171) Only one argument is allowed per line in a multi-line function call
(#172) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#172) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/classes/local/hooks/output/before_http_headers.php
(#26) Opening brace must not be followed by a blank line
(#41) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#43) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#57) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#57) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/classes/local/tool_brickfield/areas/intro.php
(#28) Opening brace must not be followed by a blank line
public/mod/coursecertificate/classes/local/tool_brickfield/areas/name.php
(#28) Opening brace must not be followed by a blank line
public/mod/coursecertificate/classes/output/issue.php
(#32) Opening brace must not be followed by a blank line
public/mod/coursecertificate/classes/output/mobile.php
(#33) Opening brace must not be followed by a blank line
(#51) Space found before comma in argument list
(#51) Expected no space between "courseid" and the comma. Found: 1 space
(#51) Space found before comma in argument list
(#51) Expected no space between "false" and the comma. Found: 1 space
(#58) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Only one argument is allowed per line in a multi-line function call
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
(#71) Opening parenthesis of a multi-line function call must be the last content on the line
(#71) Only one argument is allowed per line in a multi-line function call
(#72) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/classes/output/view_page.php
(#45) The interface names in a "class implements" statement should be ordered alphabetically. Expected: templatable, renderable; Found: renderable, templatable
(#45) Opening brace must not be followed by a blank line
public/mod/coursecertificate/classes/permission.php
(#112) Opening parenthesis of a multi-line function call must be the last content on the line
(#112) Only one argument is allowed per line in a multi-line function call
(#113) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#113) Only one argument is allowed per line in a multi-line function call
(#113) Only one argument is allowed per line in a multi-line function call
(#113) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/classes/task/issue_certificates_task.php
(#55) Blank line found at start of control structure
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#67) Only one argument is allowed per line in a multi-line function call
(#68) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/db/upgrade.php
(#35) Blank line found at start of control structure
(#50) Blank line found at start of control structure
public/mod/coursecertificate/index.php
(#25) Expected at least 1 space before "."; 0 found
(#25) Expected at least 1 space after "."; 0 found
(#26) Expected at least 1 space before "."; 0 found
(#26) Expected at least 1 space after "."; 0 found
(#79) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/lib.php
(#42) Expected 1 space after SWITCH keyword; 0 found
(#161) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Only one argument is allowed per line in a multi-line function call
(#162) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#162) Only one argument is allowed per line in a multi-line function call
(#162) Only one argument is allowed per line in a multi-line function call
(#162) Closing parenthesis of a multi-line function call must be on a line by itself
(#163) Opening parenthesis of a multi-line function call must be the last content on the line
(#163) Only one argument is allowed per line in a multi-line function call
(#163) Only one argument is allowed per line in a multi-line function call
(#164) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#164) Only one argument is allowed per line in a multi-line function call
(#164) Closing parenthesis of a multi-line function call must be on a line by itself
(#165) Opening parenthesis of a multi-line function call must be the last content on the line
(#165) Only one argument is allowed per line in a multi-line function call
(#165) Only one argument is allowed per line in a multi-line function call
(#166) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#166) Only one argument is allowed per line in a multi-line function call
(#166) Closing parenthesis of a multi-line function call must be on a line by itself
(#167) Opening parenthesis of a multi-line function call must be the last content on the line
(#167) Only one argument is allowed per line in a multi-line function call
(#169) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#169) Only one argument is allowed per line in a multi-line function call
(#169) Closing parenthesis of a multi-line function call must be on a line by itself
(#215) Opening parenthesis of a multi-line function call must be the last content on the line
(#217) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#217) Closing parenthesis of a multi-line function call must be on a line by itself
(#225) Blank line found at end of control structure
(#265) Opening parenthesis of a multi-line function call must be the last content on the line
(#266) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#266) Closing parenthesis of a multi-line function call must be on a line by itself
(#281) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#283) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#297) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#297) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/mod_form.php
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#38) Opening brace must not be followed by a blank line
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Only one argument is allowed per line in a multi-line function call
(#80) Only one argument is allowed per line in a multi-line function call
(#81) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#81) Closing parenthesis of a multi-line function call must be on a line by itself
(#83) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#84) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#84) Only one argument is allowed per line in a multi-line function call
(#84) Closing parenthesis of a multi-line function call must be on a line by itself
(#220) Opening parenthesis of a multi-line function call must be the last content on the line
(#220) Only one argument is allowed per line in a multi-line function call
(#221) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#221) Only one argument is allowed per line in a multi-line function call
(#221) Only one argument is allowed per line in a multi-line function call
(#221) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/behat/behat_mod_coursecertificate.php
(#31) Opening brace must not be followed by a blank line
(#58) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#59) Multi-line function declaration not indented correctly; expected 8 spaces but found 106
(#59) The closing parenthesis of a multi-line function declaration must be on a new line
(#61) Expected 1 space after comma in argument list; 2 found
(#61) Expected 1 space between the comma and "$selector". Found: 2 spaces
public/mod/coursecertificate/tests/behat/behat_mod_coursecertificate_deprecated.php
(#28) Opening brace must not be followed by a blank line
public/mod/coursecertificate/tests/external_test.php
(#74) Opening parenthesis of a multi-line function call must be the last content on the line
(#75) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#75) Closing parenthesis of a multi-line function call must be on a line by itself
(#126) Opening parenthesis of a multi-line function call must be the last content on the line
(#127) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#127) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/generator/lib.php
(#25) Opening brace must not be followed by a blank line
(#92) The closing brace for the class must go on the next line after the body
public/mod/coursecertificate/tests/generator_test.php
(#30) Opening brace must not be followed by a blank line
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#53) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#53) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/issue_certificates_task_test.php
(#116) Opening parenthesis of a multi-line function call must be the last content on the line
(#117) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#117) Closing parenthesis of a multi-line function call must be on a line by itself
(#171) Opening parenthesis of a multi-line function call must be the last content on the line
(#173) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#173) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/lib_test.php
(#29) Opening brace must not be followed by a blank line
(#73) Opening parenthesis of a multi-line function call must be the last content on the line
(#74) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#74) Closing parenthesis of a multi-line function call must be on a line by itself
(#82) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#83) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/observer_test.php
(#58) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/permission_test.php
(#160) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#161) Closing parenthesis of a multi-line function call must be on a line by itself
(#163) Opening parenthesis of a multi-line function call must be the last content on the line
(#164) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#164) Closing parenthesis of a multi-line function call must be on a line by itself
(#166) Opening parenthesis of a multi-line function call must be the last content on the line
(#167) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#167) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/privacy_provider_test.php
(#40) Opening brace must not be followed by a blank line
public/mod/coursecertificate/tests/restore_test.php
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Only one argument is allowed per line in a multi-line function call
(#87) Only one argument is allowed per line in a multi-line function call
(#87) Only one argument is allowed per line in a multi-line function call
(#88) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#88) Closing parenthesis of a multi-line function call must be on a line by itself
(#108) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#108) Only one argument is allowed per line in a multi-line function call
(#108) Only one argument is allowed per line in a multi-line function call
(#108) Closing parenthesis of a multi-line function call must be on a line by itself
(#109) Opening parenthesis of a multi-line function call must be the last content on the line
(#109) Only one argument is allowed per line in a multi-line function call
(#110) Only one argument is allowed per line in a multi-line function call
(#110) Only one argument is allowed per line in a multi-line function call
(#111) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#111) Closing parenthesis of a multi-line function call must be on a line by itself
(#131) Opening parenthesis of a multi-line function call must be the last content on the line
(#132) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#132) 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
(#163) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
(#171) Opening parenthesis of a multi-line function call must be the last content on the line
(#171) Only one argument is allowed per line in a multi-line function call
(#171) Only one argument is allowed per line in a multi-line function call
(#172) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#172) Only one argument is allowed per line in a multi-line function call
(#172) Only one argument is allowed per line in a multi-line function call
(#172) Closing parenthesis of a multi-line function call must be on a line by itself
(#195) Opening parenthesis of a multi-line function call must be the last content on the line
(#195) Only one argument is allowed per line in a multi-line function call
(#195) Only one argument is allowed per line in a multi-line function call
(#196) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#196) Only one argument is allowed per line in a multi-line function call
(#196) Only one argument is allowed per line in a multi-line function call
(#196) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/coursecertificate/tests/tool_brickfield_area_test.php
(#32) Opening brace must not be followed by a blank line
(#82) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#83) Closing parenthesis of a multi-line function call must be on a line by itself
(#85) Long list syntax is not allowed
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#87) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#87) Closing parenthesis of a multi-line function call must be on a line by itself
(#88) Long list syntax is not allowed
(#125) Function closing brace must go on the next line following the body; found 1 blank lines before brace
public/mod/coursecertificate/view.php
(#25) Expected at least 1 space before "."; 0 found
(#25) Expected at least 1 space after "."; 0 found

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

(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

(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]

public/mod/coursecertificate/templates/mobile_view_page.mustache
(#1) HTML Validation info, line 17: Attribute “[args]” is not serializable as XML 1.0. ( <ion-item button title="" class="ion-text-wrap" core-site-plugins-new-content component="mod_coursecertificate" method="mobile_issue_details" [args]="{ fullname: 'Test User', email: 'user@test.com', statusstring: 'Valid', timecreated: '3 December 2021, 2:16 PM', expires: 'Never', code: '9448292828AU', previewurl: 'http://test.com/admin/tool/certificate/view.php?code=9448292828AU', verifyurl: 'http://test.com/admin/tool/certificate/index.php?code=9448292828AU' }"> )
(#1) HTML Validation info, line 31: Attribute “[componentid]” is not serializable as XML 1.0. (on-list><ion-button class="ion-margin" expand="block" component="mod_coursecertificate" [componentId]="1" [core-download-file]="{fileurl: '', timemodified: ''}"> <)
(#1) HTML Validation info, line 31: Attribute “[core-download-file]” is not serializable as XML 1.0. (on-list><ion-button class="ion-margin" expand="block" component="mod_coursecertificate" [componentId]="1" [core-download-file]="{fileurl: '', timemodified: ''}"> <)
public/mod/coursecertificate/templates/view_page.mustache
(#1) ESLint did not run

Gherkin .feature problems

(0 errors, 0 warnings)

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