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

(0 errors, 78 warnings)

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

mod/attendance/backup/moodle2/backup_attendance_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/backup/moodle2/restore_attendance_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/analytics/indicator/activity_base.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/analytics/indicator/cognitive_depth.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/analytics/indicator/social_breadth.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/attendance_taken.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/attendance_taken_by_student.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/course_module_instance_list_viewed.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/report_viewed.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_added.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_deleted.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_duration_updated.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_ip_shared.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_report_updated.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_report_viewed.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/session_updated.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/sessions_imported.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/status_added.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/status_removed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/event/status_updated.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/addsession.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#88) Logical operator "or" is prohibited; use "||" instead
(#89) Logical operator "and" is prohibited; use "&&" instead
(#329) Logical operator "and" is prohibited; use "&&" instead
mod/attendance/classes/form/addwarning.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/duration.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/export.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#53) Logical operator "or" is prohibited; use "||" instead
mod/attendance/classes/form/studentattendance.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/tempmerge.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/tempuser.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/tempuseredit.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/form/updatesession.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/header.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/import/marksessions.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#144) Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $text is optional, while parameter $att is required.
mod/attendance/classes/import/sessions.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#421) Line exceeds 132 characters; contains 143 characters
mod/attendance/classes/manage_page_params.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/notifyqueue.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/observer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/output/mobile.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/page_with_filter_controls.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#231) Logical operator "or" is prohibited; use "||" instead
(#238) Logical operator "or" is prohibited; use "||" instead
mod/attendance/classes/preferences_page_params.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/report_page_params.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/search/activity.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/sessions_page_params.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/structure.php
(#820) This comment is 50% valid code; is this commented out code?
mod/attendance/classes/take_page_params.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/task/clear_temporary_passwords.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/classes/view_page_params.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/db/upgradelib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/lib.php
(#463) Logical operator "or" is prohibited; use "||" instead
mod/attendance/renderer.php
(#636) Logical operator "and" is prohibited; use "&&" instead
(#637) Logical operator "or" is prohibited; use "||" instead
(#638) Logical operator "and" is prohibited; use "&&" instead
(#951) Logical operator "and" is prohibited; use "&&" instead
(#955) Logical operator "and" is prohibited; use "&&" instead
(#961) Logical operator "and" is prohibited; use "&&" instead
(#972) Logical operator "and" is prohibited; use "&&" instead
(#1013) Logical operator "and" is prohibited; use "&&" instead
(#1017) Logical operator "and" is prohibited; use "&&" instead
(#1023) Logical operator "and" is prohibited; use "&&" instead
(#1034) Logical operator "and" is prohibited; use "&&" instead
(#1339) Logical operator "and" is prohibited; use "&&" instead
(#1985) Logical operator "and" is prohibited; use "&&" instead
(#2420) Logical operator "and" is prohibited; use "&&" instead
mod/attendance/renderhelpers.php
(#86) Logical operator "and" is prohibited; use "&&" instead
(#89) Logical operator "and" is prohibited; use "&&" instead
(#94) Logical operator "or" is prohibited; use "||" instead
mod/attendance/tests/externallib_test.php
(#44) PHPUnit testcase name "mod_attendance_external_testcase" does not match file name "externallib_test"
(#44) PHPUnit class "mod_attendance_external_testcase" does not have any namespace. It is recommended to add it to the "mod_attendance" namespace, using more levels if needed, in order to match the code being tested
mod/attendance/tests/generator/lib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/attendance/view.php
(#87) Logical operator "and" is prohibited; use "&&" instead
(#89) Logical operator "and" is prohibited; use "&&" instead

Javascript coding style problems

(2 errors, 1 warnings)

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

mod/attendance/calendar.js
(#20) 'resetHandler' is defined but never used. (no-unused-vars)
mod/attendance/js/password/attendance_QRCodeRotate.js
(#9) Parsing error: The keyword 'class' is reserved
mod/attendance/yui/src/groupfilter/js/groupfilter.js
(#1) 'M' is already defined as a built-in global variable. (no-redeclare)

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

(1 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

mod/attendance/db/upgrade.php
'return true;' not found

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

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

mod/attendance/templates/mobile_teacher_form_ionic3.mustache
(#1) HTML Validation info, line 10: Attribute “[(ngmodel)]” is not serializable as XML 1.0. (item> <ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> <)
(#1) HTML Validation info, line 10: Attribute “(ionchange)” is not serializable as XML 1.0. (item> <ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> <)
(#1) HTML Validation info, line 14: Attribute “[args]” is not serializable as XML 1.0. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “ion-button” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “core-site-plugins-new-content” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “component” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “method” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “[args]” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
mod/attendance/templates/mobile_teacher_form_latest.mustache
(#1) HTML Validation info, line 10: Attribute “[(ngmodel)]” is not serializable as XML 1.0. (> <ion-radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> )
(#1) HTML Validation info, line 10: Attribute “(ionchange)” is not serializable as XML 1.0. (> <ion-radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> )
(#1) HTML Validation info, line 13: Attribute “[args]” is not serializable as XML 1.0. (span> <ion-button class="ion-margin" expand="block" core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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