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

(35 errors, 216 warnings)

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

mod/percipio/backup/moodle2/backup_percipio_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
mod/percipio/backup/moodle2/restore_percipio_activity_task.class.php
(#55) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
mod/percipio/backup/moodle2/restore_percipio_stepslib.php
(#38) Short array syntax must be used to define arrays
mod/percipio/classes/output/mobile.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#62) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
(#96) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#106) There should be a comma after the last array item in a multi-line array.
(#119) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#140) There should be a comma after the last array item in a multi-line array.
(#143) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#159) There should be a comma after the last array item in a multi-line array.
mod/percipio/classes/privacy/provider.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#59) There must not be a space before the colon in a return type declaration
(#76) There should be a comma after the last array item in a multi-line array.
(#88) There must not be a space before the colon in a return type declaration
mod/percipio/classes/report_filter_form.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#54) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
mod/percipio/db/access.php
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#46) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#55) There should be a comma after the last array item in a multi-line array.
(#59) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#63) There should be a comma after the last array item in a multi-line array.
(#68) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#75) There should be a comma after the last array item in a multi-line array.
(#80) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#87) There should be a comma after the last array item in a multi-line array.
(#88) There should be a comma after the last array item in a multi-line array.
mod/percipio/db/mobile.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#54) There should be a comma after the last array item in a multi-line array.
(#56) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#65) 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.
mod/percipio/db/services.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#38) Short array syntax must be used to define arrays
(#44) There should be a comma after the last array item in a multi-line array.
(#46) Short array syntax must be used to define arrays
(#52) There should be a comma after the last array item in a multi-line array.
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#62) There should be a comma after the last array item in a multi-line array.
mod/percipio/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/percipio/externallib.php
(#48) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#221) Short array syntax must be used to define arrays
(#231) Expected 1 space after "=>"; 2 found
(#323) Short array syntax must be used to define arrays
(#378) Short array syntax must be used to define arrays
(#397) Short array syntax must be used to define arrays
(#424) Short array syntax must be used to define arrays
(#441) Short array syntax must be used to define arrays
(#457) Short array syntax must be used to define arrays
(#470) Short array syntax must be used to define arrays
(#479) Short array syntax must be used to define arrays
(#484) Inline comments must end in full-stops, exclamation marks, or question marks
(#488) Short array syntax must be used to define arrays
(#491) Short array syntax must be used to define arrays
(#494) Inline comments must end in full-stops, exclamation marks, or question marks
(#495) Short array syntax must be used to define arrays
(#498) Inline comments must end in full-stops, exclamation marks, or question marks
(#499) Short array syntax must be used to define arrays
(#513) Short array syntax must be used to define arrays
(#521) Short array syntax must be used to define arrays
(#540) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#582) Short array syntax must be used to define arrays
(#616) Short array syntax must be used to define arrays
(#617) Short array syntax must be used to define arrays
(#639) Short array syntax must be used to define arrays
(#654) Short array syntax must be used to define arrays
(#668) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
(#689) Short array syntax must be used to define arrays
(#766) Short array syntax must be used to define arrays
(#781) Short array syntax must be used to define arrays
mod/percipio/getlaunchurl.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file getlaunchurl.php
(#29) Variable "urlType" must be all lower-case
(#30) Variable "urlType" must be all lower-case
mod/percipio/grade.php
(#38) Short array syntax must be used to define arrays
mod/percipio/index.php
(#31) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
mod/percipio/lang/en/percipio.php
(#29) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#34) The string key "percipio:addinstance" is not in the correct order, it should be before "pluginadministration"
(#39) The string key "reportlink" is not in the correct order, it should be before "search:activity"
(#40) The string key "message" is not in the correct order, it should be before "reportlink"
(#42) The string key "duration" is not in the correct order, it should be before "percentcomplete"
(#44) The string key "email" is not in the correct order, it should be before "name"
(#47) The string key "completiontime" is not in the correct order, it should be before "lastaccessed"
(#49) The string key "score" is not in the correct order, it should be before "totalduration"
(#51) The string key "selectuser" is not in the correct order, it should be before "status"
(#52) The string key "datefrom" is not in the correct order, it should be before "selectuser"
(#54) The string key "authenticationmethod" is not in the correct order, it should be before "dateto"
(#58) The string key "clientid_help" is not in the correct order, it should be before "scope"
(#60) The string key "clientsecret" is not in the correct order, it should be before "scope_help"
(#62) The string key "bearertoken" is not in the correct order, it should be before "clientsecret_help"
(#68) The string key "oauthurl" is not in the correct order, it should be before "percipiourl_help"
(#70) The string key "missingidandcmid" is not in the correct order, it should be before "oauthurl_help"
(#71) The string key "coursedetails" is not in the correct order, it should be before "missingidandcmid"
(#73) The string key "launch" is not in the correct order, it should be before "report"
(#76) The string key "dateerror" is not in the correct order, it should be before "settingincomplete"
(#77) The string key "courseupdated" is not in the correct order, it should be before "dateerror"
(#78) The string key "coursecreated" is not in the correct order, it should be before "courseupdated"
(#80) The string key "deleteallattempts" is not in the correct order, it should be before "reportcriteria"
(#81) The string key "attemptsdeleted" is not in the correct order, it should be before "deleteallattempts"
(#84) The string key "courseimportparam" is not in the correct order, it should be before "nonewmodules"
(#85) The string key "courseimageparam" is not in the correct order, it should be before "courseimportparam"
(#86) The string key "courseid" is not in the correct order, it should be before "courseimageparam"
(#88) The string key "resmessage" is not in the correct order, it should be before "shortname"
(#89) The string key "code" is not in the correct order, it should be before "resmessage"
(#94) The string key "nouser" is not in the correct order, it should be before "trackingimportparam"
(#95) The string key "nocourse" is not in the correct order, it should be before "nouser"
(#97) The string key "privacy:metadata:percipio_attempt" is not in the correct order, it should be before "success"
(#99) The string key "privacy:metadata:percipio_attempt:grade" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:userid"
(#100) The string key "privacy:metadata:percipio_attempt:completionmessage" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:grade"
(#102) The string key "privacy:metadata:percipio_attempt:lastscore" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:passingscore"
(#105) The string key "privacy:metadata:percipio_attempt:timecompleted" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:timecreated"
(#107) The string key "privacy:metadata:percipio_attempt:timemodified" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:timerevisited"
(#109) The string key "privacy:metadata:percipio:externalpurpose" is not in the correct order, it should be before "privacy:metadata:percipio_attempt:totalduration"
(#111) The string key "piiinfo" is not in the correct order, it should be before "privacy:metadata:percipio:userid"
(#112) The string key "pii_yes" is not in the correct order, it should be before "piiinfo"
(#113) The string key "pii_no" is not in the correct order, it should be before "pii_yes"
(#115) The string key "area" is not in the correct order, it should be before "publisheddate"
(#116) The string key "duration" is duplicated
mod/percipio/launch.php
(#44) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
mod/percipio/lib.php
(#98) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#222) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
(#229) Short array syntax must be used to define arrays
(#245) Short array syntax must be used to define arrays
(#299) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#352) Short array syntax must be used to define arrays
(#353) Short array syntax must be used to define arrays
(#357) Short array syntax must be used to define arrays
(#363) Short array syntax must be used to define arrays
(#401) Variable "urlType" must be all lower-case
(#402) Variable "urlType" must be all lower-case
(#497) Short array syntax must be used to define arrays
(#504) Short array syntax must be used to define arrays
(#508) Short array syntax must be used to define arrays
(#531) Short array syntax must be used to define arrays
(#535) There should be a comma after the last array item in a multi-line array.
(#540) Short array syntax must be used to define arrays
(#547) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#584) Short array syntax must be used to define arrays
(#591) Short array syntax must be used to define arrays
(#643) Short array syntax must be used to define arrays
(#644) Short array syntax must be used to define arrays
(#662) Short array syntax must be used to define arrays
(#665) Short array syntax must be used to define arrays
(#666) There should be a comma after the last array item in a multi-line array.
mod/percipio/mod_form.php
(#49) Short array syntax must be used to define arrays
mod/percipio/view.php
(#41) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#55) 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

(1 errors, 0 warnings)

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

mod/percipio/lib.php
(#398) Phpdocs for function percipio_get_launchurl 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, 2 warnings)

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

mod/percipio/templates/mobile_view_page.mustache
(#1) HTML Validation info, line 40: Attribute “(click)” is not serializable as XML 1.0. ( <ion-button class="ion-margin" expand="block" color="primary" (click)="launch($event)"> )
mod/percipio/templates/report_view_page.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 6: Attribute “[translucent]” is not serializable as XML 1.0. (e"> <ion-header [translucent]="true"> <)
(#1) HTML Validation info, line 14: Attribute “[fullscreen]” is not serializable as XML 1.0. (der> <ion-content [fullscreen]="true"> <)
(#1) HTML Validation error, line 22: “th” start tag in table body. (ng: 8px;"> <th style="text-align: left; padding: 16px;">Name</)

Gherkin .feature problems

(0 errors, 0 warnings)

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