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

(97 errors, 1 warnings)

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

mod/customcert/classes/edit_form.php
(#90) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/element.php
(#314) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/element_helper.php
(#413) There should be a comma after the last array item in a multi-line array.
(#629) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/external.php
(#55) There should be a comma after the last array item in a multi-line array.
(#74) There should be a comma after the last array item in a multi-line array.
(#145) There should be a comma after the last array item in a multi-line array.
(#205) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/manage_templates_table.php
(#57) There should be a comma after the last array item in a multi-line array.
(#62) There should be a comma after the last array item in a multi-line array.
(#101) There should be a comma after the last array item in a multi-line array.
(#112) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/my_certificates_table.php
(#60) There should be a comma after the last array item in a multi-line array.
(#66) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/output/mobile.php
(#117) There should be a comma after the last array item in a multi-line array.
(#130) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/privacy/provider.php
(#164) There should be a comma after the last array item in a multi-line array.
mod/customcert/classes/report_table.php
(#164) There should be a comma after the last array item in a multi-line array.
(#185) There should be a comma after the last array item in a multi-line array.
mod/customcert/db/access.php
(#35) 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.
(#48) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
(#58) There should be a comma after the last array item in a multi-line array.
(#59) There should be a comma after the last array item in a multi-line array.
(#66) There should be a comma after the last array item in a multi-line array.
(#67) There should be a comma after the last array item in a multi-line array.
(#77) There should be a comma after the last array item in a multi-line array.
(#78) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
(#86) There should be a comma after the last array item in a multi-line array.
(#95) There should be a comma after the last array item in a multi-line array.
(#96) There should be a comma after the last array item in a multi-line array.
(#103) 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.
(#112) There should be a comma after the last array item in a multi-line array.
(#114) There should be a comma after the last array item in a multi-line array.
(#122) There should be a comma after the last array item in a multi-line array.
(#124) There should be a comma after the last array item in a multi-line array.
(#132) There should be a comma after the last array item in a multi-line array.
(#134) There should be a comma after the last array item in a multi-line array.
(#142) There should be a comma after the last array item in a multi-line array.
(#144) There should be a comma after the last array item in a multi-line array.
(#152) There should be a comma after the last array item in a multi-line array.
(#154) There should be a comma after the last array item in a multi-line array.
(#162) There should be a comma after the last array item in a multi-line array.
(#164) There should be a comma after the last array item in a multi-line array.
(#172) There should be a comma after the last array item in a multi-line array.
(#174) There should be a comma after the last array item in a multi-line array.
mod/customcert/db/mobile.php
(#39) There should be a comma after the last array item in a multi-line array.
(#40) There should be a comma after the last array item in a multi-line array.
(#41) There should be a comma after the last array item in a multi-line array.
(#52) There should be a comma after the last array item in a multi-line array.
(#53) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
mod/customcert/db/services.php
(#35) 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.
(#51) There should be a comma after the last array item in a multi-line array.
mod/customcert/db/tasks.php
(#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.
mod/customcert/edit.php
(#122) There should be a comma after the last array item in a multi-line array.
(#143) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/bgimage/db/upgrade.php
(#51) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/coursefield/classes/element.php
(#47) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/coursename/classes/element.php
(#137) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/date/classes/element.php
(#153) 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.
(#368) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/daterange/classes/element.php
(#27) Import statements must not begin with a leading backslash
mod/customcert/element/daterange/tests/element_test.php
(#65) There should be a comma after the last array item in a multi-line array.
(#125) Data provider method "get_test_get_daterange_string_for_recurring_ranges_data_provider" will need to be converted to static in future.
(#125) Data provider method "get_test_get_daterange_string_for_recurring_ranges_data_provider" must return an array, a Generator or an Iterable.
mod/customcert/element/digitalsignature/classes/element.php
(#52) There should be a comma after the last array item in a multi-line array.
(#148) There should be a comma after the last array item in a multi-line array.
(#173) There should be a comma after the last array item in a multi-line array.
(#225) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/grade/classes/element.php
(#78) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/gradeitemname/classes/element.php
(#141) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/image/classes/element.php
(#52) There should be a comma after the last array item in a multi-line array.
(#81) There should be a comma after the last array item in a multi-line array.
(#154) There should be a comma after the last array item in a multi-line array.
(#433) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/image/db/upgrade.php
(#51) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/qrcode/classes/element.php
(#94) There should be a comma after the last array item in a multi-line array.
(#162) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/userfield/classes/element.php
(#58) There should be a comma after the last array item in a multi-line array.
mod/customcert/element/userpicture/classes/element.php
(#87) There should be a comma after the last array item in a multi-line array.
mod/customcert/index.php
(#45) There should be a comma after the last array item in a multi-line array.
mod/customcert/lib.php
(#375) There should be a comma after the last array item in a multi-line array.
(#430) There should be a comma after the last array item in a multi-line array.
mod/customcert/manage_templates.php
(#71) There should be a comma after the last array item in a multi-line array.
mod/customcert/mod_form.php
(#64) There should be a comma after the last array item in a multi-line array.
(#217) There should be a comma after the last array item in a multi-line array.
mod/customcert/tests/element_helper_test.php
(#202) There should be a comma after the last array item in a multi-line array.
(#246) There should be a comma after the last array item in a multi-line array.
mod/customcert/tests/generator/lib.php
(#51) There should be a comma after the last array item in a multi-line array.
mod/customcert/tests/lib_test.php
(#103) There should be a comma after the last array item in a multi-line array.
mod/customcert/view.php
(#74) There should be a comma after the last array item in a multi-line array.

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

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

mod/customcert/templates/mobile_view_activity_page_ionic3.mustache
(#1) HTML Validation info, line 5: Attribute “[files]” is not serializable as XML 1.0. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “ion-button” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “block” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “core-course-download-module-main-file” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “moduleid” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “courseid” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “component” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation error, line 5: Attribute “[files]” not allowed on element “button” at this point. ( <button ion-button block core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation info, line 15: Attribute “(ionchange)” is not serializable as XML 1.0. ( <ion-select (ionChange)="updateContent({cmid: 25, courseid: 2, group: $event})" interface="popover"> )
(#1) HTML Validation info, line 25: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <br /> )
(#1) HTML Validation info, line 29: Attribute “[core-download-file]” is not serializable as XML 1.0. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “ion-button” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “icon-only” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “clear” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “[core-download-file]” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “moduleid” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “courseid” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation error, line 29: Attribute “component” not allowed on element “button” at this point. ( <button ion-button icon-only clear [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert"> )
(#1) HTML Validation info, line 36: Attribute “[params]” is not serializable as XML 1.0. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation info, line 36: Attribute “[presets]” is not serializable as XML 1.0. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “ion-button” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “icon-only” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “clear” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “core-site-plugins-call-ws” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “[params]” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “[presets]” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “confirmmessage” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
(#1) HTML Validation error, line 36: Attribute “refreshonsuccess” not allowed on element “button” at this point. ( <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true"> )
mod/customcert/templates/mobile_view_activity_page_latest.mustache
(#1) HTML Validation info, line 4: Attribute “[files]” is not serializable as XML 1.0. (list> <ion-button expand="block" class="ion-margin" core-course-download-module-main-file moduleId="25" courseId="2" component="mod_customcert" [files]="[{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}]"> )
(#1) HTML Validation info, line 15: Attribute “[(ngmodel)]” is not serializable as XML 1.0. ( <ion-select [(ngModel)]="CONTENT_OTHERDATA.group" name="group" (ionChange)="updateContent({cmid: 25, courseid: 2, group: CONTENT_OTHERDATA.group})" interface="popover"> )
(#1) HTML Validation info, line 15: Attribute “(ionchange)” is not serializable as XML 1.0. ( <ion-select [(ngModel)]="CONTENT_OTHERDATA.group" name="group" (ionChange)="updateContent({cmid: 25, courseid: 2, group: CONTENT_OTHERDATA.group})" interface="popover"> )
(#1) HTML Validation info, line 16: Attribute “[value]” is not serializable as XML 1.0. ( <ion-select-option [value]="2">Group )
(#1) HTML Validation info, line 22: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <br /> )
(#1) HTML Validation info, line 26: Attribute “[core-download-file]” is not serializable as XML 1.0. ( <ion-button fill="clear" [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert" [attr.aria-label]="'core.download' | translate"> )
(#1) HTML Validation info, line 26: Attribute “[attr.aria-label]” is not serializable as XML 1.0. ( <ion-button fill="clear" [core-download-file]="{fileurl: 'http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4', timemodified: '1528370177'}" moduleId="25" courseId="2" component="mod_customcert" [attr.aria-label]="'core.download' | translate"> )
(#1) HTML Validation info, line 33: Attribute “[params]” is not serializable as XML 1.0. ( <ion-button fill="clear" core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true" [attr.aria-label]="'core.delete' | translate"> )
(#1) HTML Validation info, line 33: Attribute “[presets]” is not serializable as XML 1.0. ( <ion-button fill="clear" core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true" [attr.aria-label]="'core.delete' | translate"> )
(#1) HTML Validation info, line 33: Attribute “[attr.aria-label]” is not serializable as XML 1.0. ( <ion-button fill="clear" core-site-plugins-call-ws name="mod_customcert_delete_issue" [params]="{certificateid: 1, issueid: 3}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" refreshOnSuccess="true" [attr.aria-label]="'core.delete' | translate"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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